29 January, 2011

on Leave a Comment

Silly but important questions in HTML.....

I am presenting here some little but important key points in HTML which often get unnoticed.

What is a Markup Language?

First of all, its not a programming language. It just tells the browser how to display the page. its basically formatting the web page. you can't validate and any forms or take any decisions. You can display login box but cant program it so that it can take you valid page after this.

What is the difference between .htm and .html extension?

Theres no difference as such. both works fine. Both denote that the file contains HTML. But as convention, you should use .html.

however, theres one situation in which you may feel a bit difficulty, if you an file with extension .htm and later you have to use it (either to open it directly in browser or to specify it as the target link) then at that time you have to specify the correct extension(.htm). otherwise it will not work. same case while dealing with .html extension.

Another case may arise when you are dealing with default extension. suppose you enter a URL that does not specify a filename (for eg. www.yahoo.com/hello/). what the server will do now? servers will open the file with its own default extension, so extension may be index.htm,index.html,mainpage.htm or mainpage.html. But the page developer can use any extension. so if both the file names with extension is not same, requested page will not open. Now a days, most ot the servers are configured with more than one defaultfile names.


When dreamweaver is available why bother HTML?

Ofcourse, you can use Dreamweaver,Frontpage kinds of tool to develop you web page without writing HTML. But in order to become good web developer, you must learn and use HTML. Even while working with dreamweaver, you should use HTML for convience and speed.


Tags to be written in Uppercase or Lowercase?

You can use either. But if you want to follow latest web standards, you should use lowercase. In future versions of html, Case sensivity will be important.

Double or single quotes?

You will be always be using double quotes except when attributes it self contains double quotes, for eg. name= 'mahatma "gandhi"'.


How to display symbols like muliplication or division?

You can dispaly . here's some more:-

Result       Description                      Syntax
×               multiplication                   ×

÷               division                           ÷

§                section                          §

©              copyright                         ©

®               registered trademark       ®

How to jump into specific section of a page?

For this purpose we use name attribute. for eg. suppose you have a page as:

1. introduction

2. history of computing

3. programs

introduction:
A computer is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format, they can be constructed out of almost anything.

history of computing:

The first use of the word "computer" was recorded in 1613, referring to a person who carried out calculations, or computations, and the word continued with the same meaning until the middle of the 20th century. From the end of the 19th century onwards, the word began to take on its more familiar meaning, describing a machine that carries out computations.

programs:

The defining feature of modern computers which distinguishes them from all other machines is that they can be programmed. That is to say that some type of instructions (the program) can be given to the computer, and it will carry process them. While some computers may have strange concepts "instructions" and "output" (see quantum computing), modern computers based on the von Neumann architecture are often have machine code in the form of an imperative programming language.
in oder to display specific sections (in this case introduction,history of computing etc.):
<a name="introduction"> 1. introduction</a>

<a href="#introduction">introduction</a>

similalry for others:
<a name="history"> 2. history of computing</a>

<a href="#introduction">history of computing</a>

 I will be updating some more ques & ans. .....keep visiting......

Ads

Landing Page eBook WP Shopping Cart

Follow me