There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply () below.
If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.
Join the Discussion. Help a fellow learner on their journey.
Ask or answer a question about this exercise by clicking reply () below!
You can also find further discussion and get answers to your questions over in #get-help.
Agree with a comment or answer? Like () to up-vote the contribution!
Double quote or single quote which one is best practice? I saw that top websites used the double quote for linking their stylesheet in the <link> tag. Codecademy also used double quotation. So why a single quote for the lesson?
Single and double quotation marks can be used interchangeably in HTML to access files, directories or external hyperlinks. W3C protocols require using Unicode in place of certain special characters for URLs, and having these two on that “do not use” list prevents errors caused by cutoff hyperlinks.
As long as everything works the way it should, how you do it is based on what works best for you.
Hi, if I was creating a website, it would depend on me where I place an HTML file(s) and CSS file(s). The CSS file is often placed in the ‘css’ directory inside of the directory where is the ‘index.html’ file, so in such cases, the relative path is ‘css/style.css’. But for educational purposes with small projects is the ‘style.css’ file usually just in the same folder as HTML file, so the relative path consists only of the name of the CSS file.
there is an exchange in the comments between users Coomie and teemoh:
Teemoh: So whats the difference between ./abc.htm and just abc.htm ?
Coomie: @Teemoh They’re the same in JS, HTML and CSS. The “./” is a old programing convention that carried over into these newer languages. In other circumstance they could mean different things. eg. if a “path” is set in an OS abc.exe could be a file and ./abc.exe might not.