HTML Basics
What constitutes a Tag?
A tag can consist of the following three items inside the angle brackets, or wickets.
Element - Provides the main instruction of the tag. Elements include <FONT>, <TABLE>, and many others.
Attribute -Specifies a quality or describes a certain aspect of the element. For example, <p> has several attributes, including ALIGN.
Value - Gives value to the element and its attribute. For example, <DIV ALIGN="center"> has a value that allows you to center text.
Some HTML tags use only an element and do not support attributes and values. Others,such as the <DIV> tag, support attributes and values.
HTML Document.
<HTML>
<HEAD>
<TITLE>Web Page Title</TITLE>
</HEAD>
<BODY>
Our web page body is here
</BODY>
</HTML>
The Document Type Declaration (DTD) statement begins your HTML code by specifying the HTML version number and type used in the document. You should note that the DTD statement is technically not an HTML statement, but an SGML statement. The opening <HTML> and closing </HTML> tags enclose the entire page.
Within any page, there are two document sections: the HEAD and the BODY. Each of these sections has corresponding <HEAD> and <BODY> container tags that enclose any text or other tags pertaining to those sections.
Every page should have a title, enclosed within <TITLE> tags in the HEAD section.
The title is very important. Text between <TITLE> tags will appear in the title box of the browser window, in the history list, and on the page when printed.
Title text also becomes the bookmark name if the page is bookmarked or added to a browser Favorites folder.
All text to be displayed on the page through the browser or HTML interpreter needs to appear between the <BODY> and </BODY> tags.
Element | Use for |
<html> | Identifies the document type as HTML. |
<head> | Encloses the HEAD section of the document. The title will appear in the HEAD section, and also java script,css external document links will appear. |
<title> | Encloses the text that will appear in the browser title bar when the page is loaded. The TITLE container is itself contained within the <HEAD> tags.web search engines will firstly compair this title with what is search. |
<body> | the web page body is create in the BODY tag,section will appear in the browser window when that page is loaded. |
0 comments:
Post a Comment