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.

 
       

Monday, December 6, 2010

Basic HTML

we are going to start "how to work in HTML" Hyper Text Markup Language.

If you are realy interested in Coding and want to become a good and smart developer you must learn HTML. this is the one of the Famous markup languages. so you can say it is almost not possible for new user to start website building/ development with out html.

before start we have to know the basic steps that what is HTML.
here are some List of Tags that will help you to understand what can HTLM do for you.

What is HTML?
HTML stands for Hyper Text Markup Language
What is an HTML File?
vAn HTML file is a text file containing small markup tags
vThe markup tags tell the Web browser how to display  the 
   page
vAn HTML file must have an htm or html file extension
vAn HTML file can be created using a simple text editor e.g., 
   Notepad

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.
 <h1>This is a Heading 6</h1>
Headings
Headings are defined with the <h1> to <h6> tags.
<h1> is the largest heading.
<h6> is the smallest heading
<h1>This is a Heading 1</h1>
<h1>This is a Heading 2</h1>
<h1>This is a Heading 3</h1>
<h1>This is a Heading 4</h1>
<h1>This is a Heading 5</h1>
   
Paragraphs
Paragraphs are defined with the <p> tag.
<p> This is a paragraph </p>
<p> This is another paragraph </p>

How to start playing with HTML…?

 <html>...</html>
The first tag in a pair is the start tag, the second tag is the end tag.