Are quotation marks necessary when coding an attribute?
Example:
div id=“banana”
Are the quotations around the word banana necessary?
Are quotation marks necessary when coding an attribute?
Example:
div id=“banana”
Are the quotations around the word banana necessary?
No, in html5 they are no longer mandatory, but i would still use them, as explained here:
https://stackoverflow.com/questions/6495310/do-you-quote-html5-attributes
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.