Wednesday, September 23, 2020

html-mcq-interview-question-and-answer





   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. Choose the correct HTML tag for the largest heading?
  • <h6>
  • <heading>
  • <head>
  • <h1>
    Ans: <h1>
-------------------------------------------------------------------------------------------------------
    3. What is the correct HTML tag for inserting a line break?
  • <br />
  • <break />
  • <lb />
    Ans: <br />
-------------------------------------------------------------------------------------------------------
   4. 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">
-------------------------------------------------------------------------------------------------------
   5. 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" />
-------------------------------------------------------------------------------------------------------
    6. All HTML tags are enclosed in what ?
  •   <>
  •  <?php and ?>
  •  # and #
  •  <!-- and -->
    Ans: <>
-------------------------------------------------------------------------------------------------------
   7.  What is the correct HTML for making a drop-down list?
  • <input type="list" />
  • <select>
  • <list>
  • <input type="dropdown" />
    Ans: <select>
-------------------------------------------------------------------------------------------------------
    8. How can you make a list that lists the items with bullets?
  • <ol>
  • <list>
  • <ul>
  • <dl>
    Ans: <ul>
-------------------------------------------------------------------------------------------------------
    9. __________ is the XML equivalent to strict HTML 4.01.
  •  XHTML 1.0 Strict
  •  XHTML 1.0 Frameset
  •  XHTML 1.0 Transitional
  •  XHTML 1.1 Strict

    Ans: XHTML 1.0 Strict

-------------------------------------------------------------------------------------------------------

    10. you make a list that lists the items with numbers?

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

    Ans: <textarea>

-------------------------------------------------------------------------------------------------------
    12. 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" />
-------------------------------------------------------------------------------------------------------
    13.When you count to 15 using hexadecimal numbers, the highest number is what ?

  •  F
  •  B
  •  15
    Ans: F
-------------------------------------------------------------------------------------------------------
    14.What is the REFRESH meta tag used for ?

  •  Refresh your content
  •  Redirect to a new domain
  •  rewrite url 
    Ans: Redirect to a new domain
-------------------------------------------------------------------------------------------------------
    15.colspan=n can be added to only what tag?

  • <table>
  • <td>
  • <tr>
    Ans:<td>
-------------------------------------------------------------------------------------------------------
    16.What tag adds a paragraph break after the text ?

  •  <PARAGRAPH>
  •  <P>
  •  <BR>
     Ans:<P>
-------------------------------------------------------------------------------------------------------
    17 .Who is making the Web standards?
  • Mozilla
  • Microsoft
  • The World Wide Web Consortium
    Ans: The World Wide Web Consortium
-------------------------------------------------------------------------------------------------------
    18.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.
-------------------------------------------------------------------------------------------------------
    19 .Can a data cell contain images?
  •  Yes
  •  No
    Ans: Yes
--------------------------------------------------------------------------------------------------------
    20.What does vlink mean ?
  • visited link
  • vlink
  • active link
     Ans: visited link
-------------------------------------------------------------------------------------------------------
    21.Is width=”100” and width=”100%” the same?
  • Yes
  • No
    Ans: No  
-------------------------------------------------------------------------------------------------------
    
    22.Choose the correct HTML tag to make a text bold
  • <bold>
  • <b>
    Ans: <b>
--------------------------------------------------------------------------------------------------------
    23.Choose the correct HTML tag to make a text italic
  • <i>
  • <italic>
    Ans: <i>
-------------------------------------------------------------------------------------------------------
    24.What is extension of html file  ?
  •  html
  •  xml
  •  xhtml
    Ans: html
-------------------------------------------------------------------------------------------------------
    25.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>
-------------------------------------------------------------------------------------------------------
    26.How can we resize the image?
  • Using size attribute
  • Using height and width
    Ans: Using height and width
-------------------------------------------------------------------------------------------------------
    27.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">
-------------------------------------------------------------------------------------------------------
    28.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">
-------------------------------------------------------------------------------------------------------
    29.Which of these tags are all <table> tags?
  • <table><head><tfoot>
  • <table><tr><td>
  •  <table><tr><tt>
  • <thead><body><tr>
    Ans: <table><tr><td>
-------------------------------------------------------------------------------------------------------
    30.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">
-------------------------------------------------------------------------------------------------------




Thank you For Watch My Blog 👍


Keep supporting me 

No comments:

Post a Comment

Jquery Hide,Show,Toggel Effects

  jQuery hide() Method   The jQuery  if you want to hide the any content or any think then use method   Syntax :           $(selector).hide(...