Interactive Media Kernel http://library. albany. edu/imc/ HTML & XHTML Tag Quick Relation This relation notes some of the most invariably used HTML and XHTML tags. It is not, nor is it intentional to be, a significant register of adapted tags. Details in-reference-to the befitting use of XHTML are at the end of this muniment. What It Is Basic Muniment Tags What It Does Indicates the begin and end of an HTML Muniment Defines the division of the muniment that contains requisite formatting counsel. The embodied in the leader is minute.
Defines the division of the muniment that contains the discernible counsel. Organization Attributes What It Is What It Does Specifies the elucidation tint Specifies the quotation tint Specifies the tint of unfollowed links. Specifies the tint of thriveed links. Specifies the tint of links when they are clicked. NOTE: Organization propertys may be collectively amid the organization tag. Example: Quotation Tags What It Does The leadering tags evince quotation in bignesss ranging from the ,, largest, h1, to the last, h6. These specifications ,, are intentional to delineate the signification basis underneath the , leadering.
Specifies adventurous quotation. Specifies italics quotation. Specifies a typewriter or teletype-like quotation. Creates an pith on quotation that is requiteed usually as italics, but rarely as adventurous depending on the browser. Creates an pith on quotation that is usually requiteed as adventurous, but rarely as italics depending on the browser. Specifies the font bigness from 1 to 7. 1 is the largest, 7 the last, and 3 is generally the defect bigness. Specifies font tint. NOTE: Font propertys may be collectively amid the font tag. Example: Sample of collectively font propertys. 9/03 R. Lipera v. 2. 2 What It Is Interactive Media Kernel http://library. albany. edu/imc/ Common Formatting Tags What It Is (HTML) What It Is What It Does (XHTML) Defines a provision. Defines provision alignment left, fit, or kernel. Inserts a course split. Defines a fill allege and indents quotation from twain sides. Usually delay some extra immeasurableness aloft and underneath. Defines the origin and end of an ordered register. Defines the origin and end of an inchoate register. Defines the origin and end of a course amid a register. Begin a course delay a estimate in an ordered register, and delay a bullet in an inchoate register.
Image Tags What It Is (HTML) What It Is (XHTML) What It Does Places and effigy. Specifies the alignment of an effigy; intermediate Specifies a brim environing and Specifies the choice label for an for use nongraphical browsers. NOTE: Attributes amid the font tag may be collectively. Sample in HTML: Sample in XHTML: What It Is (HTML) Tame Government Tags What It Is What It Does (XHTML) Specifies the begin of a tame government. Specifies the crisis of a tame government. Specifies the width of a tame 9/03 R. Lipera v. 2. 2 2 Interactive Media Kernel http://library. lbany. edu/imc/ government in either pixels or percent. States that the tame government should accept no cloud. NOTE: Attributes amid the tame government tag may be collectively. Sample in HTML: Sample in XHTML: Consultation Tags What It Is What It Does Specifies the origin and end of a consultation. Specifies the origin and end of a consultation row. Specifies the origin and end of a consultation cell. Defines a consultation leaderer. A regular cell delay quotation that is adventurous and kerneled. Specifies the bigness of the brim environing a consultation and cells amid the consultation. Specifies the immeasurableness among cells.
Specifies the equality of immeasurableness among the brim of a cell and the items amid the cell. Specifies the width of a consultation in either pixels or percent. Specifies the alignment of fluctuation in a row of cells as either left, fit, or kernel. Specifies the alignment of fluctuation in a cell as either left, fit, or kernel. Specifies the perpendicular alignment of fluctuation in a row of cells as either top, depth, or intermediate. Specifies the perpendicular alignment of fluctuation in cell as either top, depth, or intermediate. Specifies the estimate of columns a cell obtain p.
Specifies the estimate of rows a cell obtain p. Stops quotation from automatically course wrapping. 9/03 R. Lipera v. 2. 2 3 Interactive Media Kernel http://library. albany. edu/imc/ XHTML can be drawing of as an upgraded and stricter account of HTML 4. 01. It is not abundantly further unmanageable to transcribe XHTML than it is to transcribe befittingly formed HTML. There are some rudimentary governments that must be thriveed. The most considerable governments are: • • • • XHTML tags must all be in inferior occurrence. XHTML elements must be nested uprightly. All XHTML tag elements must be secretive. Documents written in XHTML must be refined.
Examples of inferior occurrence government: This is incorrect. This is chasten. Examples of the nesting government: This is inchasten nesting. This is chasten nesting. Examples of the secretive tag government: This tame government tag is not secretive- This tame government tag is secretive- This effigy tag is not secretive- This effigy tag is befittingly secretive- Examples of the refined muniment government: XHTML muniments must accept the befitting texture. This instrument all components must be amid the inauguration and noncommunication HTML tags, . Internal elements must be uprightly nested and located befittingly.
The basic components and texture of an XHTML muniment are 9/03 R. Lipera v. 2. 2 4 Interactive Media Kernel http://library. albany. edu/imc/ XHTML Syntax Rules XHTML requires that some basic governments of syntax be thriveed. As delay the tag governments famous aloft, XHTML syntax is not abundantly further unmanageable that uprightly formed HTML. These governments are, so-far, abundantly stricter and must not be violated. These governments thrive. • • • • Attributes must be alleged. The Name property is replaced by the ID property Property shorthand must not be used. DOCTYPE proposition must be used. The DOCTYPE proposition is deal-out of Muniment Type Definition, DTD, and is used to state which syntax is used in the Web page. ) Examples of the alleged property government: This is incorrect- This is chasten- Examples of the Name property reanimation government: This is incorrect- This is the chasten substitution- Examples of the no shorthand government: This is an sample of imbefitting shorthand- This is the corresponding tag uprightly written delayout shorthand- Examples of DOCTYPE propositions: This is a page delayout a proposition 9/03 R. Lipera v. 2. 2 5 Interactive Media Kernel http://library. albany. edu/imc/
Example of a page delay a DOCTYPE proposition Note that the DOCTYPE proposition goes aleader of the inauguration HTML tag, . The proposition is not deal-out of the HTML muniment and does not accept a noncommunication tag. It is used to narrate a browser how to requite the muniment. There are three DOCTYPE propositions. Proposition used to originate clutter-free giveations and when Cascading Style Sheets are used: Proposition used when HTML giveational features are give and when it is enviable to prop older browsers that do not perceive Style Sheets: Proposition used when frames are incorporated into the drawing of the page: 9/03 R. Lipera v. 2. 2 6