From the course: HTML for Educators

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Linking to your own custom CSS

Linking to your own custom CSS - HTML Tutorial

From the course: HTML for Educators

Start my 1-month free trial

Linking to your own custom CSS

- [Instructor] Now that you're starting to see the incredible level of control over the look of your HTML pages that you have with CSS, let's look at a technique for managing your styles across multiple web pages, and that is by creating a dedicated CSS style sheet. In the last movie, we saw how to create inline styles by adding a style attribute to an HTML element, and this is really helpful for creating a very specific style definition only one time. The challenge with using inline styles is that you have to add that code to every single element in your page and site, making maintaining a site styled this way nearly impossible. We've also seen how to add styles to a style tag in the head of a page. This is a great technique if you're only managing a single page, but as soon as you have two or more pages in your site, it's time to move your CSS out to a dedicated page so you have one place to maintain those rules, and all of your pages can look to that one page to inherit their rules…

Contents