Skip navigation

Using the style tag

Using the style tag: CSS for Developers
Using the style tag: CSS for Developers

Join for an in-depth discussion in this video Using the style tag, part of CSS for Developers.

Resume Transcript Auto-Scroll
Skill Level Beginner
4h 1m
Show More Show Less

Q: I want to use one style sheet for a header and a menu item, one for the body, and another for the footer. Can I use a Main.css document and import header.css, body.css, and footer.css?

A: The most common way to use multiple style sheets is to use multiple <link> tags in the HTML file. If you prefer to have one <link> tag you may use CSS @import rules to import style sheets. - Keep in mind that @ rules must come before any CSS statements in your style sheet. It may be a good idea to have a .css file dedicated to @import rules only. Be aware of CSS cascading rules. Whether you are using <link> or @import, styles defined later will override earlier styles..

Skills covered in this course
Developer Programming Languages Web Web Development CSS

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now