Formatting Tags

Formatting tags are used to format the appearance of the text on your web page. Here are a few of the most common formatting tags...

Tag & Description

Tag Description
<blockquote> </blockquote> blockquote - specifies a section that is quoted from another source
<br> Line break - inserts a single line break
<code> </code> code - defines a piece of computer code
<em> </em> em - renders text as emphasized text.
<hr> hr - used to separate content in an HTML page
<mark> </mark> mark - highlights parts of your text
<q> </q> q - defines a short quotation
<s> </s> s - specifies text that is no longer correct, accurate or relevant
<small> </small> small - defines smaller text
<strong> </strong> strong - defines important text
<u> </u> u - text that should be stylistically different from normal text

Code & Examples:

Code Example
<blockquote>The blockquote tag is used to define long quotes inside the document. Browsers usually indent blockquote elements. The blockquote is a block-level element and can include tags for text formatting.</blockquote>
The blockquote tag is used to define long quotes inside the document. Browsers usually indent blockquote elements. The blockquote is a block-level element and can include tags for text formatting.
This text contains<br>a line break. This text contains
a line break.
<code>A piece of computer code</code> A piece of computer code
<em>Emphasized text</em> Emphasized text
<hr> Topic 1
Topic 2
Do not forget to buy <mark>milk</mark> today. Do not forget to buy milk today.
Everyone says <q>Girls Rock is cool!</q> Everyone says Girls Rock is cool!
My favorite color is <s>blue</s> red! My favorite color is blue red!
An example of the <small>small</small> tag. An example of the small tag.
<strong>Strong text</strong> Strong text
Point out misspelled words, like <u>missppelled.</u> Point out misspelled words, like missppelled.

Girls Rock:

  1. Use several of these formatting tags throughout your web page.
  2. Try to include at least 3 different tags.
  3. Optional: use all of these tags at least once!