Type Here to Get Search Results !

HTML Exam Question And Answer

BUY A PDF BOOK ON THIS TOPIC









1. What does HTML stand for?

A) Hyper Text Markup Language

B) Hyperlinks and Text Markup Language

C) Home Tool Markup Language

D) Hyperlink Text Management Language

Answer: A) Hyper Text Markup Language

 

2. Which tag is used to create a hyperlink in HTML?

A) <link>

B) <a>

C) <href>

D) <hyperlink>

Answer: B) <a>

 

3. What is the correct HTML element for the largest heading?

A) <h6>

B) <h1>

C) <head>

D) <heading>

Answer: B) <h1>

 

4. What does the <img> tag define in HTML?

A) Image

B) Link

C) Paragraph

D) Header

Answer: A) Image

 

5. Which tag is used to define an unordered list in HTML?

A) <ul>

B) <li>

C) <ol>

D) <list>

Answer: A) <ul>

 

6. What is the correct HTML for creating a checkbox?

A) <input type="check">

B) <input type="checkbox">

C) <checkbox>

D) <check>

Answer: B) <input type="checkbox">

 

7. Which HTML attribute is used to define inline styles?

A) style

B) font

C) class

D) design

Answer: A) style

 

8. In HTML, which tag is used to define a table row?

A) <row>

B) <tr>

C) <td>

D) <table-row>

Answer: B) <tr>

 

9. Which tag is used to insert a line break in HTML?

A) <br>

B) <lb>

C) <break>

D) <line>

Answer: A) <br>

 

10. Which attribute is used to provide a unique identifier for an HTML element?

A) id

B) class

C) type

D) name

Answer: A) id

 

11. How do you create an email link in HTML?

A) <mail>

B) <a href="mailto:email@example.com">

C) <email>

D) <link email="email@example.com">

Answer: B) <a href="mailto:email@example.com">

 

12. Which tag is used to define the metadata in an HTML document?

A) <meta>

B) <head>

C) <title>

D) <html>

Answer: A) <meta>

 

13. What is the correct HTML for creating a text input field?

A) <input type="text">

B) <textfield>

C) <input type="textfield">

D) <text>

Answer: A) <input type="text">

 

14. Which tag is used to define a paragraph in HTML?

A) <paragraph>

B) <p>

C) <para>

D) <par>

Answer: B) <p>

 

15. What is the correct HTML for creating a dropdown list?

A) <select>

 

   <option>1</option>

   <option>2</option>

</select>

B) <input type="dropdown">

   <option>1</option>

   <option>2</option>

</input>

C) <dropdown>

   <option>1</option>

   <option>2</option>

</dropdown>

D) <list>

   <option>1</option>

   <option>2</option>

</list>

**Answer: A) <select>

   <option>1</option>

   <option>2</option>

</select>**

 

16. Which attribute is used to define the alternative text for an image in HTML?

A) alt

B) src

C) title

D) description

Answer: A) alt

 

17. Which HTML tag is used to define the document type?

A) <doctype>

B) <!DOCTYPE>

C) <type>

D) <html>

Answer: B) <!DOCTYPE>

 

18. Which attribute is used to specify the URL of the page that the link goes to?

A) href

B) link

C) src

D) url

Answer: A) href

 

19. Which attribute is used to provide an advisory text about an element or its contents?

A) tooltip

B) info

C) advisory

D) title

Answer: D) title

 

20. What is the correct HTML for creating a button?

A) <btn>

B) <button>

C) <input type="button">

D) <input type="submit">

Answer: B) <button>

 

21. Which tag is used to define a division or a section in an HTML document?

A) <section>

B) <div>

C) <division>

D) <divison>

Answer: B) <div>

 

22. What is the correct HTML for adding a background color to a webpage?

A) <body color="red">

B) <body style="background-color: red;">

C) <bg color="red">

D) <background color="red">

Answer: B) <body style="background-color: red;">

 

23. Which tag is used to define an italic text in HTML?

A) <italic>

B) <i>

C) <italicize>

D) <it>

Answer: B) <i>

 

24. What is the correct HTML for creating a hyperlink to an email address?

A) <a>email@example.com</a>

B) <a href="mailto:email@example.com">email@example.com</a>

C) <a src="email@example.com">email@example.com</a>

D) <a href="email@example.com">email@example.com</a>

Answer: B) <a href="mailto:email@example.com">email@example.com</a>

 

25. Which attribute is used to specify the URL of the image to be displayed?

A) src

B) img

C) url

D) link

Answer: A) src

 

26. What does the <pre> tag define in HTML?

A) Preformatted text

B) Paragraph

C) Precise text

D) Presentation

Answer: A) Preformatted text

 

27. Which tag is used to create a horizontal line in HTML?

A) <hr>

B) <line>

C) <hline>

D) <horizontal>

Answer: A) <hr>

 

28. Which tag is used to specify a footer for a document or a section?

A) <footer>

B) <foot>

C) <end>

D) <bottom>

Answer: A) <footer>

 

29. What is the correct HTML for creating a hyperlink to another webpage?

A) <a url="http://www.example.com">Example</a>

B) <a link="http://www.example.com">Example</a>

C) <a src="http://www.example.com">Example</a>

D) <a href="http://www.example.com">Example</a>

Answer: D) <a href="http://www.example.com">Example</a>

 

30 Which tag is used to define a table heading?

A) <thead>

B) <head>

C) <th>

D) <table-head>

Answer: C) <th>

 

31. What is the correct HTML for inserting an image?

A) <img src="image.jpg" alt="Image">

B) <image src="image.jpg" alt="Image">

C) <picture src="image.jpg" alt="Image">

D) <image="image.jpg" alt="Image">

Answer: A) <img src="image.jpg" alt="Image">

 

32. Which tag is used to create a list item in HTML?

A) <li>

B) <list>

C) <ul>

D) <ol>

Answer: A) <li>

 

33. What is the correct HTML for creating a checkbox?

A) <input type="check">

B) <input type="checkbox">

C) <checkbox>

D) <check>

Answer: B) <input type="checkbox">

 

34. Which attribute is used to define the relationship between a document and an external resource?

A) link

B) href

C) rel

D) src

Answer: C) rel

 

35. What is the correct HTML for creating a hyperlink to a section within the same webpage?

A) <a href="#section">Section</a>

B) <a src="#section">Section</a>

C) <a link="#section">Section</a>

D) <a href="section">Section</a>

Answer: A) <a href="#section">Section</a>

 

36. Which tag is used to define a navigation menu in HTML5?

A) <nav>

B) <menu>

C) <navbar>

D) <navigation>

Answer: A) <nav>

 

37. What is the correct HTML for creating a button that submits a form?

A) <button type="submit">Submit</button>

B) <input type="submit" value="Submit">

C) <submit>Submit</submit>

D) <btn submit>Submit</btn>

Answer: B) <input type="submit" value="Submit">

 

38. Which tag is used to define a section in a document?

A) <section>

B) <div>

C) <part>

D) <block>

Answer: A) <section>

 

39. What is the correct HTML for creating a dropdown list?

A) <select>

<option>Option 1</option>

<option>Option 2</option>

</select>

B) <dropdown>

<option>Option 1</option>

<option>Option 2</option>

</dropdown>

C) <list>

<option>Option 1</option>

<option>Option 2</option>

</list>

D) <input type="dropdown">

<option>Option 1</option>

<option>Option 2</option>

</input>

Answer: A) <select>

<option>Option 1</option>

<option>Option 2</option>

</select>

 

40. What is the correct HTML for creating a hyperlink with the target attribute set to open in a new window?

A) <a href="http://www.example.com" target="_blank">Example</a>

B) <a href="http://www.example.com" target="new">Example</a>

