Adding CSS to HTML Externally
The second method to adding CSS to HTML is externally. External CSS is ideal when you have a long CSS, which would otherwise create a huge HTML file. Now we use the simple HTML file again.
Now we create a separate CSS file and save it with the extension of .css and saved to the same folder as you HTML document. Now we must link the two files. To do this, we edit the HEAD of HTML to look like this...HTML Code:<HTML> <head> <title>Combining HTML and CSS</title> </head> <body> A simple tutorial on how to combine HTML and CSS to make a better script. </body> </HTML>
Now we have created a external CSS file.HTML Code:<HTML> <head> <title>Combining HTML and CSS</title> <link rel="stylesheet" type="text/css" href="css.css" /> </head> <body> A simple tutorial on how to combine HTML and CSS to make a better script. </body> </HTML>


Likes: 




Reply With Quote

Bookmarks