Should I put quotes around attribute values or not?
Answer / 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 |
Is it ol or ol?
What is web storage in html?
What is an opening tag?
Does Microsoft Internet Explorer accept the media type application/xhtml+xml?
what are different types of heading are supported by html?
How can I use tables to structure forms?
How we can make an image draggable?
What is div id?
What are the new image elements in HTML5?
What is the svg element?
What is outerhtml?
Where do I put meta viewport tag?