How would I link a CSS stylesheet to my HTML page?

You’ll first need to place the CSS file in a folder that you can call upon. In this example the file named “stylesheet” is in a sub folder of the main directory called “style”. Therefore, the directory path would be “style/stylesheet.css”.
next we would have to use the following code by placing it in between the <head> </head> part of the code near the top:<link rel=“stylesheet” href=“style/stylesheet.css” />

LC

Related HTML and CSS Mentoring answers

All answers ▸

What is the behaviourism?


Many different data types can be stored on a computer system. Five common data types are string, Boolean, real, character and integer. Give suitable examples of data that could be held in each data type.


How can I express x^2 - 7*x + 2 as (x - p)^2 + q ?


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