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

Author: Kevin Mason

Leave a Reply

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