Table of Contents
HTML BASIC TAGS
-HTML BASIC TAGS,HTML is a markup language and consists of various tags to format the content. These tags are enclosed within angle braces<tagname>.The start tag is also called the opening tag, and the end tag as the closing tag.
<tagname>content …</tagname>
Heading Tags
HTML has 6 levels of heading tags.These are defined with <h1> to <h6>.Browser adds some space before and after each heading while displaying.
Example
Above example result:
This is heading 1
This is heading 2
This is heading 3
This is heading 4
This is heading 5
This is heading 6
Paragraph Tags
Paragraph tags are defined as <p> . This tag gives a way to structure your text into different paragraphs. The text of the paragraph should be in between the opening tags(<p>) and closing tags(</P>). Browser adds some space before and after each paragraph while displaying.
Note: Forgeting the close tags produce unexpected results or errors.
Example
Above example result:
This is a paragraph.
This is a paragraph.
This is a paragraph.
Horizontal Lines Tag
The <hr> Tag defines the Horizontal line tag,which are used to break up content of a document by creating a horizontal line.
Example
Above example result:
Line Break Tag
The <br> tag defines the line break tag, which is an empty tag i.e it has no end tag.Use <br> if you want a line break (a new line) without starting a new paragraph
Example
Above example result:
Thankyou
For Visiting
SMARTZWORLD