Bruno Ribeiro | Resources | All quotes in the code need to be straight quotes

All quotes in the code need to be straight quotes

All quotes in the code (not in the content) need to be straight quotes ("" not “”).

It won’t work otherwise.

A common mistake is taking notes in Google Docs, Microsoft Word, or Apple Pages and then copying snippets of text from them into the code. There’s nothing wrong with using these tools to take notes, but they’re not suitable for code. For example, they (rightfully so) tend convert to convert straight quotes into the curly (or smart) quotes. And smart quotes break the code.

Inside tags, you need straight quotes around the attributes’ values.

Example

<p class="proftitle">Associate professor</p>

and not

<p class=“proftitle”>Associate professor</p>

For the content, however, you want to use the typographical quotes and apostrophes.