51
Which attribute is used to specify the action of a form in HTML?
A.
B.
C.
D.
Answer & Solution
The action attribute in the <form> tag specifies where to send the form data when the form is submitted.
52
Which of the following is used to create a button in an HTML form?
A.
B.
C.
D.
Answer & Solution
Both <input type="button"> and <button> tags can be used to create a button in HTML.
53
Which HTML tag is used to define the bottom part of a webpage?
A.
B.
C.
D.
Answer & Solution
The <footer> tag is used to define the footer section of a webpage, typically containing contact info, copyright, and links.
54
Which of the following attributes is used to define the width of an image in HTML?
A.
B.
C.
D.
Answer & Solution
The width attribute is used to define the width of an image in HTML.
55
Which of the following is the correct way to add a comment in HTML?
A.
B.
C.
D.
Answer & Solution
HTML comments are enclosed in <!-- and -->.
56
Which of the following tags is used to define a table header in HTML?
A.
B.
C.
D.
Answer & Solution
The <th> tag is used to define a table header. It typically renders the content in bold and centered.
57
Which tag is used to define a division or section in an HTML document?
A.
B.
C.
D.
Answer & Solution
The <div> tag is used to define a division or section in an HTML document, often for styling or grouping content.
58
What does the <a> tag define in HTML?
A.
B.
C.
D.
Answer & Solution
The <a> tag is used to define hyperlinks, linking to other pages or resources.
59
Which of the following is the correct syntax to link an external CSS file to an HTML document?
A.
B.
C.
D.
Answer & Solution
The <link> tag is used to link external resources like CSS files, where rel="stylesheet" specifies the relationship and href="style.css" points to the CSS file.
60
Which of the following HTML elements is used to display a picture?
A.
B.
C.
D.
Answer & Solution
The <img> tag is used to embed images in an HTML document.
