HTML Tutorial (Part 3)
|
|
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:
-
<p>This is a paragraph</p>
-
<hr>
-
<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:
-
<!– 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.
italic
underline
computer code
preformatted text
abbreviation
addresslong quotation
short quotation
new line
big text
If you like HTML you can look for more HTML Tutorials on Onlinehowto.net
