Background Sublime Css, html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

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?

23rd Jun 2021, 9:04 PM
Ани Г.
Ани Г. - avatar
3 Answers
0
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. https://www.sololearn.com/post/75089/?ref=app
23rd Jun 2021, 11:19 PM
Ipang
0
hello Ани Г. you can add to the tag style like: style="background:red"
24th Jun 2021, 1:12 PM
Dror Krief
Dror Krief - avatar
0
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="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" 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.
24th Jun 2021, 6:29 PM
Ани Г.
Ани Г. - avatar