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
What are the different ways to use different colors for different links or same link?
In html5, onblur and onfocus are?
What is text tag in html?
Why is innerhtml used?
What Difference between FontSize and Font Size in DHTML?
What is transitional xhtml?
What is the use of output tag in html5?
What are the new features provided in HTML5?
Explain what is the use of localstorage in html5?
What is the correct definition of an html element?
What is the difference between a tag and an element in html?
What is a label element?
What is meta information in html?
How do you make comments without text being picked up by the browser?
What is a web worker in html5? Explain