Saturday, 12 May 2012


HTML - Frequently Asked Questions : -

1.) The main difference between XML and HTML?
XML was designed to describe data and to focus on what data is. HTML was designed to display data and to focus on how data looks .
HTML is about displaying information, while XML is about describing information.
The tags used to mark up HTML documents and the structures of HTML documents are predefined.
XML allows the author to define his own tags and his own document structure.

2.) What are META tags?

META tags areuseful for Web developers and serch engines. They can be used to identify the creator of the page, what HTML specs the page follows, the keywords and description of the page, and the refresh parameter (which can be used to cause the page to reload itself, or to load another page).

3.) Why is XHTML needed? Isn't HTML good enough?

HTML is probably the most successful document markup language in the world. But when XML was introduced, a two-day workshop was organised to discuss whether a new version of HTML in XML was needed. The opinion at the workshop was a clear 'Yes': with an XML-based HTML other XML languages could include bits of XHTML, and XHTML documents could include bits of other markup languages. We could also take advantage of the redesign to clean up some of the more untidy parts of HTML, and add some new needed functionality, like better forms.

4.) Why do you say "user agent" everywhere, instead of "browser"?

Although browsers are indeed important users of HTML and XHTML, there are other programs and systems that read those documents. Search engines for instance read documents, but are not browsers. By using the term "user agent" we are trying to remind people of the difference.For example, when you do a Google search often you will see under some of the search results something like "This web page uses frames, but your browser doesn't support them." therefore surely frightening off some people from clicking on that link.The author of the website in question hasn't realised that there are more than just browsers, and that they ought to include better text in their section, so that they don't appear so foolish when people search their site.

5.) How do I add scrolling text to my page?

Keep in mind not all browsers support scrolling text. however to do this add a tag similar to the below example.

The above example would create the below scrolling text. If your browser supports scrolling text the below example should be scrolling.

6.) How do I do multiple colors of text?

To do the multicolor text adjust the color of your font tag as shown below. blue

7.) How do I make a link to another web page?

Specify the complete URL in the A HREF tag as shown below.
Visit ComputerHope Replace our address with the address that you would like to link. Where it says "Visit ComputerHope" replace this what you want to name the link.

8.) What is Semantic HTML?

Semantic HTML means using HTML tags for their implied meaning, rather than just using (meaningless) div and span tags for absolutely everything. Why would you want to do this? Depending on the tag, the content in the tag can be interpreted in a certain way.

9.) What is Document Type Definition?

Document Type Defination (DTD) specifies the syntax of a web page in SGML,It is used to specify rules that apply to the markup of the document of a particular type,including a set of element and entity declarations.

10.) What is DIV in HTML?

DIV is same as span but it has an additional property of align in it with the help of which we can align the text within it,furhter if we want to palce our code anywhere in our page we use DIV tag and our code within it.

11.) What is HEAD in HTML document?

The head of an HTML document is an unordered collection of information about the document. The HEAD contains general information, or meta-information, about the document. The head appears first in a document above the BODY.

12.) What are the differences between cell spacing and cell padding?

Cell Padding: Cell padding is used for formatting purpose which is used to specify the space needed between the edges of the cells and also in the cell contents.

Cell Spacing: Cell spacing is one also used f formatting but there is a major difference between cell padding and cell spacing.

It is as follows: Cell padding is used to set extra space which is used to separate cell walls from their contents. But in contrast cell spacing is used to set space between cells.

13.) What are the attributes that make up a DHTML?

DHTML is called as Dynamic HTML. This is used to increase the interactive ability and the visual effect of the web pages which is loaded in the browser.

No comments:

Post a Comment