Basic Structure of HTML

Basic Structure of HTML

<!doctype html>
<HTML>
<HEAD>
.............
.............
.............
</HEAD>
<BODY>
............
.............
.............
</BODY>
</HTML>

<!doctype html> : It is html standard for HTML 5 version which . it declare the html document created in HTML 5 version.

HTML Tag <HTML>

The <HTML> tag encloses all other HTML tags and associated text within your document. It is an optional tag. You can create an HTML document that omits these tags, and your browser can still read it and display it. But it is always a good form to include the start and stop tags.

The format is:

<HTML>

Your Title and Document (contains text with HTML tags) goes here

</HTML>

Most HTML tags have two parts, an opening tag and closing tag. The closing tag is the same as the opening tag, except for the slash mark  e.g</HTML>. The slash mark is always used in closing tags.

An HTML document has two distinct parts HEAD and BODY.

HEAD Tag <HEAD>

HEAD tag comes after the HTML start tag. It contains TITLE tag to give the document a title that displays on the browsers title bar at the top.

The Format is:

<HEAD>
<TITLE>
Your title goes here
</TITLE>
</HEAD>

BODY Tag <BODY>

The BODY tag contains all the text and graphics of the document with all the HTML tags that are used for control and formatting of the page.

The Format is:

<BODY>
Your Document goes here
</BODY>

An HTML document, web page can be created using a text editor, Notepad or WordPad. All the HTML documents should have the extension .htm or .html. It requires a web browser like Internet Explorer or Netscape Navigator/Communicator to view the document.

CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Website development Company in Allahabad