Basic Html Interview Questions and Answers

Define URL

Uniform Resource Locator; an address that specifies the location of a file on the Internet

What is a tag?

In HTML, a tag tells the browser what to do. When you write an HTML page, you enter tags for many reasons — to change the appearance of text, to show a graphic, or to make a link to another page.

Explain anchor tag in HTML.

The <a> tag defines an anchor. It can be used to create a link to another document by using the href attribute or to create a bookmark inside a document, by using the name or id attribute

What is a Hypertext link?

A hypertext link is a special tag that links one page to another page or resource. If you click the link, the browser jumps to the link’s destination

What is image mapping in HTML?

Making one image link to several pages is called as image mapping.
For example, if you have a map of India , then clicking on a state can take to to another page and likewise for other states.

What is a DOCTYPE? Which one do I use?

According to HTML standards, each HTML document begins with a DOCTYPE declaration that specifies which version of HTML the document uses. Originally, the DOCTYPE declaration was used only by SGML-based tools like HTML validators, which needed to determine which version of HTML a document used (or claimed to use).
Today, many browsers use the document’s DOCTYPE declaration to determine whether to use a stricter, more standards-oriented layout mode, or to use a “quirks” layout mode that attempts to emulate older, buggy browsers.

Tags: ,

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*