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 is image map?
How do I put text on the next line in html?
Why do we need br?
What is meta tag in html?
What is html template engine?
Where can I practice coding?
What does dtd mean?
How do you create text on a webpage that will allow you to send an email when clicked?
What is the difference between html5 application cache and regulate html browser cache?
What is the use of
How do I specify a specific combination of frames instead of the default document?
What are some common lists that are used when designing a page?
What is the difference between div id and class?
What is html compiler?
How to insert a copyright symbol on a browser page?