Linking to an external CSS file is great for when you would like to create a consistent look and style across multiple web pages on your website. You can create your CSS rules in one spot and then link to it from all your different HTML files. In the future, if you would like to change something, you can simply go change it in this one external CSS file instead of needing to go make the same change in every single html file. To link to an external CSS file you use the <LINK> tag up in the head section of your HTML file, there are a few other things that you must add a few attributes to your <LINK> tag. To format external css add the “rel” attribute and the value should be “stylesheet”, the other attribute that you need is the “href” hypertext reference attribute, and the value should be the full filepath and filename of the CSS file you would like to link to. For example, if your HTML file was saved on the desktop and the CSS file you want to link to, “MyCSS.css” was also saved on the desktop, then you would link it like this:

<title>Andrew’s Website</title>

“Best Web Certifications for 2017”
– Tom’s IT Pro

Over 70% of technical recruiters say certification is important.

Start your career by becoming a Certified Web Development Professional. You’ll earn designations in HTML5, Javascript, CSS and PHP.

Learn the skills working web developers use, and become a certified pro!

Get Started at no cost…

We won’t send you spam. Unsubscribe at any time.

Leave a Reply

Your email address will not be published. Required fields are marked *