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 |
What are dom levels?
Please give a regular expression (preferably perl/preg style), which can be used to identify the url from within a html link tag?
How do I make a link or form in one frame update another frame?
Why we need html language?
What is local storage?
What is meta charset utf8?
Can attribute values be set to anything or are there specific values that they accept?
What is dhtml and its advantages?
Why to use figure tag in html5?
How do you get a picture in html?
How to handle events with dhtml?
Why is html important?