HTML interview questions and Answers(Multiple Choice)-HTML Quiz.

In this section, I have selected advanced HTML interview questions and answers for Freshers and Experienced candidates.Last few months I have been working to select best HTML Job interview question and answer set for IT interview questions.

Multiple Choice HTML interview questions and Answers:

-------------------------------------------------------------------
1.What does HTML stand for?
  • Hyperlinks and Text Markup Language
  • Home Tool Markup Language
  • Hyper Text Markup Language

Ans: Hyper Text Markup Language
-------------------------------------------------------------------
2.Who is making the Web standards?
  • Mozilla
  • Microsoft
  • The World Wide Web Consortium
Ans: The World Wide Web Consortium
-------------------------------------------------------------------
3.Choose the correct HTML tag for the largest heading
  • <h6>
  • <heading>
  • <head>
  • <h1>
Ans: <h1>
-------------------------------------------------------------------
4.What is the difference between XML and HTML?
  • HTML is used for exchanging data, XML is not.
  • XML is used for exchanging data, HTML is not.
  • HTML can have user defined tags, XML cannot
Ans: XML is used for exchanging data, HTML is not.

-------------------------------------------------------------------
5.What is the correct HTML tag for inserting a line break?
  • <br />
  • <break />
  • <lb />
Ans: <br />
-------------------------------------------------------------------
6.Can a data cell contain images?
  •  Yes
  •  No
Ans: Yes
-------------------------------------------------------------------
7.How do I add scrolling text to my page?
  • <scroll>
  • <marquee>
  • <ciruler>
Ans: <marquee>
-------------------------------------------------------------------
8.What is the preferred way for adding a background color in HTML?
  • <body background="yellow">
  • <background>yellow</background>
  • <body style="background-color:yellow">    
Ans: <body style="background-color:yellow">

-------------------------------------------------------------------
9.What does vlink mean ?
  • visited link
  • vlink
  • active link
 Ans: visited link
-------------------------------------------------------------------
10.Is width=”100” and width=”100%” the same?
  • Yes
  • No
Ans: No  
-------------------------------------------------------------------
11.Choose the correct HTML tag to make a text bold
  • <bold>
  • <b>
Ans: <b>
-------------------------------------------------------------------
12.Choose the correct HTML tag to make a text italic
  • <i>
  • <italic>
Ans: <i>
-------------------------------------------------------------------
13.What is extension of html file  ?
  •  html
  •  xml
  •  xhtml
Ans: html
-------------------------------------------------------------------
14.What is the correct HTML for creating a hyperlink?
  • <a name="">A</a>
  • <a>B</a>
  • <a href="http://www.example.com">example</a>
  • <a url="http://www.example.com">example</a>     
Ans: <a href="http://www.example.com">example</a>
-------------------------------------------------------------------
15.How can we resize the image?
  • Using size attribute
  • Using height and width
Ans: Using height and width
-------------------------------------------------------------------
16.How can you create an e-mail link?
  • <mail href="a@b">
  • <mail>a@b</mail>
  • <a href="a@b">
  • <a href="mailto:a@b.com">
 Ans : <a href="mailto:a@b.com">

-------------------------------------------------------------------
17.How can you open a link in a new browser window?

  • <a href="url" new>
  • <a href="url" target="new">
  • <a href="url" target="_blank">
Ans: <a href="url" target="_blank">

-------------------------------------------------------------------
18.Which of these tags are all <table> tags?
  • <table><head><tfoot>
  • <table><tr><td>
  •  <table><tr><tt>
  • <thead><body><tr>
Ans: <table><tr><td>
-------------------------------------------------------------------

19.Choose the correct HTML to left-align the content inside a tablecell
  • <td valign="left">
  • <tdleft>
  • <td leftalign>
  • <td align="left">

Ans: <td align="left">

-------------------------------------------------------------------
20.How can you make a list that lists the items with numbers?
  • <ul>
  • <list>
  • <ol>
  •  <dl>
 Ans :<ol>

-------------------------------------------------------------------
21.How can you make a list that lists the items with bullets?
  • <ol>
  • <list>
  • <ul>
  • <dl>
Ans: <ul>
-------------------------------------------------------------------
22.What is the correct HTML for making a checkbox?
  • <checkbox>
  • <input type="checkbox" />
  • <input type="check" />
  • <check>
Ans: <input type="checkbox" />

-------------------------------------------------------------------
23.What is the correct HTML for making a text input field?
  • <input type="textfield" />
  • <textinput type="text" />
  • <textfield>
  • <input type="text" />
Ans: <input type="text" />

-------------------------------------------------------------------
24.What is the correct HTML for making a drop-down list?
  • <input type="list" />
  • <select>
  • <list>
  • <input type="dropdown" />
Ans: <select>

-------------------------------------------------------------------
25.What is the correct HTML for making a text area?
  • <input type="textarea" />
  • <input type="textbox" />
  • <textarea>
Ans: <textarea>

-------------------------------------------------------------------
26.What is the correct HTML for inserting an image?
  • <image src="image.gif" alt="MyImage" />
  • <img href="image.gif" alt="MyImage" />
  • <img src="image.gif" alt="MyImage" />
  • <img alt="MyImage">image.gif</img>
 Ans: <img src="image.gif" alt="MyImage" />

-------------------------------------------------------------------
27.What is the correct HTML for inserting a background image?

  • <img src="background.gif" background />
  • <body background="background.gif">
  • <background img="background.gif">

Ans: <body background="background.gif">

-------------------------------------------------------------------
28.When you count to 15 using hexadecimal numbers, the highest number is what ?

  •  F
  •  B
  •  15

Ans: F
-------------------------------------------------------------------
29.What is the REFRESH meta tag used for ?

  •  Refresh your content
  •  Redirect to a new domain
  •  rewrite url 

Ans: Redirect to a new domain

-------------------------------------------------------------------
30.colspan=n can be added to only what tag?

  • <table>
  • <td>
  • <tr>

Ans:<td>
-------------------------------------------------------------------
31.What tag adds a paragraph break after the text ?

  •  <PARAGRAPH>
  •  <P>
  •  <BR>

 Ans:<P>
-------------------------------------------------------------------

32.All HTML tags are enclosed in what ?

  •   <>
  •  <?php and ?>
  •  # and #
  •  <!-- and -->

Ans: <>