This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Sun, Earth, and Code Forum

View Course » View Exercise

21 points
53232111548c35a4dd008857_71100120
Submitted by
Pumpy
almost 4 years ago

Do single/double quotation marks matter?

Hello,

I noticed that in lesson 2.1, in the instructions (step 2) it says:

Surround the Earth image with its
orbit by adding a tag.

Then later in the sample code it says to match index.html with:

The instructions have "double" quotation marks, whereas the second part asks you to match up with code that uses single quotation marks. Does it matter?


0 votes

permalink

It matters I think. I tried changing the single to double and triggers their object's position.
What I did is, I changed the double quotation marks to single on the Earth's image and the URL itself.
It looks like this:
<div id='earth-orbit'>
<img id='earth' src='http://goo.gl/o3YWu9'>
</div>

I'm not sure if it's just the position that changes whenever the apostrophe turns into double or single. Maybe someone could tell us more about this. :)

255 points
5382f6967c82ca1c7f007344_632417914
Submitted by
Louis Jannero
over 3 years ago