What’s the rule of thumb when deciding whether to use a single Apostrophe’ or a Quote"? And is there a difference?
While both will work when quoting HTML attributes, the usual convention is to use double quotes, and single quotes inside them if needed.
For example:
<img alt="The good ship 'Lollipop' in dry dock">
Using single quotes will cause problems if your text includes an apostrophe, because that will be seen as the closing quote.
e.g.
<a href='http://whatever.com' title='Visit Mabel's website'>
Like in this case?
<div style="width:650px;display:block;" onclick="thevid=document.getElementById('thevideo');
thevid.style.display='block'; this.style.display='none';
document.getElementById('iframe').src =
document.getElementById('iframe').src.replace('autoplay=0','autoplay=1');">
Yes.
(BTW, please stop adding HTML and CSS tags to your topics in this category; they’re not needed. The tags are to add additional information; if you’re posting in this category, it’s already understood that your topic is about HTML and/or CSS.)
ok… so I can leave it blank then? I didn’t know that. Some forums force you to put tags. That’s why I’ve always been adding them, didn’t know I didn’t need to on here. Thank you for telling me.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.