Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Week 2 HTML Course - CoderDojo @ DCU


This week we targeted the following areas

  • Moved CSS to its own file
  • Key points to adding CSS style
  • Add a h2 tag
  • Add padding alignment to the body
  • Add video to web page

Move CSS to its own file

This week we created a centralized css file, we do this so

  • Share styles with all our pages
  • No need to duplicate styling across pages
  • All pages will automatically look the same
  • Quicker to develop great websites

To link a CSS file you use the link tag

  • Use the href to link the file (Note the file name must be inside the double quotes)

  • Close the link tag

    This is a link tag, linking to style.css

    <link rel="stylesheet" type="text/css" href="style.css"></link>