What is Tags?
HTML tags are like keywords which defines that how web browser will format and display the content. With the help of tags, a web browser can distinguish between an HTML content and a simple content.
HTML tags contain three main parts: opening tag, content and closing tag. But some HTML tags are unclosed tags.
Container Tag: – Which has opening and closing tag.
Ex : –
<html></html>
<head></head>
<title></title>
<body></body>
Empty Tag: – which has only opening tag.
Ex : –
<br>
<area>
<base>
<hr>
<Img>
<input>
HTML Tag:
The <html> tag represents the root of an HTML document. The <html> tag is the container for all other HTML elements (except for the <!DOCTYPE> tag).
Head Tag:
The <head> tag in HTML is used to define the head portion of the document which contains information related to the document. The <head> tag contains other head elements such as <title>, <meta>, <link>, <style> <link> etc.
Title Tag:
The title tag is an HTML code tag that allows you to give a web page a title. This title can be found in the browser title bar, as well as in the search engine results pages (SERP).
Body Tag:
HTML <body> tag defines the main content of an HTML document which displays on the browser. It can contain text content, paragraphs, headings, images, tables, links, videos, etc.