Basic HTML Tutorial
[Home] [Java] [HTML] [Tabs] [About Me] [Disclaimer] [All Downloads] [Contact]
 

 

  • Intro
    • What is HTML ?
    • Saving your files ...
    • Tags !
    • A Minimal HTML page
  • Markup tags
    • Coming up .......... next week

 

 


What is HTML ?

HTML stands for Hyper Text Markup Language . It is the the used to create Web Sites & web pages . It has the ability to integrate text , images , sounds , links etc . HTML files are plain text ( ASCII ) files that can be created using any text editor ( eg , Notepad in Windows ) .

 

Saving your files ...

Since HTML files are not targeted at particular platforms they need to be stored in standard ASCII ( text ) format . To save your file in this format you'll need to use notepad ( Windows ) or some other text editor on your OS . you can also use word processors like Word . Note -

  • To save your file when using text editors type in the name of your file followed by the extension html ( or htm ) , all in double quotes ( like this - "Example.html") & save file as all file types .
  • To save your file when using word processors type in the name of the file followed by the extension html ( or htm ) & save file as text .

 

Tags !

Say you want your text to appear in a certain manner inside a browser & in a certain font , etc . How do you tell the browser that you want blood to be RED in color , war to be BOLD , large to to Large etc ? Simple , you put the text in between tags that tells the browser the way it should appear . 

For eg , <font size="6"> Large </font> = Large

Tags can further have attributes that signal to the browser even more detail about the way it should inerpret the enclosing data .

For eg , <font size="6" font color="#008000"> green </font> = green

The tags have been italicized . As you can see ,  HTML tags comprise of a left angle bracket ( < ) , a tag name ( optionally followed by attributes ) & a right angle bracket ( > ) . Generally tags are paired to signal the start & end of instruction . The end tag is essentially the same as the start tag except that the text within the brackets in the end tag is preceded by a slash ( / ) .

Note -
Not all tags are supported by all browsers . if a browser doesn't support a tag , it will simply  ignore it .
HTML is not case sensitive i.e. <font> is same as <FONT> ( There is an exception to this - See Escape Sequences ) .

 

A Minimal HTML page

Given below is a very elementary HTML page ( tags have been italicized ) .

<html>
<head>
<title>
Hello HTML </title>
</head>
<body>
<h1>
My First HTML Page </h1>
<p>
This is a standard paragraph in HTML </p>
</body>
</head>

The essential tags ( can't do without one's ) are <html> , <head> , <title> & <body> ( don't forget their corresponding end tags) .

Note -
Some newer browsers can format your files correctly even if the above mentioned tags are not present but not all , but older browsers won't , so be sure to include these tags in your files .

 

 

[Home] [Java] [HTML] [Tabs] [About Me] [Disclaimer] [All Downloads] [Contact]