Open the index.html page in your web browser. It should look something like this:
Open the index.html page in your text editor. It should look something like this:
Opening the same file in a browser and in a text editor lets you see the effects of each code change right after you make it.
When writing code, you'll often want to leave a comment: a message for yourself or other people looking at your code. HTML comment tags begin with <!-- and end with -->. Here's an example:
<!-- This is a comment. The browser ignores it. -->
We can also use this technique to temporarily stop a piece of code from running. We call that "commenting the code out."
Inline vs. Linked
Linking files will help you keep your code organized and easier to maintain. It means, for example, that if you change the style of buttons on your website, you'll be able to change it in just one place, instead of having to update every page.