HTML stands for HyperText Markup Language is a script to create Web documents. HTML documents are stored in regular text format and contain the tags that instruct the web browser to execute the specified commands.
The basic structure of HTML documents are as follows:
The basic structure of HTML documents are as follows:
<html>
<head>
<title> Here The Title Of HTML Document </ title>
</ head>
<body>
Here the writing of Web information
</ body>
</ html>
<head>
<title> Here The Title Of HTML Document </ title>
</ head>
<body>
Here the writing of Web information
</ body>
</ html>
From basic HTML structure above can be explained as follows:
A. Tag
Is a special text (markup) in the form of two characters "<" and ">", for example <body> is tags with the name of the body.
In general, tags are written in pairs, which consist of an opening tag and closing tag (added character "/"after the character "<"), as an example. <body> is the opening tag contents of an HTML document, and </ body> This is the closing tag contents of an HTML document.
A. Tag
Is a special text (markup) in the form of two characters "<" and ">", for example <body> is tags with the name of the body.
In general, tags are written in pairs, which consist of an opening tag and closing tag (added character "/"after the character "<"), as an example. <body> is the opening tag contents of an HTML document, and </ body> This is the closing tag contents of an HTML document.
B. Element
Element consists of three parts, namely the opening tag, content, and closing tag. For example to display the title of HTML document in a web browser to use the title element, in which:
<title> this is the opening tag of the HTML document title.
The title of this HTML document is the content of an HTML document title
</ title> this is the closing tag of the HTML document title
Element consists of three parts, namely the opening tag, content, and closing tag. For example to display the title of HTML document in a web browser to use the title element, in which:
<title> this is the opening tag of the HTML document title.
The title of this HTML document is the content of an HTML document title
</ title> this is the closing tag of the HTML document title
The tags are written in pairs on an HTML element, should not overlap with any other pair tags.
Examples of writing the correct tags
<p>
<b>
................
</ b>
</ p>
Examples of writing the correct tags
<p>
<b>
................
</ b>
</ p>
Examples of writing wrong's tags
<p>
<b>
................
</ p>
</ b>
<p>
<b>
................
</ p>
</ b>
C. Attribute
Attribute defines the properties of an HTML element, which consists of the name and value. Writing is as follows:
<TAG>
name-attr = "value-attr"
name-attr = "value-attr"
.................
>
.................
</ TAG>
In general, attribute values must be within quotation marks one or two. For example, to make the text color to yellow and black backgrounds into the web page, the writing is <body bgcolor="black" text="yellow">
D. HTML Element
States in web browser that the document used is HTML.
Syntax :
Attribute defines the properties of an HTML element, which consists of the name and value. Writing is as follows:
<TAG>
name-attr = "value-attr"
name-attr = "value-attr"
.................
>
.................
</ TAG>
In general, attribute values must be within quotation marks one or two. For example, to make the text color to yellow and black backgrounds into the web page, the writing is <body bgcolor="black" text="yellow">
D. HTML Element
States in web browser that the document used is HTML.
Syntax :
<html>
..........
</ html>
0 comments on Basic Structure Of HTML Documents :
Post a Comment and Don't Spam!
Dont Spam please