HTML - Basic

Basic HTML

HTML Elements

HTML elements are written with a start tag, with an end tag, with the content in between: <body>Content</body>

All HTML documents must start this: <!DOCTYPE html>
 <HTML> </HTML>
The <HTML> tag is in fact the only tag you need to create the simplest webpage. The <HTML> tag tells the browser that this is an HTML document, so the browser understands how to show the page. The first line in each file will be <HTML> and the last line in each file will be </HTML>.

 <HEAD> </HEAD>
The <HEAD> tag contains information about the document, including its title, and document description. The <HEAD> and </HEAD> tag is entered between <HTML> tags.

<TITLE></TITLE>
This tag contains the document title. The title specified inside <TITLE> tag appears on the browses’ title bar. The <TITLE> and </TITLE> tag is entered between <HEAD></HEAD> tags.

<BODY></BODY>
The <BODY> tag encloses all the tags, attributes and information to be displayed in the web page. The <BODY> tag is entered below the closing </HEAD> tag and above the closing <HTML> tag.

<html>
<head>
<title>My first web page</title>
</head>
<body>
<h1>This is my first web page.</h1>
<p>
This is the first web page
</p>
</body>
</html>

Share This:

No comments:

Post a Comment

Advertiser
Counter
Flag Counter