#10 HTML tutorial for beginners in hindi | How to change background color in HTML

Hi guys mera naam manish hai aur mai aapko is channel pe programming, web development k saare video dunga to agar aap bhi web development ya programming sikhna chahte hai to is channel ko subscribe kr lijiye aur apne dosto k saath share kriye.

To aaj ki is video mai aapko btaunga ki aap background color kaise change kr skte hai to umeed krta hu ki aap sbhi ko ye video psand aaye.

1.Determine the background color you want to use. HTML colors are dictated by codes on a per-shade basis. You can use the free W3Schools HTML color picker to find the code(s) for the color(s) you want to use:

Go to https://www.w3schools.com/colors/colors_picker.asp in your computer’s web browser.

Click a base color you’d like to use in the “Pick a Color” section.

Select a shade on the right side of the page.

Write down the numeric code to the right of the shade.

2.Open your HTML file in your favorite text editor. As of HTML5, the bgcolor HTML attribute is no longer supported. Background color, along with all other style aspects of your page, should be handled using CSS.[1]

You can use Notepad++ or Notepad on a Windows computer, while Mac users can edit with TextEdit or BBEdit.

3.Add the “html” header to your document. All of the style information for your page (including the background color) should be coded between the style tags:

4.Create a blank line between the “style” tags. You should have a line on which you can add information below the style tag and above the /style tag.

5.Add the “body” element. Type the following in between the style tags:

body {

Anything you do to the “body” element in CSS will affect the entire page.

Skip this step if you want to create a gradient.


#HTML #HTML5 #HTMLtutorail #Hindi #CoderManish #Webdevelopment

Post Author: hatefull