Background Sublime Css, html | Sololearn: Learn to code for FREE!


Background Sublime Css, html

Hello, from my academy where I study I have a problem to create a background with color in Sublime. I looked in Youtube, watched the course of my teacher but I don't receive a red color in background. Can you help me pls?

6/23/2021 9:04:32 PM

Ани Г.

3 Answers

New Answer


You forgot to share your code link. How can the community help when they can't even see your code for analysis? Save the code in SoloLearn (if you haven't already), edit original post above, and share a link to it in the Description. Here's how, in case you didn't know.


hello Ани Г. you can add to the tag style like: style="background:red"


Hello, I'm writting from Deckstop version of application. I don't have place to insert the file, so I'll copy my steps FIRST TRY <!doctype html> <html> <head> <title>Background</title> <link rel="stylesheet" href="css/style.css" /> </head> <body> { <body style="background-color: red;" } SECOND TRY <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy" crossorigin="anonymous"> </head> <body> <div class="p-3 mb-2 bg-danger text-white">.bg-danger</div> </body> </html> 3 TRY <!doctype html> <html> <head> <title> Background</title> <body style="background-color: red:"> <h1>Hello, world!</h1> </body> </html> I've watched some videos in Youtube and also make some research but the red background won't appear. I know there are some mistakes but don't know where.