Saturday, December 3, 2011

HTML Interview Questions and Answers

HTML interview questions and answers

What is HTML?
HTML, or HyperText Markup Language, is a Universal language which allows an individual using special code to create web pages to be viewed on the Internet.
HTML is a language, which makes it possible to present information on the Internet.
What is the full form of URI, URL, URN?
URI - Uniform Resource Identifier
URL - Uniform Resource Locator
URN - Uniform Resource Name
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. 
Why to specify the alt value in the img tag?
alt stands for alternate if the image can't be loaded on the page, the alt value will be displayed
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.
How to add javascript file reference in the web page?
<script src="/js/myjscode.js" type="text/javascript"></script>
How to display the web page icon in the browser?
<link rel="shortcut icon" href="/images/myicon.gif" />
What is a tag? 
In HTML, a tag tells the browser what to do.
How can you restrict all the textbox's autocomplete to off in a form ?
Set AutoComplete = "off" of the form.
What are differences between HTML and DHTML?
HTML
1. It is referred as a static HTML and static in nature.
2.A plain page without any styles and Scripts called as HTML.
3.HTML sites will be slow upon client-side technologies.
DHTML
1.It is referred as a dynamic HTML and dynamic in nature.
2.A page with HTML, CSS, DOM and Scripts called as DHTML.
3.DHTML sites will be fast enough upon client-side technologies.
How do I specify page breaks in HTML?
There is no way in standard HTML to specify where page breaks will occur when printing a page.
How to transferring user to new web page automatically?
<META HTTP-EQUIV="Refresh" CONTENT="2"; URL="http://get-blognotes.blogspot.com/">
Placing the above tag in your <HEAD></HEAD> will load http://get-blognotes.blogspot.com/  in 2 seconds.
Can we have two body tags on a .html page?
Yes, we can have 2 body tags on a .html page,but first body tag attributes only applies and browser shows all the tag elements in single body tag.
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




No comments:

Post a Comment

Note: Only a member of this blog may post a comment.