MCQs > IT & Programming > HTML MCQs > Basic HTML MCQs

Basic HTML MCQ

1. To apply an internet explorer filter in compliance with correct css syntax, add the style ____.

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

2. ____ buttons can be placed into a group so that selecting one deselects all of the others.

Answer

Correct Answer: Radio

Note: This Question is unanswered, help us to find answer for this one

3. ____ are used to check for the presence or absence of something.

Answer

Correct Answer: Check boxes

Note: This Question is unanswered, help us to find answer for this one

4. A resume that is converted from a graphic image into text and searched for keywords is a ______.

Answer

Correct Answer: Print resume

Note: This Question is unanswered, help us to find answer for this one

5. Using one browser window for all open pages is called ____.

Answer

Correct Answer: Tabbed browsing

Note: This Question is unanswered, help us to find answer for this one

6. Each type of media player has various tag ____ that can be used.

Answer

Correct Answer: Parameters

Note: This Question is unanswered, help us to find answer for this one

7. To link to a document, you must specify its ____.

Answer

Correct Answer: Path

Note: This Question is unanswered, help us to find answer for this one

8. To create a button that will clear the form fields, you use a type of ____.

Answer

Correct Answer: Reset

Note: This Question is unanswered, help us to find answer for this one

9. The last item in an html document must be the ____ tag.

Answer

Correct Answer:

Note: This Question is unanswered, help us to find answer for this one

10. The first section of an html document is called the ____ section.

Answer

Correct Answer: Head

Note: This Question is unanswered, help us to find answer for this one

11. The ____ tag defines a container for an external application or interactive content.

Answer

Correct Answer:

Note: This Question is unanswered, help us to find answer for this one

12. the ____ format is a format specifically created for web page images.

Answer

Correct Answer: GIF

Note: This Question is unanswered, help us to find answer for this one

13. Html allows you to organize selection lists into distinct groups called ____ groups.

Answer

Correct Answer: Selection

Note: This Question is unanswered, help us to find answer for this one

14. In a browser, __________ link to pages that you use frequently.

Answer

Correct Answer: Both A and B (bookmarks and favorites)

Note: This Question is unanswered, help us to find answer for this one

15. If an element is configured with ___________ the other content on the page will appear to its left.

Answer

Correct Answer: Float: right;

Note: This Question is unanswered, help us to find answer for this one

16. Each control element in which the user can enter information is called a(n) ____.

Answer

Correct Answer: Field

Note: This Question is unanswered, help us to find answer for this one

17. When text identifies a link, it often appears as ____ text.

Answer

Correct Answer: Underlined

Note: This Question is unanswered, help us to find answer for this one

18. Web pages are connected by __________ links.

Answer

Correct Answer: Hypertext

Note: This Question is unanswered, help us to find answer for this one

19. With a(n) _____ style, one adds a style to the start tag for an element.

Answer

Correct Answer: Inline

Note: This Question is unanswered, help us to find answer for this one

20. When a webpage is displayed in a browser, the browser tab displays the _____.

Answer

Correct Answer: Document Title

Note: This Question is unanswered, help us to find answer for this one

21. Webpages use a file format called ____.

Answer

Correct Answer: HTML

Note: This Question is unanswered, help us to find answer for this one

22. With a(n) ____, you can enter a value either by typing the value or by selecting it from a list.

Answer

Correct Answer: Combo box

Note: This Question is unanswered, help us to find answer for this one

23. Word typically provides ____ types of main documents.

Answer

Correct Answer: Five

Note: This Question is unanswered, help us to find answer for this one

24. Use the ______ attribute to configure the width of a table border.

Answer

Correct Answer: Border

Note: This Question is unanswered, help us to find answer for this one

25. Unlike _______, xhtml can be extended by anyone who uses it.

Answer

Correct Answer: HTML

Note: This Question is unanswered, help us to find answer for this one

26. The ____ of a table helps to define what formatting is appropriate.

Answer

Correct Answer: Purpose

Note: This Question is unanswered, help us to find answer for this one

27. The ____ dtd supports many of the presentational features of html.

Answer

Correct Answer: Transitional

Note: This Question is unanswered, help us to find answer for this one

28. Html 4 supports ____ different input types.

Answer

Correct Answer: 10

Note: This Question is unanswered, help us to find answer for this one

29. As with absolute pathnames, folder names are separated by ____ in relative pathnames.

Answer

Correct Answer: Slashes

Note: This Question is unanswered, help us to find answer for this one

30. A ____ attribute can have only one value.

Answer

Correct Answer: Single-valued

Note: This Question is unanswered, help us to find answer for this one

31. Filter functions can be combined in a _____ to create new effects.

Answer

Correct Answer: ​space-separated list

Note: This Question is unanswered, help us to find answer for this one

32. You can specify an access key for an input element by using the ____ attribute.

Answer

Correct Answer: Accesskey

Note: This Question is unanswered, help us to find answer for this one

33. Text ____ are used for extended entries that can include several lines of text.

Answer

Correct Answer: Areas

Note: This Question is unanswered, help us to find answer for this one

34. Which example is a standard way in HTML5 for adding author metadata to a page?

Answer

Correct Answer:

Note: This Question is unanswered, help us to find answer for this one

35. How would you mark up a piece of ASCII art (an emoticon) in an accessible way?

Answer

Correct Answer:

¯\_(ツ)_/¯

Note: This Question is unanswered, help us to find answer for this one

36. Which choice is the most semantically correct markup for specifying the first definition of a term?

Answer

