• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Part VI: Appendix > Styles and Scripting

Styles and Scripting

Although style sheets and scripting may seem like advanced topics, they happen to appear in the <head> of the document in some cases, and they both add attributes that apply to nearly all XHTML elements.

The <script> Element

The <script> element is used to contain scripting language that the Web browser is not supposed to attempt to parse as XHTML. Instead, the Web browser should note the scripting commands and turn them over to a script interpreter, which is often built into the browser. The <script> element can accept the type attribute, although the language attribute is also sometimes used (in transitional DTDs) for backward compatibility.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint