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 does id mean in html?
What is html renderaction?
What is append in jquery?
What are features of HTML5?
What is a marquee?
Is html table deprecated?
How many types of html tags are there?
What is h in html?
Is body a container tag?
Why to use xhtml.
Why is a url encoded in html?
What is html and its functions?
What is the anchor tag?
What is a tag for a website?
What is meta tags? Why it is used?