Explain what an external style sheet (CSS document) is for in a HTML document and write a line of HTML code to import one

Information about how the browser should render HTML elements (such as font styles, sizes and colours) can be specified using CSS in an external document, rather than within the HTML tags. This means the HTML document is clearer to read, and all the style information is in a single place, making it easier to maintain. The following line tells the browser to use the stylesheet.css file when rendering the HTML document its contained in: <link rel = "stylesheet" href = "stylesheet.css>"

TB

Related HTML and CSS Mentoring answers

All answers ▸

What's wrong with the following HTML markup: <p style"font-size:10px;">Copyright <span>2015</span></p>?


How to create a secure password?


How can we integrate animation to websites?


What is the difference between HTML and CSS?