Correct Answer:

The focal length of a lens gives the distance from the lens to the image sensor.


Note: This Question is unanswered, help us to find answer for this one

37.

What is wrong with this code? <img src="https://source.unsplash.com/random">

Answer

Correct Answer:

The <img> element is missing an alt attribute.


Note: This Question is unanswered, help us to find answer for this one

38.

What is the purpose of <caption>?

Answer

Correct Answer:

<caption> provides captions to <table>.


Note: This Question is unanswered, help us to find answer for this one

39. Which choice will produce the spanish word canción?

Answer

Correct Answer:

canción


Note: This Question is unanswered, help us to find answer for this one

40. Which is the most semantically correct markup for a side comment in small print?

Answer

Correct Answer:

Get 10% discount not valid in France


Note: This Question is unanswered, help us to find answer for this one

41. What is the default method for form submission?

Answer

Correct Answer: GET

Note: This Question is unanswered, help us to find answer for this one

42. Which is the best markup to produce this text? xw

Answer

Correct Answer:

x\w


Note: This Question is unanswered, help us to find answer for this one

43.

In this code, what is target? <a target="_blank">...</a>

Answer

Correct Answer: An attribute

Note: This Question is unanswered, help us to find answer for this one

44.

What is the difference between the <svg> and <canvas>?

Answer

Correct Answer:

<svg> produces vector graphics, while <canvas> produces raster graphics.


Note: This Question is unanswered, help us to find answer for this one

45. In this code, what is target?

Answer

Correct Answer: An attribute

Note: This Question is unanswered, help us to find answer for this one

46. For the HTML code below, when will "Sample Text" display to the browser?

Answer

Correct Answer: When JavaScript is not supported by the browser or if JavaScript is disabled in the browser

Note: This Question is unanswered, help us to find answer for this one

47. What is the correct way to describe an empty element, such as a line break tag?

Answer

Correct Answer: It has no child content and no closing tag.

Note: This Question is unanswered, help us to find answer for this one

48. What is the primary purpose of HTML?

Answer

Correct Answer: HTML structures the webpage, identifying its elements such as paragraphs, headings, and lists.

Note: This Question is unanswered, help us to find answer for this one

49. What is the most semantic way to mark up this sentence so that "happy talk must die" is rendered as an inline quote? As Steve Krug once said, happy talk must die.

Answer

Correct Answer:

As Steve Krug once said, happy talk must die.


Note: This Question is unanswered, help us to find answer for this one

50. Which snippet of HTML, when clicked, makes a phone call on a mobile device?

Answer

Correct Answer: Call me

Note: This Question is unanswered, help us to find answer for this one

51. When should you use the
element?

Answer

Correct Answer: When the content stands alone as a unit, is suitable for syndication, or is reusable

Note: This Question is unanswered, help us to find answer for this one

52. In this code, what is the purpose of defer?

Answer

Correct Answer: It runs the script after HTML parsing is complete.

Note: This Question is unanswered, help us to find answer for this one

53. What is the difference between the and
tags?

Answer

Correct Answer: All of these answers

Note: This Question is unanswered, help us to find answer for this one

54. What does this code do on a page you are visiting for the first time?

Answer

Correct Answer: It does nothing. Modern browsers require some form of interaction before they let a page autoplat with audio.

Note: This Question is unanswered, help us to find answer for this one

55. What is the purpose of async in this code?

Answer

Correct Answer: It runs the script when the script is ready.

Note: This Question is unanswered, help us to find answer for this one

56. What is the correct way to describe an empty element?

Answer

Correct Answer: It has no child content and no closing tag.

Note: This Question is unanswered, help us to find answer for this one

57.

How will a video look displayed on a fully loaded webpage if the <video> tag is used and the autoplay attribute is not set?

Answer

Correct Answer: It will display the first frame of the video, unless the poster attribute is set.

Note: This Question is unanswered, help us to find answer for this one

58.

What is the semantic meaning of the <hr> tag?

Answer

Correct Answer: It designates a topic shift within a section at the paragraph level.

Note: This Question is unanswered, help us to find answer for this one

59.

What is the best semantic to use Quotes in HTML? Steve Kruz Said: "He will Win"

Answer

Correct Answer:

<q>


Note: This Question is unanswered, help us to find answer for this one

60. Which statement is false?

Answer

Correct Answer: Block elements can be nested inside inline elements.

Note: This Question is unanswered, help us to find answer for this one

61. What is the correct way to code a comment in HTML?

Answer

Correct Answer:

Note: This Question is unanswered, help us to find answer for this one

62. What does the tag do?

Answer

Correct Answer: It presents an opportunity for a break in a very long word, if needed for proper page display.

Note: This Question is unanswered, help us to find answer for this one

63. You want to have single spacing in between some lines, like in a poem or an address. Which approach should you use?

Answer

Correct Answer: Separate lines with a

, then use CSS to make single spacing.

Note: This Question is unanswered, help us to find answer for this one

64. What is the correct way to include a stylesheet named style.css in the of your document?

Answer

Correct Answer:

Note: This Question is unanswered, help us to find answer for this one

65. Review the code below. What is the absolute URL for a page called page.html?

Answer

Correct Answer: Http://www.linkedin.com/dir/page.html

Note: This Question is unanswered, help us to find answer for this one

66. Which image formats can be displayed by all web browsers?

Answer

Correct Answer: PNG, GIF, JPG

Note: This Question is unanswered, help us to find answer for this one

67. In the code below, what is the purpose of the lang attribute?