This FAQ is built and maintained by you, the Codecademy community – help yourself and other learners like you by contributing!
Not seeing your question? It may still have been asked before – try searching for it by clicking the spyglass icon () in the top-right of this page. Still can’t find it? Ask it below by hitting the reply button below this post ().
This exercize had a hint that said to not forget to add quotation marks around the URL in the src attribute of an img tag. When are quotes and double quotes needed in HTML in general?
I have a question. Please have a look at the above screen shot. Notice the error message, in red letters, on the bottom of the middle panel. It claims that I made a spelling error when it comes to typing the URL in the exercise. I have NOT made a spelling error when it comes to the URL. Now I can’t move to the next exercise.
Well formed code always has quote marks around all attribute values. Some attributes are boolean. They are an exception to this rule, only if written implicitly.
It’s more a question of convention than what the browser will allow. If we drill down to the core specs, quotes don’t matter in HTML 4. Attributes without quotes are just as valid. However, and that is a big, however, convention suggests that we never write unquoted attributes unless they are booleans.