HTM Elements/Tags
Logical vs. Physical Tags
There are two tag logical tags and physical tags in HTML. Logical tags are designed to mean the attached text to the browser. An example tag of the logical tag is By inserting text between these tags, you are telling the browser that the text has some value. By default all browsers look bold between text and text.
On the other hand, physical tags provide specific text to which text they attach. Examples of physical tags include:
- <b>: Makes the text bold.
- <big>: Makes the text usually one size bigger than what's around it.
- <li>: Makes text italic.
Start tag | Element content | End tag |
---|---|---|
<h1> | My First Heading | </h1> |
<p> | My first paragraph. | </p> |
<body>
The
<body>
element defines the document body.It has a start tag <body> and an end tag </body>.
The element content is two other HTML elements (
<h1>
and <p>
).<h1>
The
<h1>
element called a heading tag .It use to write the heading in html
It is the biggest heading tag .ait display most big headings.
It has a start tag <h1>.
It has a end tag </h1>.
<p>
The
<p>
element defines a paragraph.It has a start tag <p> and an end tag </p>.
The element content is: My first paragraph.
example:-
<p>My first paragraph.</p>
No comments:
Post a Comment