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

Global Attributes

Although most element attributes tend to be unique to the element, some are almost universal and usable with any element. Table 3.1 summarizes these attributes, showing which elements do take the attributes and how each attribute is used.

Table 3.1. Global XHTML Attributes
Attribute Purpose Used With
class Space-separated list of classes of the element All elements except <base />, <head>, <html>, <meta />, <param />, <script>, <style>, and <title>.
dir Direction for weak or neutral text All elements except <base />, <br />, <frame>, <frameset>, <hr />, <iframe>, <param />, and <script>.
id Unique, document-wide identifier All elements except <base />, <head>, <html>, <meta />, <script>, <style>, and <title>.
lang Specifies document language context (for backward compatibility with existing HTML) All elements except <base />, <br />, <frame>, <frameset>, <hr />, <iframe>, <param />, and <script>.
style Binds style information to the element. All elements except <base />, <head>, <html>, <meta />, <param />, <script>, <style>, and <title>.
title Advisory title All elements except <base />, <head>, <html>, <meta />, <param />, <script>, and<title>.
xml:lang Specifies document language context (as per XML 1.0) All elements except <base />, <param />, and <script>.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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