HTML MCQ
HTML MCQ
HTML MCQ
c) <p>
d) <a>
10.Which HTML element is used to define the main content of a web page?
a) <header>
b) <main>
c) <nav>
d) <footer>
19.What is the default rendering of a heading element (<h1> to <h6>) in most web
browsers?
a) Bold text
b) Italics text
c) Underlined text
d) Uppercase text
MCQS OF HTML
23.Which attribute is used to specify the source (URL or file path) of an image in
an <img> element?
a) source
b) img-src
c) url
d) src
d) An HTML attribute.
36.In HTML, what do you call the combination of an opening tag and a closing
tag?
a) Tag pair
b) Element
c) Attribute
d) Container
38.Which attribute in the <a> tag is used to define the destination URL when
creating a hyperlink?
a) target
b) href
c) link
MCQS OF HTML
d) src
40.How do you create a link that opens in a new browser window or tab?
a) Use the <target> attribute.
b) Use the new keyword in the <a> tag.
c) Set the target attribute to _blank.
d) Add the newtab class to the link.
44.To create a table cell, you use the <td> element. What does <td> stand for?
a) Table Data
b) Text Division
c) Table Definition
d) Table Description
45.What HTML attribute is used to merge two or more table cells horizontally?
MCQS OF HTML
a) rowspan
b) colspan
c) merge
d) span
50.Which HTML element is used for a definition list, typically used for glossaries
or terms with associated descriptions?
a) <ol>
b) <ul>
c) <dl>
d) <dt>
a) <form>
b) <input>
c) <button>
d) <label>
52.Which HTML input type is used for a single-line text input field?
a) text
b) password
c) email
d) radio
55.Which HTML input type allows users to choose multiple options from a list?
a) checkbox
b) select
c) radio
d) password
c) It represents a sidebar.
d) It defines a footer.
63.Which attribute specifies the source URL of the content to be displayed within
an iframe?
a) src
b) link
c) href
MCQS OF HTML
d) url
68.Which HTML attribute is used to specify alternative text for video content,
especially useful for accessibility?
a) alt
b) description
c) caption
d) poster
73.In HTML, you can embed SVG elements directly into an HTML page.
a) True
b) False
74.Which HTML attribute specifies an alternate text for an image, if the image
cannot be displayed?
a) Longdesc
b) Title
c) Alt
d) Src