HTML Questions and Answers
HTML Questions and Answers
5. In HTML, which attribute is used to specify that an input field must be filled out?
a) required
b) placeholder
c) validate
d) formvalidate
Ans. a
10. Which HTML element is used to specify a header for a document or section?
a) <section>
b) <top>
c) <header>
d) <head>
Ans. c
12. Inline elements are normally displayed without starting a new line.
a) True
b) False
Ans. a
16. What is the correct HTML for making a text input field?
a) <input type= “textfield”>
b) <textfield>
c) <textinput type = “text”>
d) <input type= “text”>
Ans. d
25. Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?
a) longdesc
b) src
c) title
d) alt
Ans. d
27. Which HTML element is used to specify a footer for a document or section?
a) <bottom>
b) <footer>
c) <section>
d) None of these
Ans. b
28. In HTML, You can embed SVG elements directly into an HTML page.
a) True
b) False
c) No idea
d) None of these
Ans. a
29. What is the correct HTML element for playing video files?
a) <video>
b) <media>
c) <movie>
d) None of these
Ans. a
30. What is the correct HTML element for playing audio files?
a) <mp3> b) <sound> c) <audio> d) None of these
Ans. C
These Questions Prepared by: SONU (HEETSON)
1. What does HTML Stand for?
a) Hyperlinks and Text markup language b) Home tool markup language
c) Hyper Text Markup Language d) None of these
HEETSON