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 |
Why do we use href?
What is a style in html?
What is a benefit of using the label element?
What are some html5 new tags?
How do I find the url for my email?
What are container tags?
What is full form of html and who is created this?
What are the rules established for html5?
What is <figure> in HTML5?
How do I make a table?
What is html5 geolocation? How to use it?
Is html client side or server side?