Features of HTML
- It is a very easy and simple language. It can be easily understood and modified.
- It is very easy to make effective presentations with HTML because it has many formatting tags.
- It is a markup language that provides a flexible way to design web pages along with text.
- It is platform-independent because it can be displayed on any platform like Windows, Linux, etc.
- It facilitates the programmer to add graphics, video, and sound to the web pages, making them more attractive and interactive.
HTML Tags
HTML tags contain three main parts: opening tag, content, and closing tag, but some HTML tags are unclosed. When a web browser reads an HTML document, it reads it from top to bottom and left to right. HTML tags are used to create HTML documents and render their properties. Each HTML tag has different properties.
Syntax: <tag> Content </tag>
HTML Headings
An HTML heading, defined by the <h1> ... </h1>
tag, is used for titles or subtitles that you want to display on the webpage. Headings are displayed differently in the browser depending on the level of the heading tag.
There are six different HTML heading tags, from <h1>
(largest) to <h6>
(smallest).
<h1>Heading No 1</h1> |
<h2>Heading No 2</h2> |
<h3>Heading No 3</h3> |
<h4>Heading No 4</h4> |
<h5>Heading No 5</h5> |
<h6>Heading No 6</h6> |
Heading elements (<h1> to <h6>) should be used for headings only. They should not be used just to make text bold and large.
HTML Paragraph
The <p>
tag is used to define a paragraph in a webpage.
A browser automatically adds an empty line before and after a paragraph.
Example:
<p>1. India is great</p>
<p>2. India is great</p>
<p>3. India is great</p>
Output:
India is greatIndia is great
India is great
Basic HTML Tags
-
<html> ........... </html>
This is the basic tag of an HTML document. Using this tag, the browser can identify whether it is an HTML document or not.
-
<head> ........... </head>
This tag indicates the first part of the HTML document. It contains control information and the title of the HTML document.
-
<body> ........... </body>
This tag indicates the second part of the HTML document. It contains all the content of the webpage.
-
Block (<p>, Heading tags)
The two major blocks of text in an HTML document are paragraphs and headings.
Heading Tags <h1>---------- </h1> <h2>----------- </h2> <h3>---------- </h3> <h4>---------- </h4> <h5>---------- </h5> <h6>---------- </h6>
0 Comments
Thank You For Comment.🙏🙏