09/04/2018
HTML BASICS :
A simple HTML Document :
Title of the page This is Heading This is paragraph
Explanation for the above HTML document :
1.The DOCTYPE declaration defines the document type to be HTML.
2.The text between and describes an HTML document.
3.The text between and provides info about the document.
4.The text between and provides a title for the document.
5.The text between and describes the visible page content.
6.The text between and describes a heading.
7.The text between and describes a paragraph.
HEADING IN HTML :
Every document will have a heading. HTML has different sizes for headings. which use the following elements , , , , , and . While displaying any heading, browser adds one line before and one line after that heading.
Example for Heading :
Heading Example Example for heading h1 Example for heading h2 Example for heading h3 Example for heading h4 Example for heading h5 Example for heading h6
Result for the above Example :

PARAGRAPH IN HTML:
In HTML you can structure your text into different paragraphs by using the tag .Each paragraph of text should go in between an opening and a closing tag .
Example for Paragraph :
Paragraph Example This is First Paragraph. This is Second Paragraph. This is Third Paragraph.
Result for the above example :

LINE BREAK IN HTML :
If you use the tag , anything following it starts from the next line . This tag is an example of an empty element, there is no need for opening and closing tags, as there is nothing to go in between them.
Example for Line break :
Example for Line Break This is an example for Line Break
Result for the above example :

CENTERING CONTENT :
To center any content in HTML You can use tag this will to put any content inside the tag in the center of the page or any table cell.
Example for Centering content :
Centering content This is not in the center . This is in the center.
Result for the above example :

PRESERVE FORMATTING :
If want your text to be exact format of how it is written in the HTML document you can use the preformatted tag . Any text between the opening tag and the closing tag will preserve the formatting of the source document.
Example for Preserve formatting :
Preserve Formatting This is an Example for preserve
Result for the above example :

HORIZONTAL LINE :
To create a horizontal line between a section of document the tag can be used it creates a line from the current position in the document to the right margin and breaks the line accordingly .
Example for horizontal line :
Horizontal Line This is above the line This is below the line
Result for the above example :