From the course: CSS Fundamentals: Unlock the Power of Web Styling

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

What options are available to write your styles?

What options are available to write your styles? - CSS Tutorial

From the course: CSS Fundamentals: Unlock the Power of Web Styling

What options are available to write your styles?

- [Narrator] When authoring CSS, you have a few options available as to where you can write your styles. In this lesson, I want to cover those options and how they'll impact your overall site. Styles can essentially be located in one of three locations. First, you can write CSS in a separate file, which is called an external style sheet. Second, you can place styles in the head of an existing HTML document, this is referred to as embedded styles. And finally, you can apply styles directly to an HTML element, which is referred to as inline styles. Let's take a look at each of these in more detail. External style sheets are simply text files with a .css extension. You'll commonly see them named style.css or styles.css, but the name doesn't matter, so long as it has a .css extension. You can author them with any text editor and they'll generally hold multiple styles that are used to control an entire site or maybe a…

Contents