Search the Whole World Here.,.,

Do Not Forget the End Tag

Do Not Forget the End Tag

Do Not Forget the End Tag

Some HTML elements will display correctly, even if you forget the end tag:

Example

<html>
<body>

<p>This is a paragraph
<p>This is a paragraph

</body>
</html>
Try it Yourself »
The example above works in all browsers, because the closing tag is considered optional.
Never rely on this. It might produce unexpected results and/or errors if you forget the end tag.

Example of HTML

Example of HTML

Example Explained

The  element defines the whole document.
It has a start tag and an end tag .
The element content is another HTML element (the element).
<html>
<body>

<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>
The  element defines the document body.
It has a start tag and an end tag .
The element content is two other HTML elements (and ).

<body>

<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
The element defines a heading.
It has a start tag and an end tag.
The element content is: My First Heading.
<h1>My First Heading</h1>
The  element defines a paragraph.
It has a start tag and an end tag.
The element content is: My first paragraph.
<p>My first paragraph.</p>


To video html video..
Visit : https://www.youtube.com/watch?v=I38vQ3-3KDM
HTML Elements

HTML Elements

HTML Elements

An HTML element usually consists of a start tag and end tag, with the content inserted in between:
Content goes here...
The HTML element is everything from the start tag to the end tag:
My first paragraph.
Start tagElement contentEnd tag

My First Heading
My first paragraph.
  
Some HTML elements are empty (have no content) and do not have an end tag, such as the
element (which indicates a line break).

Ads by Google