Powered by Blogger.

Monday 2 January 2017

How to set background color in HTML page


There are different ways to set background color in HTML page.
First:
Add <style></style> tag in your HTML document to set background color and then write the css property inside the <style></style>

See image bellow to learn more easily















2nd:
The second way to set background color is the inline coding. write CSS property with the HTML tag by add style="" in HTML document.

See image bellow to learn more easily









3rd:
The third way to set background color is by linking an external CSS file with HTML.Create a new file with .css extension and then identify the HTML tag or Class and apply CSS property.











0 comments:

Post a Comment