понедельник, 18 февраля 2013 г.

Switching Between Your Editor and Browser, How To Create A Website



1. Load any editor . E.g.. Notepad.

2. Create the HTML file and save it, with extension .htm or .html.

3. View it in any browser E.g.. internet Explorer or Fire fox.

Tag or Tag elements: Refer to the HTML codes that decline the elements in an HTML file, Such as heading, images, paragraphs and list. There are two kinds of tags – the container tag and empty tag (HTML tag are inserted into a document between symbols. Tag are not case-sensitive).

Container Tag: These tags which bracket or contain text or other tag elements are called container tags. These actually consist of two tags, a start tag and an end tag which enclose the text they affect.

Empty Tag: These are standalone and do not bracket or contain text or any other tag elements. An empty tag function is a standalone element within an HTML documents and thus does not bracket or contain anything else.

Attribute: Allows you to specify how web browser should treat a particular tag. An attribute is included within the actual tag. Either within a start tag or an empty tag. End tags should not contain attributes.

Syntax: Attribute = “value”

E.g., align=”center”

Starting your page document tags: All HTML files should include at least these tags:

• The HTML tag

• The Title tag

• The Head tag

• The body tag

The HTML Tag. This tag defines the top-most elements. Identifying it as an HTML document. It is a container tag that has a start and end tag and all the other tag and texts are nested within it.

Syntax:
HTML>……… /HTML>

The Head Tag: This tag contains information about your HTML files. It may also contain other tags that help you to identify your HTML file to the outside world. The Head Tag is nested within the HTML tag.

Syntax: 
 HTML>
HEAD>

…………..
 /HEAD>
/HTML>

Usually, the only tag contained within the head tag is the title tag. Other tags also can be contained within the head tag but they are used less often.

The Title Tag: This tag is nested within the head tag. It identified your page to the rest of the world. The tag output is displayed on your browser’s title bar but does not appear as part of the page.

Syntax:
HTML>
HEAD>
TITLE> Your Title: Describe Your Tilte /TITLE>
/HEAD>
/HTML>

Title tag is a required elements that you should include in each and every HTML document. If you do not include a title, the title of your page appears in some browsers as ‘Untitled’ whereas in other just the URL for the page appears on the Brower’s title bar.

The Body Tag: This tag the compliment of head tag and contains all of the tag, or elements that a browser actually display as the body of your HTML tag. Body tag comes after the Head tag and Body tag are nested within the HTML tag. Body tag comes after the head tag, they denote a separate part of the HTML document.

Syntax:
HTML>
HEAD>
TITLE> My First Web Page /TITLE>
/HEAD>
BODY>

……………….
/BODY>
/HTML>

Комментариев нет:

Отправить комментарий