
HTML MCQ 02
12. How do we write comments in HTML?
a) </…….>
b) < !……>
c) < /……/>
d) < …….!>
Answer: b
13. Which of the following elements in HTML5 defines video or movie content?
a) <video>
b) <movie>
c) <audio>
d) <media>
Answer: a
14. Which of the following is not the element associated with the HTML table layout?
a) alignment
b) color
c) size
d) spanning
Answer: b
15. Which element is used for or styling HTML5 layout?
a) CSS
b) jQuery
c) JavaScript
d) PHP
Answer: a
16. Which HTML tag is used for making character appearance bold?
|
a) <u>content</u>
b) <b>content</b>
c) <br>content</br>
d) <i>content</i>
Answer: b
17. Which HTML tag is used to insert an image?
a) <img url=”htmllogo.jpg” />
b) <img alt=”htmllogo.jpg” />
c) <img src=”htmllogo.jpg” />
d) <img link=”htmllogo.jpg” />
Answer: c
18. HTML is a subset of ___________
a) SGMT
b) SGML
c) SGME
d) XHTML
Answer: b
19. Which character is used to represent when a tag is closed in HTML?
a) #
b) !
c) /
d) \
Answer: c
20. Among the following, which is the HTML paragraph tag?
a) <p>
b) <pre>
c) <hr>
d) <a>
Answer: a
21. In HTML, which attribute is used to create a link that opens in a new window tab?
a) src=”_blank”
b) alt=”_blank”
c) target=”_self”
d) target=”_blank”
Answer: d
22. Which HTML element is used for short quote?
a) <em>
b) <abbr>
c) <q>
d) <blockquote>
Answer: c