General format of HTML coding


HTML WRITING TOOLS


    For designing our website we required many software, for running our website and for writing it’s coding and may more software for many other actions as well.
 
1.   NOTEPAD: This notepad software is used for writing HTML coding. It’s a platform which is used for writing HTML codes.
 
2.   BROWSER: it is a software that we uses for running our HTML coding. Many platforms are available for running our codes, those platforms are that we commonly uses: Google chrome, Microsoft Internet Explorer and many more, but these two are mostly used.

 

HTML DOCUMENT STRUCTURE

Each and every HTML coding is consists of tags and attributes.

A tag is a HTML command that controls the structure and appearance of the pages or documents that is created. All tags are written in angle brackets (< >).

Every tag has special properties which are called as attributes. An attribute is a string that conveys the additional information about a specific tag, like: properties of size, colour and style etc.

EXAMPLE:  <BODY> is a tag
<BODY bgcolor= “pink”> in this bgcolor is the attribute of BODY tag.

 

TYPES OF ELEMENTS:
There are 2 types of elements i.e.
 
1.   Container elements:  these are those HTML elements which required both opening and closing tag. The closing tag used back slash (/).
EXAMPLE: <HTML> opening tag       </HTML> closing tag
 
2.   Empty elements:  these are those HTML elements which have only opening tag. There is no requirement of closing tag.
EXAMPLE:  <BR>, <HR>, <IMG>

 

GENERAL FORMAT OF HTML CODING

There is a complete set of format for writing HTML coding, which is compulsory to follow. The general format of HTML coding is given below:

  <HTML>
    <HEAD>
      <TITLE> the title of the webpage
      </TITLE>
   </HEAD>
    <BODY>
         HELLO HERE WE ARE STUDING ABOUT HTML
   </BODY>
  </HTML>
 

<HTML> tag
Every HTML document begins and ends with <HTML> and </HTML> tags. These tags specifies the written document is HTML document.

Syntax: <HTML>
                  ------
              </HTML>
 

<HEAD> tag
This tag is used to define the head section of a HTML document. It is written within the <HTML> tag.

Syntax: <HTML>
                 <HEAD>
                -------
               </HEAD>
             </HTML>
 

<TITLE> tag
This tag is used to write the title of our HTML webpage. It is written within the <HEAD> tag.

Syntax: <HTML>
                 <HEAD>
                    <TITLE> First page 
                    </TITLE>
                 </HEAD>
              </HTML>
 

<BODY> tag
This is the main and largest part of the HTML document. This tag is consists of all the attributes and tags which are applied on the content of our web page and the content written inside this tag is visible on our webpage.

Syntax: <HTML>
                 <HEAD>
                    <TITLE> First web page 
                    </TITLE>
                 </HEAD>
               <BODY>
                  HELLO WORLD!!
               </BODY>
               </HTML>
 

We should close our <TITLE> tag before closing our </HEAD> tag.
<BODY> tag should start after the ending the </HEAD> tag.

Comments

Post a Comment

Popular posts from this blog

Letter writing

Reason why?? pripyat has zero population till now!!

Poetic device