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 frameset in html?
What is the difference between innertext and textcontent?
Explain web sql?
What are empty html elements?
Explain basic structure of html5?
Explain cell padding and cell spacing.
Is there any need to change the web browsers to support html5?
How do I use forms?
What is the meaning of dynamic web page?
Which type of video formats are supported by html5?
What is a web worker in html5?
Please give a regular expression (preferably perl/preg style), which can be used to identify the url from within a html link tag?
How do you identify rows and columns?
What is the use of the required attribute in html5?
What is xhtml? Why xhtml?