HTML

HTML Projects

HTML Project

Html Elements
Previous Home Next

HTML Elements are define by the a starting tag and this element contains others content with closed tag like as <p>...</p>,<h1>....</h1>. HTML Elements name is written by forward slash(e.g "/") with html tag.

Some tags are not used closed tag such as <img>...</img>,<hr>...</hr>,<br>...</br> elements and these elements do not used closed tags.

For example to shown starting and end tag

Start TagContentEnd Tag
<p>This is paragraph content.</p>
<h1>This is heading content.</h1>
<div>This is division content.</div>

Syntax is used in Html with tags

<tagname>content</tagname>

 

Example of HTML Elements with starting tag and closed tag

<!DOCTYPE html>
<html>
<head>
<title>Html Elements Example</title>
</head>
<body>
<h1>This is <i>italic</i> heading</h1>
<p>This is <u>underlined</u> paragraph</p>
</body>
</html>

Output :

Example of HTML Elements with starting tag and without closed tag

<!DOCTYPE html>
<html>
<body>
<p>This is a paragraph.
<p>This is a paragraph.
</body>
</html>

Output :

<p> It is starting tag of a paragraph and </p> is closing tag of the same paragraph but <p>This is paragraph</p> is a paragraph element.

Supporting Browsers
Previous Home Next

Tolal:0 Click:

Show All Comments

Did not find what you were looking for leave your name and message. We will revert within 24 hours
Name:
eMail:
Comment / Feedback: