Here are Top 100 multiple-choice questions (MCQs) focused on the Text formatting and semantics in HTML (Hypertext Markup Language) MCQs, along with their answers and explanations.

PRACTICE IT NOW TO SHARPEN YOUR CONCEPT AND KNOWLEDGE

view hide answers

1. Which HTML tag is used to create a bold text formatting?

  • `<italic>`
  • `<bold>`
  • `<strong>`
  • `<em>`

2. What is the correct HTML tag for creating italic text formatting?

  • `<italic>`
  • `<i>`
  • `<em>`
  • `<strong>`

3. Which HTML element is used to create an emphasized text without implying strong importance?

  • `<i>`
  • `<em>`
  • `<italic>`
  • `<strong>`

4. What is the purpose of the HTML `<mark>` tag?

  • To highlight text
  • To insert images
  • To create a hyperlink
  • To define a table

5. In HTML, what is the role of the `<del>` tag?

  • To create a new paragraph
  • To insert an image
  • To define text that has been deleted or removed
  • To create a hyperlink

6. What does the HTML `<ins>` tag represent?

  • Superscript text
  • Subscript text
  • A hyperlink
  • Text that has been inserted or added

7. What is the purpose of the HTML `<s>` tag?

  • To create a strong emphasis on text
  • To define a structural element
  • To create subscript text
  • To indicate text that is no longer accurate or relevant

8. What is the role of the HTML `<q>` tag?

  • To create a quote or citation
  • To insert an image
  • To define a section of navigation links
  • To create a hyperlink

9. What does the HTML `<sub>` tag represent?

  • Superscript text
  • Emphasized text
  • Subscript text
  • A hyperlink

10. What is the correct HTML tag for creating superscript text formatting?

  • `<super>`
  • `<s>`
  • `<sup>`
  • `<sub>`

11. What is the purpose of the HTML `<abbr>` tag?

  • To create metadata for search engines
  • To insert images
  • To create an abbreviation or acronym
  • To create a block-level quote

12. What does the HTML `<time>` tag represent?

  • A timestamp or a specific time of day
  • A hyperlink
  • A heading or title
  • A definition term

13. In HTML, what is the role of the `<cite>` tag?

  • To create metadata for search engines
  • To insert images
  • To create a citation or reference to a source
  • To create an unordered list

14. What is the purpose of the HTML `<code>` tag?

  • To create a hyperlink
  • To define a block of code or computer code
  • To create a table
  • To insert images

15. What does the HTML `<dfn>` tag represent?

  • A definition term
  • A comment
  • A subheading
  • A block of code

16. In HTML, what is the purpose of the `<kbd>` tag?

  • To define a structural element
  • To create a hyperlink
  • To insert an image
  • To indicate text that represents keyboard input

17. What is the role of the HTML `<samp>` tag?

  • To create a hyperlink
  • To define a structural
  • To insert images
  • To indicate text that represents sample output

18. What is the purpose of the HTML `<var>` tag?

  • To define a section of navigation links
  • To insert images
  • To create metadata for search engines
  • To indicate text that represents a variable or placeholder

19. In HTML, what does the `<bdo>` tag allow you to do?

  • Create a block of code
  • Insert images
  • Override the text direction for text within it
  • Create a definition list

20. What is the purpose of the HTML `<wbr>` tag?

  • To define a table
  • To insert images
  • To create a hyperlink
  • To suggest a line break opportunity within text

21. In HTML, what does the `<ruby>` tag allow you to do?

  • Create a list
  • Create a tooltip
  • Define pronunciation or provide additional information for characters
  • Insert images

22. What is the role of the HTML `<sarcasm>` tag?

  • To create a sarcastic text formatting
  • To define a semantic element
  • To insert images
  • To suggest a line break within text

23. In HTML, what is the purpose of the `<time>` tag with a datetime attribute?

  • To insert an image
  • To define the document's character encoding
  • To create a table
  • To provide machine-readable date and time information

24. What does the HTML `<address>` tag represent?

  • A street address
  • A structural element
  • An email address
  • A hyperlink

25. In HTML, what is the role of the `<u>` tag?

  • To create a hyperlink
  • To define a structural element
  • To insert images
  • To underline text

26. What does the HTML `<abbr>` tag's `title` attribute provide?

  • Additional styling for the abbreviation
  • The full text of the abbreviation
  • A tooltip with the full text of the abbreviation
  • A hyperlink to a source

27. In HTML, what is the purpose of the `<small>` tag?

  • To create a small text formatting
  • To insert images
  • To create a hyperlink
  • To indicate text that is less important

28. What is the role of the HTML `<strong>` tag with the `title` attribute?

  • To define a structural element
  • To create a tooltip with the strong text
  • To create a hyperlink
  • To insert images

29. What does the HTML `<dfn>` tag's `title` attribute provide?

  • Additional styling for the definition term
  • A tooltip with the definition of the term
  • A hyperlink to a source
  • A block of code

30. In HTML, what does the `<mark>` tag's `title` attribute provide?

  • Additional styling for highlighted text
  • A tooltip with the marked text
  • A hyperlink to a source
  • A block of code

31. What is the purpose of the HTML `<q>` tag's `cite` attribute?

  • To define a block of code
  • To create a hyperlink
  • To indicate the source of the quote or citation
  • To create metadata for search engines

32. What does the HTML `<sub>` tag's `title` attribute provide?

  • Additional styling for subscript text
  • A tooltip with the subscript text
  • A hyperlink to a source
  • A definition for the subscript

33. In HTML, what is the role of the `<sup>` tag's `title` attribute?

  • To indicate text that has been inserted
  • To create a hyperlink
  • To provide additional information about the superscript text
  • To create a tooltip with the superscript text

34. What is the purpose of the HTML `<time>` tag's `datetime` attribute?

  • To indicate a timestamp in a user-readable format
  • To define a table
  • To provide a hyperlink to a source
  • To suggest a line break opportunity

35. What is the role of the HTML `<bdi>` tag?

  • To define text that should be displayed bidirectionally
  • To create a hyperlink
  • To insert images
  • To indicate text that has been deleted

36. What does the HTML `<wbr>` tag do when included in text content?

  • It creates a hyperlink
  • It suggests a line break opportunity within text
  • It provides metadata for search engines
  • It defines a block of code

37. What is the purpose of the HTML `<bdi>` tag's `dir` attribute?

  • To create a hyperlink
  • To specify the text direction for bidirectional text
  • To indicate a block of code
  • To define a table

38. In HTML, what is the role of the `<wbr>` tag's `title` attribute?

  • To create a tooltip with the wbr text
  • To define a block of code
  • To indicate text that is no longer accurate
  • To create a hyperlink

39. What does the HTML `<bdi>` tag's `title` attribute provide?

  • Additional styling for bidirectional text
  • A tooltip with the bidirectional text
  • A hyperlink to a source
  • A definition for the bidirectional text

40. What is the role of the HTML `<q>` tag with the `cite` attribute?

  • To indicate text that is no longer accurate
  • To define a structural element
  • To provide additional information for a quote or citation
  • To create a hyperlink

41. What does the HTML `<bdo>` tag's `dir` attribute specify?

  • The display direction of text within the element
  • The text color
  • The text font
  • The hyperlink destination

42. In HTML, what is the role of the `<mark>` tag's `class` attribute?

  • To define a structural element
  • To insert images
  • To create a hyperlink
  • To provide additional styling for marked text

43. What is the purpose of the HTML `<abbr>` tag with the `class` attribute?

  • To indicate text that represents keyboard input
  • To define a structural element
  • To create a hyperlink
  • To provide additional styling for the abbreviation

44. In HTML, what is the role of the `<time>` tag with the `pubdate` attribute?

  • To indicate a timestamp in a user-readable format
  • To suggest a line break opportunity
  • To create a table
  • To create a hyperlink

45. What does the HTML `<del>` tag's `datetime` attribute provide?

  • Additional styling for deleted text
  • A tooltip with the deleted text
  • A hyperlink to the source of deletion
  • A machine-readable date and time of deletion

46. In HTML, what is the purpose of the `<cite>` tag's `class` attribute?

  • To provide additional styling for citations
  • To define a structural element
  • To create a hyperlink
  • To suggest a line break opportunity

47. What is the role of the HTML `<q>` tag's `class` attribute?

  • To define a structural element
  • To provide additional styling for quotes
  • To insert images
  • To suggest a line break opportunity

48. What does the HTML `<var>` tag's `title` attribute provide?

  • Additional styling for variables
  • A tooltip with the variable text
  • A hyperlink to a source
  • A definition for the variable

49. In HTML, what is the role of the `<u>` tag with the `title` attribute?

  • To create a tooltip with underlined text
  • To define a structural element
  • To insert images
  • To suggest a line break opportunity

50. What is the purpose of the HTML `<cite>` tag with the `title` attribute?

  • To provide a tooltip with the citation text
  • To create a hyperlink
  • To indicate text that is no longer accurate
  • To define a table

51. What does the HTML `<dfn>` tag's `class` attribute provide?

  • A definition for the definition term
  • A tooltip with the definition of the term
  • Additional styling for definition terms
  • A hyperlink to a source

52. In HTML, what is the role of the `<small>` tag with the `title` attribute?

  • To define a block of code
  • To create a tooltip with the small text
  • To indicate text that is less important
  • To create a hyperlink

53. What is the purpose of the HTML `<bdo>` tag with the `title` attribute?

  • To create a tooltip with the bidirectional text
  • To suggest a line break opportunity within text
  • To indicate text that is no longer accurate
  • To provide additional styling for bidirectional text

54. What is the role of the HTML `<s>` tag with the `title` attribute?

  • To indicate text that is no longer accurate
  • To create a hyperlink
  • To define a structural element
  • To provide a tooltip with the strikethrough text

55. In HTML, what is the purpose of the `<wbr>` tag with the `class` attribute?

  • To define a structural element
  • To create a tooltip with the wbr text
  • To suggest a line break opportunity within text
  • To provide additional styling for suggested line breaks

56. What does the HTML `<mark>` tag's `class` attribute provide?

  • A hyperlink to a source
  • A tooltip with the marked text
  • Additional styling for highlighted text
  • A definition for the marked text

57. What is the purpose of the HTML `<s>` tag with the `class` attribute?

  • To provide additional styling for deleted text
  • To create a hyperlink
  • To define a structural element
  • To suggest a line break opportunity

58. In HTML, what does the `<sub>` tag's `class` attribute provide?

  • A tooltip with the subscript text
  • A hyperlink to a source
  • Additional styling for subscript text
  • A definition for the subscript

59. What is the role of the HTML `<sup>` tag with the `class` attribute?

  • To provide a tooltip with the superscript text
  • To create a hyperlink
  • To define a structural element
  • To suggest a line break opportunity

60. What is the purpose of the HTML `<cite>` tag with the `class` attribute?

  • To suggest a line break opportunity
  • To provide a tooltip with the citation text
  • To create a hyperlink
  • To provide additional styling for citations

61. In HTML, what does the `<var>` tag's `class` attribute provide?

  • A definition for the variable
  • A hyperlink to a source
  • A tooltip with the variable text
  • Additional styling for variables

62. What is the role of the HTML `<u>` tag with the `class` attribute?

  • To suggest a line break opportunity
  • To create a hyperlink
  • To define a structural element
  • To provide additional styling for underlined text

63. What does the HTML `<bdi>` tag's `class` attribute provide?

  • A definition for bidirectional text
  • A tooltip with the bidirectional text
  • A hyperlink to a source
  • Additional styling for bidirectional text

64. In HTML, what is the purpose of the `<wbr>` tag with the `title` attribute?

  • To suggest a line break opportunity
  • To create a tooltip with the wbr text
  • To define a structural element
  • To provide additional styling for suggested line breaks

65. What is the role of the HTML `<mark>` tag's `title` attribute?

  • To provide a tooltip with the marked text
  • To create a hyperlink
  • To define a structural element
  • To suggest a line break opportunity

66. What does the HTML `<s>` tag's `title` attribute provide?

  • A tooltip with the strikethrough text
  • A hyperlink to a source
  • Additional styling for deleted text
  • A definition for the strikethrough text

67. In HTML, what is the role of the `<sub>` tag's `title` attribute?

  • To provide additional styling for subscript text
  • To create a tooltip with the subscript text
  • To suggest a line break opportunity
  • To indicate text that has been inserted

68. What is the purpose of the HTML `<sup>` tag's `title` attribute?

  • To indicate text that has been inserted
  • To create a tooltip with the superscript text
  • To create a hyperlink
  • To provide a tooltip with additional information about the superscript text

69. What is the role of the HTML `<cite>` tag with the `title` attribute?

  • To provide additional styling for citations
  • To create a hyperlink
  • To create a tooltip with the citation text
  • To suggest a line break opportunity

70. In HTML, what does the `<var>` tag's `title` attribute provide?

  • A tooltip with the variable text
  • A definition for the variable
  • A hyperlink to a source
  • Additional styling for variables

71. What is the purpose of the HTML `<u>` tag with the `title` attribute?

  • To suggest a line break opportunity
  • To create a tooltip with the underlined text
  • To provide additional styling for underlined text
  • To define a structural element

72. What does the HTML `<mark>` tag's `title` attribute provide?

  • A hyperlink to a source
  • A tooltip with the marked text
  • Additional styling for highlighted text
  • A definition for the marked text

73. In HTML, what is the role of the `<s>` tag's `title` attribute?

  • To suggest a line break opportunity
  • To provide a tooltip with the strikethrough text
  • To create a hyperlink
  • To provide additional styling for deleted text

74. What is the purpose of the HTML `<sub>` tag with the `title` attribute?

  • To suggest a line break opportunity
  • To create a tooltip with the subscript text
  • To provide additional styling for subscript text
  • To indicate text that has been inserted

75. In HTML, what is the role of the `<sup>` tag's `title` attribute?

  • To indicate text that has been inserted
  • To create a tooltip with the superscript text
  • To create a hyperlink
  • To suggest a line break opportunity

76. What is the role of the HTML `<bdo>` tag with the `class` attribute?

  • To provide additional styling for bidirectional text
  • To create a tooltip with the bidirectional text
  • To suggest a line break opportunity within text
  • To indicate text that is no longer accurate

77. In HTML, what does the `<s>` tag's `class` attribute provide?

  • Additional styling for deleted text
  • A hyperlink to a source
  • A tooltip with the strikethrough text
  • A definition for the strikethrough text

78. What does the HTML `<sub>` tag's `class` attribute provide?

  • A tooltip with the subscript text
  • A hyperlink to a source
  • Additional styling for subscript text
  • A definition for the subscript

79. In HTML, what is the purpose of the `<sup>` tag with the `class` attribute?

  • To create a hyperlink
  • To suggest a line break opportunity
  • To define additional styling for superscript text
  • To indicate text that has been inserted

80. What is the role of the HTML `<cite>` tag with the `class` attribute?

  • To suggest a line break opportunity
  • To provide additional styling for citations
  • To create a hyperlink
  • To create a tooltip with the citation text

81. In HTML, what does the `<var>` tag's `class` attribute provide?

  • A definition for the variable
  • A tooltip with the variable text
  • Additional styling for variables
  • A hyperlink to a source

82. What is the purpose of the HTML `<u>` tag with the `class` attribute?

  • To provide additional styling for underlined text
  • To suggest a line break opportunity
  • To define a structural element
  • To create a hyperlink

83. What does the HTML `<bdi>` tag's `class` attribute provide?

  • A definition for bidirectional text
  • A tooltip with the bidirectional text
  • A hyperlink to a source
  • Additional styling for bidirectional text

84. In HTML, what is the role of the `<wbr>` tag with the `class` attribute?

  • To provide additional styling for suggested line breaks
  • To create a tooltip with the wbr text
  • To suggest a line break opportunity within text
  • To define a structural element

85. What is the role of the HTML `<mark>` tag with the `class` attribute?

  • To provide a tooltip with the marked text
  • To create a hyperlink
  • To define a structural element
  • To suggest a line break opportunity

86. What does the HTML `<s>` tag's `class` attribute provide?

  • A tooltip with the strikethrough text
  • A hyperlink to a source
  • Additional styling for deleted text
  • A definition for the strikethrough text

87. In HTML, what is the purpose of the `<sub>` tag with the `class` attribute?

  • To provide additional styling for subscript text
  • To create a tooltip with the subscript text
  • To suggest a line break opportunity
  • To indicate text that has been inserted

88. What is the role of the HTML `<sup>` tag with the `class` attribute?

  • To create a hyperlink
  • To define additional styling for superscript text
  • To suggest a line break opportunity
  • To indicate text that has been inserted

89. What is the purpose of the HTML `<cite>` tag with the `class` attribute?

  • To provide additional styling for citations
  • To suggest a line break opportunity
  • To create a hyperlink
  • To create a tooltip with the citation text

90. In HTML, what does the `<var>` tag's `class` attribute provide?

  • A definition for the variable
  • A hyperlink to a source
  • Additional styling for variables
  • A tooltip with the variable text

91. What is the role of the HTML `<u>` tag with the `class` attribute?

  • To provide additional styling for underlined text
  • To suggest a line break opportunity
  • To define a structural element
  • To create a hyperlink

92. What does the HTML `<bdi>` tag's `class` attribute provide?

  • A definition for bidirectional text
  • A tooltip with the bidirectional text
  • A hyperlink to a source
  • Additional styling for bidirectional text

93. In HTML, what is the purpose of the `<wbr>` tag with the `class` attribute?

  • To provide additional styling for suggested line breaks
  • To create a tooltip with the wbr text
  • To suggest a line break opportunity within text
  • To define a structural element

94. What is the role of the HTML `<mark>` tag with the `class` attribute?

  • To provide a tooltip with the marked text
  • To create a hyperlink
  • To define a structural element
  • To suggest a line break opportunity

95. What does the HTML `<s>` tag's `class` attribute provide?

  • A tooltip with the strikethrough text
  • A hyperlink to a source
  • Additional styling for deleted text
  • A definition for the strikethrough text

96. What is the purpose of the HTML `<bdo>` tag with the `title` attribute?

  • To create a tooltip with bidirectional text
  • To suggest a line break opportunity within text
  • To indicate text that is no longer accurate
  • To provide additional styling for bidirectional text

97. In HTML, what is the role of the `<small>` tag with the `class` attribute?

  • To define a block of code
  • To create a tooltip with the small text
  • To indicate text that is less important
  • To create a hyperlink

98. What is the role of the HTML `<bdi>` tag with the `title` attribute?

  • To indicate text that is no longer accurate
  • To suggest a line break opportunity within text
  • To create a tooltip with bidirectional text
  • To provide additional styling for bidirectional text

99. In HTML, what is the purpose of the `<small>` tag with the `title` attribute?

  • To define a block of code
  • To suggest a line break opportunity within text
  • To create a tooltip with the small text
  • To provide additional styling for text that is less important

100. What does the HTML `<bdo>` tag's `title` attribute provide?

  • Additional styling for bidirectional text
  • A tooltip with the bidirectional text
  • A hyperlink to a source
  • A definition for the bidirectional text

Share with : Share on Linkedin Share on Twitter Share on WhatsApp Share on Facebook