Pages

Subscribe:

Ads 468x60px

Tuesday, December 7, 2010

Basic HTML

HTML Tags
v HTML tags are used to mark-up HTML elements
v HTML tags are surrounded by the two characters < and >
v The surrounding characters are called angle brackets
v The text between the start and end tags is the element content
v HTML tags are not case sensitive, <html> means the same as <HTML>
These are Four standard Tags in HTML
<html>
   <head>
        <title>page title goes here<title>
    </head>
    <body>
          .
          .
          .
   </body>
</html>
 
Example Explained
vThe first tag in the HTML document is <html>.
vThis tag tells your browser that, this is the start of an HTML document.
vThe last tag in your document is </html>.
vThis tag tells your browser that, this is the end of the HTML document.
vThe text between the <head> tag and the </head> tag is header information. Header information is not displayed in the browser window.
vThe text between the <title> tags is the title of your document. The title is displayed in your browser's caption.
vThe text between the <body> tags is the text that will be displayed in your
 browser.
 
Let’s start to make first website
Okay, please create a folder on your desktop with the name, mywebsite

<html>
   <head>
        <title>page title goes here<title>
    </head>
    <body>
        this is my first page
   </body>
</html>
 
v Open your notepad and type this.
v Save this file as .html
v Give your file name index.html
 
Headings
Headings are defined with the <h1> to <h6> tags.
<h1> is the largest heading. <h6> is the smallest heading.
          <h1>this is heading type 1</h1>
          <h2>this is heading type 2</h2>
           <h3>this is heading type 3</h3>
           <h4>this is heading type 4</h4>
           <h5>this is heading type 5</h5>
           <h6>this is heading type 6</h6>
 
HTML automatically adds an extra blank line before and after a heading.

 
       

No comments:

Post a Comment