6/9/20

HTML TAG AND ELEMENT



In the previous article, we studied about 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 which was surrounded by the 
angular brackets(< >)

These tags are used to do some special work in your HTML webpage.
Ex:-  
  • Paragraph tag (<p> ….. </p>) are used to write some information about the content shown in your webpage. Or if you want to write something in your webpage paragraph tag are used in it.
  •  Title tag (<title> ……. </title> ) are used to give the title of your webpage.
  • Heading tag (<h1> …… </h1>) are used to give heading of your webpage.


In HTML we start and end tags like this:-


  • Start Tags: - Start tags is also known as “Opening Tag” eg:- <p>
  • End tags:- End tags are also known as “Ending Tags” eg :- </p>


Here is the 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. If you have any queries regarding this article you can comment on it or DM on my social media account. If you like the article you can share it with your friends or relatives.  See you in the next articles.

Thanks for Coming
Have a Good Day.


0 comments:

Post a Comment

Like us on facebook

blogger templatesblogger widgets

Follow on Twitter

Linkedin

Categories

Contact Form

Name

Email *

Message *

Mad About Computer. Powered by Blogger.