Text Tags Basic Tags


Text Tags


<b></b>
or <strong></strong>

Creates bolded text. For ADA-compliant pages, <b> tags are used for aesthetics (such as bolding headers) and <strong> tags are used for emphasis in text.
ex.
<b>Section One</b>

<i></i> or <em></em>

Creates italicized text. For ADA-compliant pages, <i> tags are used for aesthetics (such as italicizing court cases) and <em> tags are used for emphasis in text.

<font></font>

Changes the font of the text. Should be used with at least one of the following attributes.

Attributes:
<font size=?>: changes the size of the font, from 1 to 7.
<font color=?>: changes the color of the font, using the color name or its hex value.

<center></center>

Centers the text.

<h1></h1> through <h6></h6>

<h1> creates the largest heading and <h6> creates the smallest. Headings change the font size, bold the text, and add a paragraph break above and below the text.

Attributes:
<h1 align=?>: aligns the text with values of "left", "center", or "right"

<pre></pre>

Creates preformatted text. Everything typed in between these tags will appear just as you type it.

<!--  -->

Comments out the text. Whatever you write between the <!-- and --> will not be visible on the page. Only when viewing the HTML code itself can you see the comments. They are used to make notes about sections of your code to yourself and to others who may view your code.

Return to Main Page Information Systems & Technology