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
Why are not my frames the exact size I specified?
What is session storage and how can you create one?
What language is html?
How do you spell lable or label?
What is the difference between linking to an image, a website, and an email address?
How do you change the number type in the middle of a list?
How we can create dropdown list control in html?
What is a footer code?
Explain about canvas.
Why we use xhtml instead of html?
What is a hyperlink? Does it only apply to text?
What are the benefits of html?
What is p in html?
What is html and how is it used?
What is the lifetime of local storage?