C) <a href="http://www.example.com" new>Example</a>

D) <a href="http://www.example.com" target="new_window">Example</a>

Answer: A) <a href="http://www.example.com" target="_blank">Example</a>

 

41. Which tag is used to define an input field for entering numeric values?

A) <input type="number">

B) <input type="text">

C) <input type="numeric">

D) <input type="integer">

Answer: A) <input type="number">

 

42. What is the correct HTML for creating a hyperlink that does not show the URL?

A) <a href="http://www.example.com" display="none">Example</a>

B) <a href="http://www.example.com" hide>Example</a>

C) <a href="http://www.example.com" style="text-decoration: none;">Example</a>

D) <a href="http://www.example.com">Click here</a>

Answer: D) <a href="http://www.example.com">Click here</a>

 

43. Which attribute is used to define the alternative text for an image in case the image cannot be displayed?

A) alt

B) title

C) desc

D) image

Answer: A) alt

 

44. What is the correct HTML for creating a hyperlink that opens an email program?

A) <a href="mailto:email@example.com">Email me</a>

B) <a href="email@example.com">Email me</a>

C) <a email="mailto:email@example.com">Email me</a>

D) <a src="mailto:email@example.com">Email me</a>

Answer: A) <a href="mailto:email@example.com">Email me</a>

 

45. Which tag is used to define a header for a document or a section?

A) <header>

B) <head>

C) <h1>

D) <h>

Answer: A) <header>

 

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

A) <body image="background.jpg">

B) <body style="background-image: url('background.jpg');">

C) <background image="background.jpg">

D) <body bg="background.jpg">

Answer: B) <body style="background-image: url('background.jpg');">

 

47. Which tag is used to define a list of navigation links in HTML5?

A) <navlist>

B) <menu>

C) <navigation>

D) <nav>

Answer: D) <nav>

 

48. What is the correct HTML for creating a checkbox that is initially checked?

A) <input type="checkbox" checked>

B) <input type="checkbox" value="checked">

C) <input type="checked" checkbox>

D) <checkbox checked>

Answer: A) <input type="checkbox" checked>

 

49. Which tag is used to define a caption for a table in HTML?

A) <caption>

B) <head>

C) <table-caption>

D) <td>

Answer: A) <caption>

 

50. What is the correct HTML for creating a hyperlink with a specified target URL?

A) <a target="http://www.example.com">Example</a>

B) <a href="http://www.example.com" target="_self">Example</a>

C) <a href="http://www.example.com" target="_top">Example</a>

D) <a href="http://www.example.com">Example</a>

Answer: D) <a href="http://www.example.com">Example</a>

 

51. Which tag is used to define a container for external content or plug-ins in HTML5?

A) <container>

B) <plugin>

C) <embed>

D) <object>

Answer: D) <object>

 

52. What is the correct HTML for creating an unordered list with square bullets?

A) <ul style="list-style-type: square;">

<li>Item 1</li>

<li>Item 2</li>

 

   </ul>

B) <ul type="square">

     <li>Item 1</li>

     <li>Item 2</li>

   </ul>

C) <ul>

     <li style="list-style-type: square;">Item 1</li>

     <li style="list-style-type: square;">Item 2</li>

   </ul>

D) <ul>

     <li type="square">Item 1</li>

     <li type="square">Item 2</li>

   </ul>

**Answer: A) <ul style="list-style-type: square;">

     <li>Item 1</li>

     <li>Item 2</li>

   </ul>**

Which tag is used to define a group of related options in a dropdown list?

A) <select>

B) <option-group>

C) <optgroup>

D) <optionset>

Answer: C) <optgroup>

 

53. What is the correct HTML for creating a checkbox with a label?

A) <label><input type="checkbox">Check me</label>

B) <input type="checkbox"><label>Check me</label>

C) <input type="checkbox" label="Check me">

D) <checkbox>Check me</checkbox>

Answer: A) <label><input type="checkbox">Check me</label>

 

54. Which tag is used to define a comment in HTML?

A) <!-- -->

B) <comment></comment>

C) <com>

D) <cmt>

Answer: A) <!-- -->

 

55. What is the correct HTML for creating a button that resets a form?

A) <input type="reset" value="Reset">

B) <button type="reset">Reset</button>

C) <button>Reset</button>

D) <reset>Reset</reset>

Answer: A) <input type="reset" value="Reset">

 

56. Which attribute is used to specify the relationship between the current document and the linked document?

A) rel

B) href

C) target

D) link

Answer: A) rel

 

57. What is the correct HTML for adding a background color to a table?

A) <table style="background-color: yellow;">

B) <table bgcolor="yellow">

C) <table color="yellow">

D) <table background="yellow">

Answer: A) <table style="background-color: yellow;">

 

58. Which attribute is used to specify the type of list item marker in HTML?

A) marker

B) style

C) list-style

D) list-style-type

Answer: D) list-style-type

 

59. What is the correct HTML for creating a numbered list?

A) <ul>

<li>Item 1</li>

<li>Item 2</li>

 

   </ul>

B) <list>

     <li>Item 1</li>

     <li>Item 2</li>

   </list>

C) <ol>

     <li>Item 1</li>

     <li>Item 2</li>

   </ol>

D) <order>

     <li>Item 1</li>

     <li>Item 2</li>

   </order>

**Answer: C) <ol>

     <li>Item 1</li>

     <li>Item 2</li>

   </ol>**

60. Which tag is used to define a cell in a table?

A) <cell>

B) <th>

C) <td>

D) <table-cell>

Answer: C) <td>

 

What is the correct HTML for creating a hyperlink to an external CSS file?

A) <link src="styles.css" type="text/css">

B) <link href="styles.css" rel="stylesheet">

C) <stylesheet src="styles.css">

D) <style src="styles.css">

Answer: B) <link href="styles.css" rel="stylesheet">

 

61. Which tag is used to define an embedded video in HTML5?

A) <video>

B) <media>

C) <movie>

D) <embed>

Answer: A) <video>

 

62. What is the correct HTML for creating a table with two rows and two columns?

A) <table>

<row><cell>1</cell><cell>2</cell></row>

<row><cell>3</cell><cell>4</cell></row>

 

   </table>

B) <table>

     <tr><td>1</td><td>2</td></tr>

     <tr><td>3</td><td>4</td></tr>

   </table>

C) <table>

     <tr><td>1</td><td>2</td><tr>

     <tr><td>3</td><td>4</td><tr>

   </table>

D) <table>

     <tr><th>1</th><th>2</th></tr>

     <tr><th>3</th><th>4</th></tr>

   </table>

**Answer: B) <table>

     <tr><td>1</td><td>2</td></tr>

     <tr><td>3</td><td>4</td></tr>

   </table>**

63. Which attribute is used to specify the width of a table border in HTML?

A) border-width

B) table-border

C) border

D) border-size

Answer: C) border

 

64. What is the correct HTML for creating a hyperlink to a section within the same webpage using an anchor tag?

A) <a href="section1">Section 1</a>

B) <a src="#section1">Section 1</a>

C) <a link="#section1">Section 1</a>

D) <a href="#section1">Section 1</a>

Answer: D) <a href="#section1">Section 1</a>

 

65. Which attribute is used to specify the alternative text for an image in HTML5?

A) alt

B) title

C) description

D) img

Answer: A) alt

 

66. What is the correct HTML for creating a hyperlink that opens in a new tab?

A) <a href="http://www.example.com" target="_new">Example</a>

B) <a href="http://www.example.com" target="_tab">Example</a>

C) <a href="http://www.example.com" target="_blank">Example</a>

D) <a href="http://www.example.com" target="_window">Example</a>

Answer: C) <a href="http://www.example.com" target="_blank">Example</a>

 

67. Which tag is used to define a container for the body section of an HTML document?

A) <container>

B) <body>

C) <section>

D) <main>

Answer: B) <body>

 

68. What is the correct HTML for creating a hyperlink that opens an email program with the recipient's address already filled in?

A) <a href="mailto:email@example.com?subject=Subject&body=Message">Email me</a>

B) <a href="email@example.com">Email me</a>

C) <a src="mailto:email@example.com">Email me</a>

D) <a href="mailto:email@example.com">Email me</a>

Answer: A) <a href="mailto:email@example.com?subject=Subject&body=Message">Email me</a>

 

69. Which tag is used to create a horizontal line in HTML?

A) <line>

B) <hr>

C) <horizontal>

D) <rule>

Answer: B) <hr>

 

70. What is the correct HTML for creating a hyperlink without an underline?

A) <a href="http://www.example.com" style="text-decoration: none;">Example</a>

B) <a href="http://www.example.com" underline="none">Example</a>

C) <a href="http://www.example.com" text-decoration="none">Example</a>

D) <a href="http://www.example.com">Example</a>

Answer: A) <a href="http://www.example.com" style="text-decoration: none;">Example</a>

 

71. Which tag is used to define an italic text in HTML5?

A) <italic>

B) <i>

C) <italics>

D) <em>

Answer: D) <em>

 

72. What is the correct HTML for inserting a line break?

A) <br>

B) <lb>

C) <linebreak>

D) <break>

Answer: A) <br>

 

73. Which attribute is used to specify the alignment of the content inside a table cell?

A) align

B) valign

C) align-content

D) content-align

Answer: A) align

 

74. What is the correct HTML for creating a button with rounded corners?

A) <button style="border-radius: 5px;">Submit</button>

B) <button corner="rounded">Submit</button>

C) <button border-radius="5px;">Submit</button>

D) <button>Submit</button>

Answer: A) <button style="border-radius: 5px;">Submit</button>

 

75. Which attribute is used to specify the relationship between the current document and the linked document in HTML5?

A) rel

B) href

C) target

D) link

Answer: A) rel

 

76. What is the correct HTML for creating a checkbox?

A) <input type="check">

B) <input type="checkbox">

C) <checkbox>

D) <check>

Answer: B) <input type="checkbox">

 

77. Which tag is used to define a row in a table?

A) <td>

B) <row>

C) <tr>

D) <table-row>

Answer: C) <tr>

 

78. What is the correct HTML for creating a hyperlink that does not change the color when visited?

A) <a href="http://www.example.com" style="text-decoration: none;">Example</a>

B) <a href="http://www.example.com" visited="no">Example</a>

C) <a href="http://www.example.com" color="black">Example</a>

D) <a href="http://www.example.com">Example</a>

Answer: A) <a href="http://www.example.com" style="text-decoration: none;">Example</a>

 

79. Which tag is used to define an ordered list in HTML?

A) <list>

B) <ol>

C) <order>

D) <ul>

Answer: B) <ol>

 

80. What is the correct HTML for creating a hyperlink to an anchor on the same page?

A) <a href="anchor">Link</a>

B) <a href="#anchor">Link</a>

C) <a src="#anchor">Link</a>

D) <a link="#anchor">Link</a>

Answer: B) <a href="#anchor">Link</a>

 

81. Which tag is used to define an input field for entering text in HTML?

A) <textfield>

B) <input type="text">

C) <input>

D) <text>

Answer: B) <input type="text">

 

82. What is the correct HTML for creating a button that submits a form?

A) <button type="submit">Submit</button>

B) <input type="submit" value="Submit">

C) <button>Submit</button>

D) <submit>Submit</submit>

Answer: A) <button type="submit">Submit</button>

 

83. Which attribute is used to define the alternative text for an image in HTML?

A) alt

B) src

C) title

D) description

Answer: A) alt

 

85. What is the correct HTML for creating a hyperlink to an email address?

A) <a href="email@example.com">Email me</a>

B) <a mailto="email@example.com">Email me</a>

C) <a src="email@example.com">Email me</a>

D) <a href="mailto:email@example.com">Email me</a>

Answer: D) <a href="mailto:email@example.com">Email me</a>

 

86. Which tag is used to define a division or a section in an HTML document?

A) <div>

B) <section>

C) <divison>

D) <part>

Answer: A) <div>

 

87. What is the correct HTML for inserting a line break without any space?

A) <br>

B) <lb>

C) <line>

D) <break>

Answer: A) <br>

 

88. Which tag is used to define the metadata in an HTML document?

A) <meta>

B) <head>

C) <title>

D) <html>

Answer: A) <meta>

 

89. What is the correct HTML for creating an unordered list?

A) <ul>

<li>Item 1</li>

<li>Item 2</li>

 

   </ul>

B) <list>

     <li>Item 1</li>

     <li>Item 2</li>

   </list>

C) <ol>

     <li>Item 1</li>

     <li>Item 2</li>

   </ol>

D) <ul>

     <item>Item 1</item>

     <item>Item 2</item>

   </ul>

**Answer: A) <ul>

     <li>Item 1</li>

     <li>Item 2</li>

   </ul>**

90. Which attribute is used to define the background color of an HTML element?

A) bg-color

B) color

C) background-color

D) bgcolor

Answer: C) background-color

 

91. What is the correct HTML for creating a hyperlink that opens in a new window?

A) <a href="http://www.example.com" target="_blank">Example</a>

B) <a href="http://www.example.com" target="_window">Example</a>

C) <a href="http://www.example.com" target="_self">Example</a>

D) <a href="http://www.example.com">Example</a>

Answer: A) <a href="http://www.example.com" target="_blank">Example</a>

 

92. Which tag is used to define a footer for a document or a section?

A) <footer>

B) <foot>

C) <end>

D) <bottom>

Answer: A) <footer>

 

93. Which tag is used to define a header for a document or a section?

A) <header>

B) <head>

C) <h1>

D) <h>

Answer: A) <header>

 

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

A) <body image="background.jpg">

B) <body style="background-image: url('background.jpg');">

C) <background image="background.jpg">

D) <body bg="background.jpg">

Answer: B) <body style="background-image: url('background.jpg');">

 

95. Which tag is used to define a navigation menu in HTML5?

A) <nav>

B) <menu>

C) <navbar>

D) <navigation>

Answer: A) <nav>

 

96. What is the correct HTML for creating a hyperlink to another webpage?

A) <a href="http://www.example.com">Example</a>

B) <a url="http://www.example.com">Example</a>

C) <a src="http://www.example.com">Example</a>

D) <a link="http://www.example.com">Example</a>

Answer: A) <a href="http://www.example.com">Example</a>

 

97. Which tag is used to define a table heading?

A) <thead>

B) <head>

C) <th>

D) <table-head>

Answer: C) <th>

 

98. What is the correct HTML for inserting an image?

A) <img src="image.jpg" alt="Image">

B) <image src="image.jpg" alt="Image">

C) <picture src="image.jpg" alt="Image">

D) <image="image.jpg" alt="Image">

Answer: A) <img src="image.jpg" alt="Image">

 

99. Which tag is used to create a list item in HTML?

A) <li>

B) <list>

C) <ul>

D) <ol>

Answer: A) <li>

 

100. What is the correct HTML for creating a checkbox?

A) <input type="check">

B) <input type="checkbox">

C) <checkbox>

D) <check>

Answer: B) <input type="checkbox">

 

101. Which attribute is used to specify the relationship between a document and an external resource?

A) link

B) href

C) rel

D) src

Answer: C) rel

 

102. What is the correct HTML for creating a hyperlink to a section within the same webpage?

A) <a href="#section">Section</a>

B) <a src="#section">Section</a>

C) <a link="#section">Section</a>

