HTML tags are basically represents our contents on the web page. Tags start with less than <
symbol and ends with greater than symbol >
. There are three type of tags are available in html, opening Tag, closing tag and empty or void tag. The opening and closing tags together formed an HTML element. If elements does not have ending tags, then it is called empty elements.
Heading Tags:- Heading tags are used to create headings in a HTML document. HTML provides six different type of headings (i.e. h1
to h6
, where h1
is the largest heading and h6
is the smallest heading), which are given below-
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
Paragrapg Tags:- Paragrapg tags are used to create paragrapg in a HTML document.
<p>Paragraph Text</h1>
Anchor Tags:-
<a href="link_path">Link Text</a>
Image Tags:-
<img src="image_path" />
Button Tags:- Button tag is used to create a button in HTML document.
<button name="button" type="button">Button Text</button>