Vladislav Vladimirov wrote:

>> Is the HTML title tag not capable of receiving CSS styles?
- -
> The title tag is not meant to be visualised, therefore should not be
> able to accept css styles.

No tags are meant to be visualized. They are part of markup, and CSS is 
applied to elements, not to tags used to mark up elements.

It is impossible to say whether the question is about the title element or 
about title attributes. Anyway, the title element - which _you_ are 
obviously referring to - is surely meant to be visualized, on visual 
browsers that is, just outside the document canvas, e.g. in the browser 
window's top bar. There it is usually immune to style sheets, which affect 
what happens in the canvas.

> The title tag goes in the HEAD section of
> the HTML document, which contains the meta info only, and anything
> that is visualised is in the BODY tag. The visualisation of the TITLE
> in the titlebar is some kind of browser/os interaction, and does not
> involve css.

This is what usually happens, but in CSS terms, this can be described so 
that the title element as well as the entire head element has display: none 
by default. In fact, the sample style sheet for HTML is CSS specs says
head            { display: none }

We might thus more or less expect that the rendering can be changed in CSS. 
If you set
head, title { display: block; }
then both Opera and Firefox show the title element visibly in document 
canvas and also let you style it, e.g. using
title { text-transform: uppercase; }

I don't think this is particularly useful, and usual CSS Caveats apply (for 
example, IE 7 does not understand any of this), but with those caveats, the 
title element _can_ be styled.

The title attributes are a different story. They may be rendered as 
"tooltips" on mouseover, but there is no way to refer them in CSS except in 
generated content.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/ 

______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to