heqagon Posted July 28, 2020 Share Posted July 28, 2020 <link href="styles.css" rel="stylesheet" type="text/css"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="icon" href="http://localhost/favicon/browserIcon"> <title>Altraz</title> HTML ^ Full code: <!DOCTYPE html> <html> <head> <link href="styles.css" rel="stylesheet" type="text/css"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="icon" href="http://localhost/favicon/browserIcon"> <title>Altraz</title> </head> <body> <h1>Altraz</h1> </body> </html> body { background-color: dimgrey; } CSS ^ Whenever I run this, the background is still white. Link to comment Share on other sites More sharing options...
shaili_shah Posted July 31, 2020 Share Posted July 31, 2020 Hii, Good morning. I run this code and i get the gray background of body. Thanks! Link to comment Share on other sites More sharing options...
Funce Posted August 2, 2020 Share Posted August 2, 2020 This would greatly depend on where the css file is located, and where the html file is located. Are they in the same Folder/Directory? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now