HTML Element MCQ
Html MCQ(1) An HTML element that has only opening tag, but not the closing tag is called ______.
A) Pair Tags
B) Simple Tag
C) Basic Tag
D) Empty Tag
Explanation
Empty tag term is used for such type of elements that has only one markup tag. Mean only having starting tag.
(2) Which HTML tag is used to create menu items in webpage?
A) Menu
B) Top
C) Nav
D) Navigation
Explanation
Nav is semantic tag in HTML5. This is used for the creation of top navigation/menu.
(3) Which of the following is not a semantic tag?
A) Nav
B) Div
C) Aside
D) Ins
Explanation
Div tag is used for page division. This tag does not provide any semantic/meaning to the web browsers. This is non-semantic tag.
(4) Whic of the following is example of empty tag?
A) <br/>
B) <img/>
C) <hr/>
D) All of these
Explanation
All of these are empty tags including meta tag.
(5) Which of the following tag is used to define the type of document?
A) Doctype
B) TypeDoc
C) DocFormat
D) HTMLDoc
Explanation
<!DOCTYPE> is the top most HTML tag, that is used to specify type of web document.
(6) Which HTML tag is used to display highlighted text?
A) Paragraph
B) Strong
C) Em
D) Mark
Explanation
Mark is semantic tag that display highlighted text in web page.
(7) Which tag represent text in italic text decoration?
A) Strong
B) P
C) em
D) Mark
Explanation
Emphasis tag that is represented using <em></em> display text in italic text format.
(8) Which of the following HTML tag has six levels of hierarchy?
A) Paragraph tag
B) Span Tag
C) Heading Tag
D) Div Tag
Explanation
Heading tag has six levels of text representation. These levels are represented using h1 to h6 tags.
(9) Which of the following HTML element represent using pair of tags?
A) h1
B) p
C) span
D) All of there
Explanation
The above mentioned are all HTML elements that use pair of tags for holding data/values.
(10) Which of the following composed HTML document?
A) HTML Elements
B) HTML Attributes
C) HTML Classes
D) HTML Ids
Explanation
HTML elements which are created using predefined tags are the fundamental part of HTML document.