Monday, December 29, 2008

Basics of HTML

HTML :- Hypertext Markup Language
HTML is the language specially meant for displaying web pages as per my knowledge. It is a simple language and requires a little knowledge inorder to develop a web page. Command in HTML is called TAGS which is enclosed in angular braces <>. We will be dealing with all the tags one by one.
Some tags require starting as well as closing tags. According to new rules you need to close all the tags. We will cover this issue soon in the text.
What I require to create a HTML file?
Any text editor like Notepad in Windows will suffice. If you want to use advanced word processor then you save the file as text only, in order to remove any formatting done by the word processor.
Any web browser like Internet Explorer, Firefox, Chrome and any other you like. But a word of caution some of the HTML tags are not supported by one or the other browser. Use of Internet Explorer is recommended for use as per this site is concerned.
You can also use other HTML formatting softwares in order to create a web page easily like Frontpage.
How to create a HTML file?
Write the html code in the text editor and save it with extension .htm or .html in order to make it HTML file. Remember to select All Files or Simple text file in order to make it HTML only.
Name it index.htm or index.html if you want it to make your default page or main page.
*Important Use of .htm is recommended since many browser support three letter extension.
How to view HTML Page?
Open the required web browser and put the address of your page in the address bar and hit enter in order to view the page.
Or you can also select File->Open->Browse->Select your file and Press OK twice to view your page.
Another method is simply double click the icon of the page you created and it will open in the default browser.
If you want it to open in a particular web browser then Right click the icon and chose open with and then select the web browser you want to use. If it is not displaying there then click select choose program and double click the program you want it to open with.
TAGS:- Commands in the HTML file is known as tag. It is enclosed within angular braces (<>). Starting tags may contain some of the options while Closing Tag contain only the command prefixed with a slash (/). e.g.
To bold a portion of text Hello . First one is a starting tag while one with a / is a closing bold tag.
Some tags do no require any closing tag, therefore are suffixed with a /. e.g.

which is used to give a line break. If we omit the / , even then it will work fine but it is recommended to make it portable to be used in next generation rules.
Tags in HTML are not case sensitive though use of small cases is recommended for new generation rules.

0 responses:

Corprova | Saroj Hydraulics | AlphaNumeric | durgeshindia