We have a basic framework, ready for content. In this section we'll introduce some basic tags which will be useful for creating content.
HTML tags contain three main parts − opening tag, content and closing tag. But some HTML tags are unclosed tags.
Following are the major HTML tags required to write an HTML −
Most of the write normally start with a heading i.e. ‘head;’ depending upon the write up, heading could be <H1>, <H2>, <H3>, etc.
<!DOCTYPE html> <html> <head> If it is title then <title>This is a title</title> </head> <body> <h1>This is heading 1</h1> <h2>This is heading 2</h2> <h3>This is heading 3</h3> </body> </html>
Further, if you want to make it italic, bold, or underline then
<b>Bold Tag</b> <i>Italic Tag</i> <u>Underline Tag</u>
Paragraph tag structures the text into different paragraphs as −
<p>Paragraph 1</p> <p>Paragraph 2</p> <p>Paragraph 3</p> <p>Paragraph 4</p> <p>Paragraph 5</p> and so on…
The <br /> tag gives break or space between the characters “br” and the forward slash. However, "br" is an empty element.
It is used to break up the sections, as required to arrange the sentence. The <hr> creates a line and breaks the line proportionally.