Explain any 5 basic tags of HTML.
SOLUTION....
1. <html> Tag
The
<html>tag is the root element of an HTML document.It tells the browser that the content inside is written in HTML.
All other tags must be placed inside
<html>and</html>.
Example:
2. <head> Tag
The
<head>tag contains metadata (data about the web page).It does not display content directly on the web page.
It usually includes the title, styles, scripts, and meta information.
Example:
3. <title> Tag
The
<title>tag defines the title of the web page.The text inside this tag is shown on the browser tab.
It also helps in search engine optimization (SEO).
Example:
4. <body> Tag
The
<body>tag contains the main content of the web page.Text, images, videos, tables, and all visible content are placed here.
Everything inside
<body>is displayed on the browser window.
Example:
5. <p> Tag
The
<p>tag is used to define a paragraph of text.Browsers automatically add some spacing before and after a paragraph.
It improves readability and organizes content into sections.
Example:
