Here are Top 50 multiple-choice questions (MCQs) focused on the Lists, links, and anchors 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 element is used to create a nested (sub) list within an ordered or unordered list?

  • `<nl>`
  • `<ol>`
  • `<ul>`
  • `<li>`

2. What does the HTML attribute `rel="nofollow"` indicate in a hyperlink (`<a>`) element?

  • It specifies that the link should not be followed by search engines.
  • It opens the link in a new tab or window.
  • It creates a download link for a file.
  • It indicates the type of content linked.
  • To specify the link's destination URL
  • To create a tooltip with additional information
  • To define a list item
  • To indicate a table

4. What is the correct HTML syntax for creating an unordered list with square bullets as list markers?

  • `<ul type="square">`
  • `<ul style="list-style-type. square;">`
  • `<ul type="A">`
  • `<ul style="list-style-type. lower-alpha;">`

5. Which HTML element is used to create an anchor (bookmark) within a page?

  • `<anchor>`
  • `<bookmark>`
  • `<a>`
  • `<link>`
  • To specify the link's destination URL
  • To create a tooltip with additional information
  • To make the link unclickable
  • To prompt the user to download a file

7. What is the role of the HTML `<ol>` element in creating an ordered list?

  • To define the list items
  • To specify the link's destination URL
  • To define the list style
  • To create a hyperlink
  • `<a>`
  • `<link>`
  • `<anchor>`
  • `<bookmark>`

9. What is the role of the HTML `<li>` element in a list?

  • To specify the link's destination URL
  • To create a tooltip with additional information
  • To define a list item
  • To indicate a table
  • It opens the link in a new tab or window.
  • It creates a download link for a file.
  • It opens the link in the same tab or window.
  • It makes the link unclickable.
  • `<bookmark>`
  • `<a>`
  • `<anchor>`
  • `<link>`
  • To define a list item
  • To specify the link's destination URL
  • To indicate the type of content linked
  • To create a tooltip with additional information
  • To specify the link's destination URL
  • To create a tooltip with additional information
  • To make the link unclickable
  • To prompt the user to download a file
  • `<a href="https.//www.example.com" target="_self">Visit Example</a>`
  • `<a href="https.//www.example.com" target="_blank">Visit Example</a>`
  • `<a href="https.//www.example.com">Visit Example</a>`
  • `<a href="https.//www.example.com" target="_parent">Visit Example</a>`

15. In an HTML unordered list (`<ul>`), which element is used to create a list item marker?

  • `<ul>`
  • `<li>`
  • `<ol>`
  • `<dl>`

16. What does the HTML `target="_parent"` attribute do when used in a hyperlink (`<a>`) element?

  • It opens the linked page in the same tab or window.
  • It creates a download link for a file.
  • It makes the link unclickable.
  • It opens the link in a new tab or window.

17. What is the purpose of the HTML `<menu>` element in creating navigation links?

  • To create a hyperlink
  • To define a list item
  • To indicate a table
  • To create navigation links

18. In HTML, what is the purpose of the `<ol>` element with the `reversed` attribute?

  • To create a reversed-ordered list
  • To define a list item
  • To specify the link's destination URL
  • To create a tooltip with additional information

19. Which HTML element is used to create a definition list term in a description list (`<dl>`)?

  • `<dl>`
  • `<li>`
  • `<dt>`
  • `<dd>`
  • It specifies the link's destination URL
  • It indicates the type of content linked
  • It defines the language of the linked resource
  • It creates a tooltip with additional information
  • `<nav>`
  • `<menu>`
  • `<li>`
  • `<a>`
  • It specifies the link's destination URL
  • It creates a tooltip with additional information
  • It prompts the user to download a file
  • It opens the link in a new tab or window

23. In an HTML ordered list (`<ol>`), what does the `start` attribute define?

  • The type of list markers used
  • The list's title
  • The starting number for list items
  • The list's alignment

24. What is the purpose of the HTML `<menu>` element with the `type` attribute set to "toolbar"?

  • To create a reversed-ordered list
  • To define a list item
  • To create a toolbar of navigation links
  • To indicate a table
  • `<ul>`
  • `<li>`
  • `<ol>`
  • `<dl>`

26. What is the role of the HTML `<li>` element in an ordered list (`<ol>`)?

  • To create a reversed-ordered list
  • To define a list item
  • To create a tooltip with additional information
  • To specify the link's destination URL
  • It specifies the link's destination URL
  • It indicates the type of content linked
  • It defines the language of the linked resource
  • It creates a tooltip with additional information

28. In an HTML unordered list (`<ul>`), what does the `type` attribute specify?

  • The type of list markers used
  • The list's title
  • The starting number for list items
  • The list's alignment

29. What is the purpose of the HTML `<ol>` element with the `compact` attribute?

  • To create a reversed-ordered list
  • To define a list item
  • To create a tooltip with additional information
  • To reduce the spacing between list items
  • To create a tooltip with additional information
  • To define a list item
  • To specify the link's destination URL
  • To indicate a table

31. What is the purpose of the HTML `<nav>` element in creating navigation links?

  • To create a reversed-ordered list
  • To define a list item
  • To create navigation links
  • To indicate a table

32. Which HTML element is used to create a list of options in a dropdown menu?

  • `<list>`
  • `<options>`
  • `<select>`
  • `<menu>`

33. What is the role of the HTML `<dl>` element in creating a description list?

  • To create a reversed-ordered list
  • To define a list item
  • To create a description list
  • To indicate a table
  • To create a tooltip with additional information
  • To define the type of media linked
  • To specify the link's destination URL
  • To indicate a table

35. What is the purpose of the HTML `<dl>` element with the `compact` attribute?

  • To create a reversed-ordered list
  • To define a list item
  • To create a tooltip with additional information
  • To reduce the spacing between list items in a description list

36. In an HTML ordered list (`<ol>`), what does the `reversed` attribute do when used with the value "true"?

  • It creates a reversed-ordered list
  • It specifies the link's destination URL
  • It defines the starting number for list items
  • It makes the list items uppercase
  • It specifies the link's destination URL
  • It indicates the type of content linked
  • It defines the type of media for which the link is intended
  • It creates a tooltip with additional information

38. Which HTML element is used to create a nested (sub) list within an unordered list (`<ul>`)?

  • `<nl>`
  • `<ol>`
  • `<ul>`
  • `<li>`

39. In an HTML ordered list (`<ol>`), what is the purpose of the `reversed` attribute when used with the value "false"?

  • It specifies the link's destination URL
  • It makes the list items uppercase
  • It creates a reversed-ordered list
  • It defines the starting number for list items

40. Which HTML element is used to create an ordered list?

  • `<ul>`
  • `<li>`
  • `<ol>`
  • `<dl>`

41. What is the purpose of the HTML `<ul>` element?

  • To define an unordered list
  • To create a hyperlink
  • To indicate a table
  • To define a list item

42. What is the correct HTML syntax for creating a hyperlink?

  • `<a src="https.//www.example.com">Visit Example</a>`
  • `<link href="https.//www.example.com">Visit Example</link>`
  • `<a href="https.//www.example.com">Visit Example</a>`
  • `<link src="https.//www.example.com">Visit Example</link>`

43. What does the HTML attribute `target="_blank"` do when used in a hyperlink (`<a>`) element?

  • It opens the linked page in a new tab or window.
  • It creates a download link for a file.
  • It opens the linked page in the same tab or window.
  • It makes the link unclickable.

44. Which HTML element is used to create a list item within an ordered or unordered list?

  • `<ol>`
  • `<li>`
  • `<ul>`
  • `<dl>`

46. Which HTML element is used to create a description list?

  • `<ul>`
  • `<li>`
  • `<ol>`
  • `<dl>`

47. What is the purpose of the HTML `<dt>` element in a description list (`<dl>`)?

  • To define the description term
  • To create a hyperlink
  • To define a list item
  • To indicate a table
  • To define a list item
  • To specify the link's destination URL
  • To indicate a table
  • To create a download link

49. What is the purpose of the HTML `<dd>` element in a description list (`<dl>`)?

  • To create a hyperlink
  • To define the description term
  • To specify the link's destination URL
  • To define the description for the term

50. What is the correct HTML syntax for creating an ordered list with Roman numerals (I, II, III) as list markers?

  • `<ol type="Roman">`
  • `<ol style="list-style-type. roman;">`
  • `<ol type="I">`
  • `<ol style="list-style-type. upper-roman;">`

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