VirtualMV/HTML/Basic/Formating and Lines

Formatting tags
Text can be formatted using the following tags;  TASK: Add and edit the body of one.html as shown above.
 * The &lt;p> tag is used to create a new paragraph
 * The &lt;br> tag specifies a line break between blocks of text. There are variations of the br tag, (&lt;br>,&lt;/br>). If you were to adhere to the rules of XML (XHTML) you would use &lt;br /> as it shows the tag is closed, but HTML5 is not XHTML5!!
 * The &lt;pre> ... &lt;/pre> tag is useful for formatting text where white space is important (where spaces are to be included).
 * The &lt;div> ... &lt;/div> tag is useful for formatting a block of text, and is commonly used with style sheets.
 * The &lt;blockquote> ... &lt;/blockquote> tag is useful for formatting a block of text which is a quote, and indents the text in both the left and right margins.
 * Alignment (left, center, right) can be achieved the style attribute, for example style ="text-align:center"

Phrase (logical style) elements
Are tags that exist inside other tags (such as the &lt;p> tag ) However it is over to the browser as to how they are interpreted. It is probably better to use the style tag, and if you are interested in the semantic web (the web of meaning) you will create a special XML tag! Screen readers may inter[ret the tags e.g. strong may read it out with more emphasis! As you will see below some have interesting results!

Lines (horizontal ruler)
A line can be inserted into the page by using the &lt;hr> tag. For example 

 Where size = height of the line in pixels.

The hr tag can also be expressed in the number of pixels, For example 

where 333 is the number of pixels across

If you want to add really flashy lines, you can include them as an image. For example create a line that is animated (this will be covered later).

‎