Ads

Breaking

Sunday, July 26, 2020

How to set background color in HTML | Background color in HTML

1. Open your text editor .

2. Write basic tags i.e. html , head , body . use title tag to write "background color" in head section in order to understand which type of document you have made .



3.Write the background tag inside body tag like <body bgcolor> , and enter the colour you want to set in your background e.g. <body bgcolor="sky blue">.
NOTE :- In this scripting language we need to write "color" not "colour" .


4. Save this file with . html extension . I am saving this file as "background_color_example.html" .



5. To see the result how this looks like open the saved file in any browser to see the result .


No comments:

Post a Comment