Username:

Password:

Author Topic: The STYLE element is placed in the document  (Read 308 times)

ammayya123

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 3
The STYLE element is placed in the document
« on: March 09, 2010, 12:08:58 AM »
The STYLE element is placed in the document HEAD. The required TYPE attribute is used to specify a media type, as is its function with the LINK element. Similarly, the TITLE and MEDIA attributes may also be specified with STYLE.

Very old browsers such as Netscape 2.0, unaware of the STYLE element, would normally show its contents as if they were part of the BODY, thus making the style sheet visible to the user. To prevent this, the contents of the STYLE element may be contained within an SGML comment (<!-- comment -->), as in the preceding example. This use of comment tokens to hide the style sheet from old browsers should only be used in HTML, where the comment tokens are actually part of the style sheet. In XHTML, the comment tokens would be a real XML comment, and the style sheet would be hidden from browsers that treat the document as XML.


Meilleur casino
best casinos
Logged