Html <tag>
To start learning HTML we need to start with HTML tags, there are various tags that we must consider and know about while starting to code in HTML.
Table of contents
First, let us try to understand the meaning of 'tags'. HTML tags are the keyword which defines that how a web browser will format and display the content. With the help of tags, a web browser can distinguish between HTML content and simple content.
Syntax of tag : <tagname>Content goes here...</tagname>
tag is written between two angular brackets < >(i.e starting of tag) and it is closed by using the syntax </>. In between angular brackets, we mention the name of tags.
Let us try to understand with the help of some examples.
Example 1:<h1>My First Heading</h1>
In the above-given example, we use h1 as a tag which represents Heading 1 in HTML.
Similarly, we use <p> as a tag that represents a paragraph.
<p>My first paragraph.</p>
some more examples of tags are written in the code below.
<p> Paragraph Tag </p>
<h2> Heading Tag </h2>
<b> Bold Tag </b>
<i> Italic Tag </i>
<u> Underline Tag</u>