Thursday 9 March 2017

Writing HTML documents

HTML is made up of elements or tags and attributes, which work together to identify document parts and tell browsers how to display them.
ALL HTML tags are contained with angle brackets  < >
Opening angle bracket <
closing angle bracket  >
for eg: <HTML>,<HEAD>,<TITLE>,<BODY> etc.is a tag.HTML is not case sensitive.
Please note that you can type HTML in capital letters as in small letters. a browser treats both of them in the same manner. However, we shall be using capitals for HTML tags to make them stand out from the rest of the text.
Tag  : A tag is a coded HTML command that indicates how part of web page should be displayed. An Attribute is a special word used inside tag to specify additional information to tag such as color, alignment etc.
HTML Documents Structure: An HTML document consists of text, which comprises the content of the document, and tags, which define the structure and appearance of the document. the basic structure of an HTML document is simple with the entire document bound by a pair of < HTML > and < /HTML >tags.

<HTML>
<HEAD> Write document HEADING
<TITLE> Write TITLE of the Page </TITLE>
</HEAD>
<BODY> Write page content here
</BODY>
</HTML>


<HTML> Tag:
                         The HTML tag identifies the document as an HTML document. an HTML document begins
with<HTML> and ends with </HTML>.
Here <HTML> starts the HTML tag and </HTML> ends the HTML tag.
<HTML>
............HTML documents lines here.
</HTML>

<HEAD>Tag:
                       The <HEAD> tag contains information about the document, including its title, scripts used, style definitions, and document descriptions. the <HEAD> tag, is entered between <HTML> tags.
<TITLE>tag:This tag contains the document title.

<BODY>tag:The body tag encloses all the tags, attributes and information to be displayed in the web page.
 

2 comments:

  1. what is the attribute of language. how to set a page language Hindi.

    ReplyDelete
  2. < html lang="en" >
    here: en mean english

    ReplyDelete