D) <a href="section">Section</a>

Answer: A) <a href="#section">Section</a>

 

103. Which tag is used to define a container for external content or plug-ins in HTML5?

A) <container>

B) <plugin>

C) <embed>

D) <object>

Answer: D) <object>

 

104. What is the correct HTML for creating a hyperlink that opens an email program?

A) <a href="mailto:email@example.com">Email me</a>

B) <a href="email@example.com">Email me</a>

C) <a email="mailto:email@example.com">Email me</a>

D) <a src="mailto:email@example.com">Email me</a>

Answer: A) <a href="mailto:email@example.com">Email me</a>

 

105. Which tag is used to define a caption for a table in HTML?

A) <caption>

B) <head>

C) <table-caption>

D) <td>

Answer: A) <caption>

 

106. What is the correct HTML for creating a hyperlink with the target attribute set to open in a new window?

A) <a href="http://www.example.com" target="_blank">Example</a>

B) <a href="http://www.example.com" target="new">Example</a>

C) <a href="http://www.example.com" new>Example</a>

D) <a href="http://www.example.com" target="new_window">Example</a>

Answer: A) <a href="http://www.example.com" target="_blank">Example</a>

 

107. Which tag is used to define a container for the body section of an HTML document?

A) <container>

B) <body>

C) <section>

D) <main>

Answer: B) <body>

 

108. What is the correct HTML for creating a hyperlink that opens in a new tab?

A) <a href="http://www.example.com" target="_new">Example</a>

B) <a href="http://www.example.com" target="_tab">Example</a>

C) <a href="http://www.example.com" target="_blank">Example</a>

D) <a href="http://www.example.com" target="_window">Example</a>

Answer: C) <a href="http://www.example.com" target="_blank">Example</a>

 

109. Which tag is used to define a group of related options in a dropdown list?

A) <select>

B) <option-group>

C) <optgroup>

D) <optionset>

Answer: C) <optgroup>

 

110. What is the correct HTML for creating a hyperlink to a section within the same webpage using an anchor tag?

A) <a href="section1">Section 1</a>

B) <a src="#section1">Section 1</a>

C) <a link="#section1">Section 1</a>

D) <a href="#section1">Section 1</a>

Answer: D) <a href="#section1">Section 1</a>

 

111. Which tag is used to define a cell in a table?

A) <cell>

B) <th>

C) <td>

D) <table-cell>

Answer: C) <td>

 

112. What is the correct HTML for creating a hyperlink that does not show the URL?

A) <a href="http://www.example.com" display="none">Example</a>

B) <a href="http://www.example.com" hide>Example</a>

C) <a href="http://www.example.com" style="text-decoration: none;">Example</a>

D) <a href="http://www.example.com">Click here</a>

Answer: D) <a href="http://www.example.com">Click here</a>

 

113. Which tag is used to define a list of navigation links in HTML5?

A) <navlist>

B) <menu>

C) <navigation>

D) <nav>

Answer: D) <nav>

 

114. What is the correct HTML for creating a checkbox that is initially checked?

A) <input type="checkbox" checked>

B) <input type="checkbox" value="checked">

C) <input type="checked" checkbox>

D) <checkbox checked>

Answer: A) <input type="checkbox" checked>

 

115. Which attribute is used to define the alternative text for an image in case the image cannot be displayed?

A) alt

B) title

C) desc

D) image

Answer: A) alt

 

116. What is the correct HTML for creating a hyperlink that opens an email program?

A) <a href="mailto:email@example.com">Email me</a>

B) <a href="email@example.com">Email me</a>

C) <a email="mailto:email@example.com">Email me</a>

D) <a src="mailto:email@example.com">Email me</a>

Answer: A) <a href="mailto:email@example.com">Email me</a>

 

117. Which tag is used to define a header for a document or a section?

A) <header>

B) <head>

C) <h1>

D) <h>

Answer: A) <header>

 

 

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.