HTML Tutorial (Part 3)

Date: January 5th, 2010
Author: Ivory Morhuld

We will continue our HTML-Tutorial (Part 2).

HTML lines

You can easily create a horizontal line like this:

This is a paragraph


This is a paragraph

by using the tag <hr />. Horizontal lines are used for separate paragraphs, text blocks and any other parts of web page which you want to separate by blocks. This separations gives to visitor more visual comfort and well-readness abilities. Example:

  1. <p>This is a paragraph</p>
  2. <hr>
  3. <p>This is a paragraph</p>

HTML comments

In the HTML comments are added with <! – comment is here -> . It is good practice to add, as it makes the code readable and understandable by other developers. Here you can write what was your idea, if someone will continue your work, some note for yourself when you continue working tomorrow or just text explanation from web designers to web developers for good synchronization when teamwork.

Example:

  1. <!– Here you can add your comments –>

Note: The comments are not displayed on a Web page itself, but can only be seen when viewing the code. You have to know, that not to store secure and sensitive information in comments in your webpage, even they are not displayed, because they can be viewed in html source.

HTML formatting

HTML document can be formatted by using:
<b> – bold
<i> – italic
<u> – underline
<s> – strikethrough
<code> – computer code
<pre> – preformatted text
<abbr> – abbreviation
<address> – address
<blockquote> – long quotation
<q> – short quotation
<center> – center text
<br> – new line
<big> – big text

All of this HTML formattings can be applied with CSS properties for fine tuning the design and formatting. Below you see a formatting tags in HTML.

bold
italic
underline
strikethrough
computer code

preformatted text

abbreviation

address

long quotation

short quotation

center text


new line
big text

If you like HTML you can look for more HTML Tutorials on Onlinehowto.net

VN:F [1.9.18_1163]
Rating: 0.0/10 (10 votes cast)
HTML Tutorial (Part 3), 0.0 out of 10 based on 10 ratings

Leave a Reply