How to change the background colour of a webpage in HTML

How to change the background colour of a webpage in HTML


[intro] [intro] [intro] [intro] [intro] [intro] Hi this is Nick from Alphixia
and this is the fourth HTML tutorial In this tutorial we will learn
Background color formatting We use body bgcolor equal to your color in
double quotes Then your content end the body save and open testpage
as you can see the background is blue but this method is depreciated by the W3C
Instead we will use styleThen your content end the body save So here as you can see we have used style
to change the background color of the webpage Here’s a tip
The style tag can also be used with the

and other editing tags
For example So as you can see the style tag can also be
used with

and other heading tags The background of the text is yellow
We use the style tag in accordance to the body tag to make the background blue
That’s all for this tutorial If you like it, please subscribe and share

Daniel Ostrander

Related Posts

49 thoughts on “How to change the background colour of a webpage in HTML

  1. jng4evr1 says:

    Dude it worked! thanks man awsome, helpful video

  2. ENLIGHTENED BIRDMAN says:

    Thanks for this! 😀

  3. Umar Khan says:

    thank you

  4. TJ Esportuno says:

    anlabu

  5. arsenal fan says:

    song! at the begining

  6. Claudia Dinkelmann says:

    THX!

  7. alitheia says:

    thanks

  8. Anthony Silva says:

    that font sucks ass but good video

  9. thewonhoo says:

    Thanks!

  10. Walter Lowlife says:

    nice video thanks man, any online guide is unclear on this

  11. Charlie C. says:

    Thanks man! 😀

  12. OniKitsune says:

    easer to under stand the last few youtubers I watched

  13. Viper says:

    is it for windows 7 too?

  14. a person says:

    OMG THANKS!

  15. Xeries says:

    thanks this worked

  16. SUJOY BISWAS says:

    thank u

  17. Team Gold says:

    nice spelling for the title.btw nice vid really helpful

  18. Thehighfive Gamer says:

    Wow bro!

  19. Coco Zuri says:

    Mine didn't work

  20. doggameplayer says:

    THANKS!!!!!!!!!!!!!1

  21. 805farhan says:

    Nice video

  22. nagi reddy says:

    nice one!!

  23. TheRealMayson says:

    thank you! you helped me on my period quiz!!! thank you so much! you are awesome! i subscribed!

  24. TheRealMayson says:

    goodluck!

  25. Kawaljit Singh says:

    if you will print the webpage then blie color will appear or not

  26. Hype Glitcher says:

    Can we use #RBGA; method too to color the background.

  27. ANÆMÏKÅ SÎÑGH says:

    It is not working

  28. Star greninja says:

    Can i get a subscribe please

  29. Salad Ass says:

    Thanks it worked!

  30. Ramesh Singh says:

    thanks bro its really work work for me

  31. WEB TIPS & TRICKS says:

    https://youtu.be/cFIkGp7B0lM
    basic to advance

  32. David Powell says:

    "this method is ….." what exactly did you say there? sorry. 1:03

  33. Arjun Singh Hamdard says:

    thank u so much….

  34. GIVANIA lycost says:

    thank you so much

  35. RobossGaming says:

    Thank you

  36. Tomas Chernov says:

    You made my day bro. Thanks!

  37. Koushal Yadav says:

    I want to you that you say in hindi

  38. Robert Maddox says:

    It worked and greatly improved my website, Thank You!!

  39. Viji Bisht says:

    it didn't work at all 🙁

  40. rupam kumari says:

    brilliant! thank you for your help

  41. Anuradha nirudu says:

    Thanks u helped for my exam

  42. Lokesh kumar bv says:

    mine didn't work and I have a test related to this tom

  43. Srinivas.M Srinivas says:

    Thanks

  44. The Cosmic life Qutaibah says:

    thx

  45. Symdrone Manga's inc. says:

    Thanks to this i realized my error doing the
    <body bgcolor= "rgb(255,50,50)">
    that my mistake was doing this <body bg color…> it was taught that way, so i end up failing.

  46. Alvard Sargsyan says:

    Here is a basic way to do that: 1.Add the background-color Property to the <body> Element

    The background-color property is used to change the background color. Inserting it to the <body> element you will have a full colored cover of the page. 2. Add style Attribute to the <body> Element

    It is also possible to set a background color for an HTML document by adding style="background-color:" to the <body> element. for examples and more information: https://www.w3docs.com/m/snippets/html/how-to-set-background-color-in-html.html

  47. Super Sam says:

    you….i like you. My online teacher SUCKS and you are literally saving my life and my grade!!!

  48. WARFAREKILLA _YT says:

    Thank you!!!!

  49. WARFAREKILLA _YT says:

    I feel like using a color wheel html code is easier because you can choose the color of choice since I put red, light blue and they came out to be black or green.

Leave a Reply

Your email address will not be published. Required fields are marked *