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 |
How many types of list tag are using in html?
Describe html?
What is special in html5?
What is html applet?
Why is frameset not supported html5?
In html5, onblur and onfocus are?
What is xhtml used for?
What is html5 and its uses?
What is the advantage of using frames?
What are the reasons for validating a HTML?
What are the advantages of SVG over other image format like JPEG or GIF?
What does cellpadding mean in html?