HTML:Markup Element Types
Below are the kinds of markup element types in HTML.
Structural markup. Describes the purpose of text. For example,
Golf
directs the browser to render "Golf" as a second-level heading, similar to "Markup element types" at the start of this section. Structural markup does not denote any specific rendering, but most web browsers have standardised on how elements should be formatted. For example, by default, headings like these will appear in large, bold text. Further styling should be done with Cascading Style Sheets (CSS).
Presentational markup. Describes the appearance of the text, regardless of its function. For example,
boldface
will render "boldface" in bold text. In the majority of cases, using presentational markup is inappropriate, and presentation should be controlled by using CSS. In the case of both bold and italic there are elements which usually have an equivalent visual rendering but are more semantic in nature, namely strong emphasis and emphasis respectively. It is easier to see how an aural user agent should interpret the latter two elements.
Hypertext markup. Links parts of the document to other documents. For example,
Wikipedia
will render the word Wikipedia as a hyperlink to the specified URL.
|