← Back to Subject
Web Designing • MCQ • HTML Forms and Multimedia Integration
HTML Forms and Multimedia Integration
Q1. Which tag is used to create a form in HTML?
A)
B)
C)
D)
Answer: B
Explanation:
The
tag is used to create a form for collecting user input.
Q2. Which attribute specifies where form data is sent?
A) method
B) action
C) target
D) name
Answer: B
Explanation:
The action attribute defines the URL where the form data will be submitted.
Q3. Which attribute defines how form data is sent?
A) submit
B) type
C) method
D) value
Answer: C
Explanation:
The method attribute specifies whether data is sent using GET or POST.
Q4. Which method is commonly used for secure form submission?
A) GET
B) POST
C) LINK
D) SEND
Answer: B
Explanation:
POST is more secure because data is not shown in the URL.
Q5. Which input type is used for password fields?
A) text
B) pass
C) password
D) secure
Answer: C
Explanation:
type="password" hides the entered characters for security.
Q6. Which input type creates a button to submit form data?
A) button
B) submit
C) send
D) click
Answer: B
Explanation:
type="submit" sends the form data to the server.
Q7. Which input type is used to reset form values?
A) clear
B) delete
C) reset
D) remove
Answer: C
Explanation:
type="reset" clears all entered values and restores default values.
Q8. Which tag is used to create a text area?
A)
B)
C)
D)
Answer: B
Explanation:
is used for multi-line text input.
Q9. Which tag is used to create a dropdown list?
A)
B)
C)
D)
Answer: C
Explanation:
creates a dropdown menu.
Q10. Which tag is used inside
?
A)
B)
C)
D)
Answer: C
Explanation:
defines individual items inside a dropdown list.
Q11. Radio buttons are used for:
A) Multiple selections
B) Single selection
C) Text input
D) Image upload
Answer: B
Explanation:
Radio buttons allow users to select only one option from a group.
Q12. Checkboxes are used for:
A) Single selection
B) Multiple selections
C) Password entry
D) Audio input
Answer: B
Explanation:
Checkboxes allow users to select multiple options.
Q13. Which input type is used for email validation?
A) text
B) mail
C) email
D) validate
Answer: C
Explanation:
type="email" helps validate proper email format automatically.
Q14. Which attribute makes a field compulsory?
A) mandatory
B) required
C) must
D) force
Answer: B
Explanation:
The required attribute makes form input mandatory.
Q15. Which attribute provides placeholder text?
A) hint
B) default
C) placeholder
D) note
Answer: C
Explanation:
The placeholder attribute shows temporary help text inside the input box.
Q16. HTML canvas is used for:
A) Forms only
B) Drawing graphics using JavaScript
C) Creating tables
D) Adding CSS
Answer: B
Explanation:
The
element is used to draw graphics using JavaScript.
Q17. Which tag is used to embed audio?
A)
B)
C)
D)
Answer: C
Explanation:
is used to embed sound files in a webpage.
Q18. Which tag is used to embed video?
A)
B)
C)
D)
Answer: B
Explanation:
is used to display video files on a webpage.
Q19. Which attribute adds controls like play/pause?
A) autoplay
B) controls
C) loop
D) start
Answer: B
Explanation:
The controls attribute shows buttons like play, pause, and volume.
Q20. Which attribute starts media automatically?
A) controls
B) autoplay
C) loop
D) hidden
Answer: B
Explanation:
autoplay starts audio or video automatically when the page loads.
Q21. Which attribute repeats media continuously?
A) autoplay
B) repeat
C) loop
D) restart
Answer: C
Explanation:
loop makes media play again and again automatically.
Q22. HTML5 introduced:
A)
and
B)
only
C)
only
D)
only
Answer: A
Explanation:
HTML5 introduced multimedia tags like
and
.
Q23. XHTML stands for:
A) Extra Hyper Text Markup Language
B) Extensible Hyper Text Markup Language
C) Extended Hyper Text Main Language
D) External Hyper Tool Markup Language
Answer: B
Explanation:
XHTML is a stricter and cleaner version of HTML based on XML rules.
Q24. XHTML is more strict than:
A) CSS
B) JavaScript
C) HTML
D) XML
Answer: C
Explanation:
XHTML follows stricter syntax rules compared to normal HTML.
Q25. In XHTML, tags must be:
A) Optional
B) Closed properly
C) Hidden
D) Uppercase only
Answer: B
Explanation:
All tags in XHTML must be properly closed.
Q26. Which is correct in XHTML?
A)
B)
C)
D)
Answer: B
Explanation:
In XHTML, empty elements must be self-closed like
.
Q27. Which input type is used to upload files?
A) upload
B) attach
C) file
D) image
Answer: C
Explanation:
type="file" allows users to upload files through forms.
Q28. Which input type is used for date selection?
A) calendar
B) date
C) day
D) time
Answer: B
Explanation:
type="date" creates a date picker input.
Q29. Label tag is used for:
A) Styling
B) Giving title to form field
C) Adding audio
D) Creating tables
Answer: B
Explanation:
provides text description for form input fields.
Q30. Which element is used to group related form controls?
A)
B)
C)
D)
Answer: B
Explanation:
groups related form elements together.
Google AdSense Ad Placement Here 📢
Related Questions 🔥
Most Important 30 Objective Question - Advanced JavaScript
Most Important 30 Objective Question - JavaScript Basics
Introduction to CSS (Styling and Layouts)
Most Important 30 Objective Question - Introduction to HTML
Most Important 30 Objective Question - Fundamentals of Internet and Web Technologies