Here is my.css code:
body {background-color:black;}
div.heading {text-align: center; background-color:white;border: 10px ridge grey; margin-top:0px; font-size: 30px; font-family: Arial, Halvetica, sans-serif; color:black;}
The .css files name is Assignment 3.css
Here is my webpages code. The background is white, and the division is not displayed. If I make the style sheet internal then the code works, but as soon as i put the code in a separate notepad file it does not. Here is the code:
<!DOCTYPE html>
<html>
<style>
<link rel = "stylesheet" type = "text/css" href = "Assignment 3.css">
</style>
<body>
<div class = "heading">
WELCOME TO BUILD A SQUARE
</div>
</body>
</html>
<style>tags - move it out of ittest file.cssand it worked, so its not the problem. @AndreSmith what is your directory structure?linkshould not be insidestyleEDIT:styletag acts like a substitute for external css file. You can write whatever's inside your*.cssfile insidestyletag and then you dont have to link anything