HTML Question and Answer

Question: A webpage displays a picture. What tag was used to display that picture?

  • a. picture
  • b. image
  • c. img
  • d. src

Answer: c

Question: <b> tag makes the enclosed text bold. . What is other tag to make text bold?

  • a. <strong>
  • b. <dar>
  • c. <black>
  • d. <emp>

Answer: a

Question: Tags and test that are not directly displayed on the page are written in _____ section

  • a. <html>
  • b. <head>
  • c. <title>
  • d. <body>

Answer: b

Question: Which tag inserts a line horizontally on your web page?

  • a. <hr>
  • b. <line>
  • c. <line direction="horizontal">
  • d. <tr>

Answer: a

Question: What should be the first tag in any HTML document?

  • a. <head>
  • b. <title>
  • c. <html>
  • d. <document>

Answer: c

Question: Which tag allows you to add a row in a table?

  • a. <td> and </td>
  • b. <cr> and </cr>
  • c. <th> and </th>
  • d. <tr> and </tr>

Answer: d

Question: How can you make a bulleted list?

  • a. <list>
  • b. <nl>
  • c. <ul>
  • d. <ol>

Answer: c

Question: How can you make a numbered list?

  • a. <dl>
  • b. <ol>
  • c. <list>
  • d. <ul>

Answer: b

Question: How can you make an e-mail link?

  • a. <a href="xxx@yyy">
  • b. <mail href="xxx@yyy">
  • c. <mail>xxx@yyy</mail>
  • d. <a href="mailto:xxx@yyy">

Answer: d

Question: What is the correct HTML for making a hyperlink?

  • a. <a href="http://www.example.comm">ICT Trends Quiz</a>
  • b. <a name="http://www.example.com">ICT Trends Quiz</a>
  • c. <http://www.example.com</a>
  • d. url="http://www.example.com">ICT Trends Quiz

Answer: a

Question: Choose the correct HTML tag to make a text italic

  • a. <ii>
  • b. <italics>
  • c. <italic>
  • d. <i>

Answer: d

Question: Choose the correct HTML tag to make a text bold?

  • a. <b>
  • b. <bold>
  • c. <bb>
  • d. <bld>

Answer: a

Question: What is the correct HTML for adding a background color?

  • a. <body color="yellow">
  • b. <body bgcolor="yellow">
  • c. <background>yellow</background>
  • d. <body background="yellow">

Answer: b

Question: Choose the correct HTML tag for the smallest size heading?

  • a. <heading>
  • b. <h6>
  • c. <h1>
  • d. <head>

Answer: b

Question: What is the correct HTML tag for inserting a line break?

  • a. <br>
  • b. <lb>
  • c. <break>
  • d. <newline>

Answer: a

Question: What does vlink attribute mean?

  • a. visited link
  • b. virtual link
  • c. very good link
  • d. active link

Answer: a

Question: Which attribute is used to name an element uniquely?

  • a. class
  • b. id
  • c. dot
  • d. all of above

Answer: b

Question: Which tag creates a check box for a form in HTML?

  • a. <checkbox>
  • b. <input type="checkbox">
  • c. <input=checkbox>
  • d. <input checkbox>

Answer: b

Question: To create a combo box (drop down box) which tag will you use?

  • a. <select>
  • b. <list>
  • c. <input type="dropdown">
  • d. all of above

Answer: a

Question: Which of the following is not a pair tag?

  • a. <p>
  • b. < u >
  • c. <i>
  • d. <img>

Answer: d

Show more