<hn> Tag – Different sizes of headings are used in documents similarly, HTML and XHTML have six levels of headings as, <h1> , <h2> , <h3> , <h4> , <h5> and <h6> elements and where the <h1> element is largest of all, followed by <h2> and <h6> being the smallest
<p> Tags – It structures text in a web page as it defines a paragraph. The <p> element creates some space before and after itself. Text written in between the <p> tags is treated as a paragraph of text.
<br /> Tag – It is like a newline character anything following it starts on the next line. It is an empty element. Multiple <br /> elements can be used to give multiple line breaks.
<pre> tags – Text written in the opening <pre> tag and the closing </pre> tag preserves its formatting as given in the source document and the white space is preserved.
Text Formatting tags – HTML and XHTML have tags which facilitate in styling the text between them like making the text bold, italicized or underlined as in a word processor, to make text bold, italic or underlined. Tags which influence text appearance are
Tag | Style |
<b>Tag | Bold |
<i>Tag | Italic |
<tt> Tag | Monospaced |
<u>Tag | Underlined |
<s> or <strike> Tag | Strikethrough |
<big> Tag | Larger |
<small> Tag | Smaller |
<sup> Tag | Superscripted |
<sub> Tag | Subscripted |
These styling elements influence only text presentation in a web page which can also be done by using CSS.
Phrase Tags – They are different from the text styling tags but these tags not only used for presentational purposes but they also give description about their content like text in between <address> tags indicates address of person or company and hence, the importance of text.
These tags provide text styling similar to text styling tags like <b>, <i>, <u> or CSS can also be used for the purpose but these tags add contextual information about the information between their opening and closing tags which is useful for search engines and screen readers which web pages to blind users. All of them have universal and UI event attributes. They are listed as
Tag | Purpose |
<em> | Emphasis |
<strong> | Emphasis |
<address> | Addresses |
<abbr> | Abbreviations |
<dfn> | Key Terms |
The <blockquote> | Quotations |
The <q> | Quotations |
The <cite> | Citations |
The <code> | Computer Code |
The <kbd> | Computer Code |
The <var> | Computer Code |
The <samp> | Computer Code |
<ins> and <del> | Text Editing |