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

Global Attributes

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

Table 3.1. Global HTML Attributes
AttributePurposeUsed With
CLASSSpace-separated list of classes of the tagAll tags but <BASE>, <BASEFONT>, <HEAD>, <HTML>, <META>, <PARAM>, <SCRIPT>, <STYLE>, and <TITLE>.
DIRDirection for weak or neutral textAll tags but <APPLET>, <BASE>, <BASEFONT>, <BDO>, <BR>, <FRAME>, <FRAMESET>, <HR>, <IFRAME>, <PARAM>, and <SCRIPT>.
IDUnique, document-wide identifierAll tags but <BASE>, <HEAD>, <HTML>, <META>, <SCRIPT>, <STYLE>, and <TITLE>.
LANGSpecifies document language contextAll tags but <APPLET>, <BASE>, <BASEFONT>, <BR>, <FRAME>, <FRAMESET>, <HR>, <IFRAME>, <PARAM>, and <SCRIPT>.
STYLEBinds style information to the tagAll tags but <BASE>, <BASEFONT>, <HEAD>, <HTML>, <META>, <PARAM>, <SCRIPT>, <STYLE>, and <TITLE>.
TITLEAdvisory titleAll tags but <BASE>, <BASEFONT>, <HEAD>, <HTML>, <META>, <PARAM>, <SCRIPT>, <STYLE>, and <TITLE>.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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