HTML Objective Questions with Answers
The following are very standard and most frequently asked objective ( MCQ ) questions which are used to asked generally in the various competitions . Any one can learn easily these html objectives.
1. What is the correct HTML tag for the largest heading?
A. <h1>
B. <head>
C. <h2>
D. <header>
Answer: A. <h1>
2. How do you add a background color to an HTML element?
A. Using the "bgcolor" attribute
B. Using the "background" CSS property
C. Using the "style" attribute with the "background-color" property
D. Using the "color" attribute
Answer: C. Using the "style" attribute with the "background-color" property
3. What is the correct HTML tag for creating a hyperlink?
A. <link>
B. <a>
C. <href>
D. <anchor>
Answer: B. <a>
4. Which HTML attribute is used to specify the target of a hyperlink?
A. target
B. href
C. name
D. link
Answer: A. target
5. What is the correct HTML tag for creating an unordered list?
A. <ul>
B. <ol>
C. <list>
D. <li>
Answer: A. <ul>
6. Which HTML input tag is used to create a text field for user input?
A. <input type="button">
B. <input type="submit">
C. <input type="text">
D. <input type="checkbox">
Answer: C) <input type="text">
7. What is the purpose of the <input type="password"> tag?
A. To create a dropdown list
B. To create a checkbox
C. To create a text field where the input is masked as asterisks
D. To create a button
Answer: C) To create a text field where the input is masked as asterisks
8. Which HTML input tag is used to create a checkbox that can be selected or deselected?
A. <input type="checkbox">
B. <input type="radio">
C. <input type="submit">
D. <input type="text">
Answer: A) <input type="checkbox">
9. Which HTML input tag is used to create a radio button that can be selected or deselected, but only one radio button in a group can be selected at a time?
* A) <input type="checkbox">
* B) <input type="radio">
* C) <input type="submit">
* D) <input type="text">
Answer: B) <input type="radio">
10. Which HTML input tag is used to create a button that, when clicked, submits the form data to the server?
A. <input type="button">
B. <input type="submit">
C. <input type="reset">
D. <input type="text">
Answer: B) <input type="submit">
Comments
Post a Comment