Should I put quotes around attribute values or not?
Answer Posted / guest
It depends. It is never wrong to use them, but you don't
have to if the attribute value consists only of letters,
digits, periods and/or hyphens. This is explained in the
HTML 2.0 specs.
Oh, and keep in mind that if you use double quotes, you
should escape any quotes inside the value with """ so you
don't accidentally terminate the value prematurely.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how to prevent the display of getting framed in html?
What is textcontent?
How to set the focus to the element in html?
What is the anchor tag?
Can you list the new input type attributes in html5?
Difference between :first-child and :nth-of-child
What is the head tag used for?
Is html front end?
How to align