How To Attach A Stylesheet To An Html Document

By admin ·
1

Open your HTML file

If you have multiple HTML files, you will need to complete these steps for each one.

2

Paste the following in the document’s head

In your HTML document, paste the following between the opening and closing brackets.


^ The href=”X” denotes the location of your file. There’s a special consideration to make when denoting this location:


^ The denotation above suggests that inside of the directory containing your HTML file is a directory called “css” which contains a file called “style.css”.


^ The denotation above (using a slash) suggests that the file style.css is located inside a directory in your root called “css”.


^ The denotation above is a valid use of an absolute URL.

3

Save your HTML file

Save your HTML file and you’re done!

4

Open your HTML file

If you have multiple HTML files, you will need to complete these steps for each one.

5

Paste the following in the document’s head

In your HTML document, paste the following between the opening and closing brackets.


^ The href=”X” denotes the location of your file. There’s a special consideration to make when denoting this location:


^ The denotation above suggests that inside of the directory containing your HTML file is a directory called “css” which contains a file called “style.css”.


^ The denotation above (using a slash) suggests that the file style.css is located inside a directory in your root called “css”.


^ The denotation above is a valid use of an absolute URL.

6

Save your HTML file

Save your HTML file and you’re done!

7

Open your HTML file

If you have multiple HTML files, you will need to complete these steps for each one.

8

Paste the following in the document’s head

In your HTML document, paste the following between the opening and closing brackets.


^ The href=”X” denotes the location of your file. There’s a special consideration to make when denoting this location:


^ The denotation above suggests that inside of the directory containing your HTML file is a directory called “css” which contains a file called “style.css”.


^ The denotation above (using a slash) suggests that the file style.css is located inside a directory in your root called “css”.


^ The denotation above is a valid use of an absolute URL.

9

Save your HTML file

Save your HTML file and you’re done!

10

Open your HTML file

If you have multiple HTML files, you will need to complete these steps for each one.

11

Paste the following in the document’s head

In your HTML document, paste the following between the opening and closing brackets.


^ The href=”X” denotes the location of your file. There’s a special consideration to make when denoting this location:


^ The denotation above suggests that inside of the directory containing your HTML file is a directory called “css” which contains a file called “style.css”.


^ The denotation above (using a slash) suggests that the file style.css is located inside a directory in your root called “css”.


^ The denotation above is a valid use of an absolute URL.

12

Save your HTML file

Save your HTML file and you’re done!

13

Open your HTML file

If you have multiple HTML files, you will need to complete these steps for each one.

14

Open your HTML file

If you have multiple HTML files, you will need to complete these steps for each one.

15

Open your HTML file

16

Paste the following in the document’s head

In your HTML document, paste the following between the opening and closing brackets.


^ The href=”X” denotes the location of your file. There’s a special consideration to make when denoting this location:


^ The denotation above suggests that inside of the directory containing your HTML file is a directory called “css” which contains a file called “style.css”.


^ The denotation above (using a slash) suggests that the file style.css is located inside a directory in your root called “css”.


^ The denotation above is a valid use of an absolute URL.

17

Paste the following in the document’s head

In your HTML document, paste the following between the opening and closing brackets.


^ The href=”X” denotes the location of your file. There’s a special consideration to make when denoting this location:


^ The denotation above suggests that inside of the directory containing your HTML file is a directory called “css” which contains a file called “style.css”.


^ The denotation above (using a slash) suggests that the file style.css is located inside a directory in your root called “css”.


^ The denotation above is a valid use of an absolute URL.

18

Paste the following in the document’s head

19

Save your HTML file

Save your HTML file and you’re done!

20

Save your HTML file

Save your HTML file and you’re done!

21

Save your HTML file