Html Tag and Element
In the previous article, we studied the Introduction of HTML. We used a lot of tags in that article. So today in this article we will know what the tags are and along with this, we will also know what the elements in the HTML are.
HTML TAGS
In HTML, tags are the element that was surrounded by the angular brackets(< >).
These tags are used to do some special work on your HTML webpage.
Ex:-
- Paragraph tags (<p> ….. </p>) are used to write some information about the content shown on your webpage. Or if you want to write something on your webpage paragraph tags are used in it.
- Title tags (<title> ……. </title> ) are used to give the title of your webpage.
- Heading tags (<h1> …… </h1>) are used to give the heading of your webpage.
In HTML we start and end tags like this:-
- Start Tags: - Start tags are also known as “Opening Tags” eg:- <p>
- End tags:- End tags are also known as “Ending Tags” eg:- </p>
Here is an example of some tags….
- <p> ……………</p>
- <li> ……………</li>
- <ul> ………….. </ul>
- <h1> …………. </h1>
HTML ELEMENTS
An HTML element can be defined by a “starting tag”, “Content”, “ending tag”.
You can also say that HTML Element is a mix-up of (Starting tag + Content + Ending tag) is known as HTML Element. Let’s see an example of the HTML element:-
Example:-
<h1> Example of HTML Element </h1>
Output:-
Example of HTML Element
In this article, you learned about HTML tags and HTML elements. See you in the next articles.
Thanks for Coming
Have a Good Day.