Goal: In the Styling text and debugging lessons, we learned:
styles.css
file and link to it in our HTML pageBegin taking your HTML to the next level by implementing CSS. Practice targeting elements for CSS rules, and trying out different CSS properties.
.css
stylesheet to our .html
web page?Now it's your turn! To access the JavaScript Console from a Chrome browser just type Ctrl+ Shift + J
(on a Windows keyboard, like those in the Epicodus classroom), or Cmd + Option + J
on a Mac keyboard. Don't forget to make commits and push those changes to the respective remote repositories on GitHub.
my-first-webpage
my-first-webpage
project. Make sure that the CSS stylesheet is in a sub-folder called css
and that you correctly link the HTML document to the stylesheet (make sure the path to the file is correct!).<h1>
) red. Refresh the page in the browser to verify that the stylesheet is linked correctly. If it doesn't change the page, make sure that you've put the CSS file in the correct folder, and specified the right path to the CSS file. Open the JavaScript console to debug if necessary.color
, text-align
, font-style
, font-weight
, font-family
, font-size
, and line-height
.favorite-places
favorite-places.html
in the same project folder of my-first-webpage
and make it about your favorite places to visit. Add images, links and inline styling.favorite-places.html
page. Make another stylesheet (make sure to name it differently than the my-first-webpage.html
stylesheet!) and apply CSS rules.my-first-webpage.html
and favorite-places.html
. Remove the other stylesheets and link to the single stylesheet from both pages. You should have a consistent style between the two documents.Update your cat's homepage or dog's blog to have some styles. If you haven't created a pet website yet, go ahead and do that.
Be sure to make commits and push those commits to GitHub as you are working on your pages.