Complete Solutions
Which tag is used to create a button in an HTML form?
A) `<btn>`
B) `<button>`
C) `<input type="button">`
✔✔B) `<button>`
What is the purpose of the `placeholder` attribute in an `<input>` field?
A) To show a default value
B) To display a hint to the user about what to enter
C) To set the maximum length of input
✔✔B) To display a hint to the user about what to enter
In HTML, which element is used to define a section that is related to the content surrounding it?
A) `<div>`
B) `<span>`
C) `<aside>`
1
, ✔✔C) `<aside>`
What does the `target` attribute in a hyperlink specify?
A) The source of the link
B) How the linked document will be opened
C) The text to display
✔✔B) How the linked document will be opened
What tag is used to create a horizontal line in an HTML document?
A) `<line>`
B) `<hr>`
C) `<separator>`
✔✔B) `<hr>`
Which attribute can be added to the `<img>` tag to improve accessibility?
A) `title`
B) `alt`
C) `desc`
2