Which of the following statement about HTML attributes is false?
2018
Which of the following statement about HTML attributes is false?
- A.
HTML element can have attributes
- B.
Attributes provide additional information about an element
- C.
Attributes are always specified in the end tag
- D.
Attributes usually come in name/value pairs like: name = "value"
Attempted by 185 students.
Show answer & explanation
Correct answer: C
HTML attributes provide additional information about elements and are always placed within the opening tag, not the end tag. Option 3 is incorrect because it claims attributes appear in the closing tag, making it the false statement.