HTML Learning Tutorial 6 background-Colors

Source: Internet
Author: User


Having a good background in HTML makes the audience easier to read.
Background (backgrounds)

<body> a label with two configuration backgrounds. The background can be a color or an image.

Background color (Bgcolor)

The background color property sets the background to a color. The property value can be a hexadecimal number, an RGB value, or a color name

<body bgcolor= "#000000" >
<body bgcolor= "RGB (0,0,0)" >
<body bgcolor= "BLACK" > All three ways to set the background color to black

The third way to set the background color is to support only 16 color names in HTML4.0

They are:Aqua, Black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, yellow.

While using color as the background, we can also use the picture as the background:

Background (Background)

Background property sets the background as an image. The property value is the URL of the image. If the image size is smaller than the browser window, the image is copied throughout the browser window.

background="clouds.gif"background="http://www.w3school.com.cn/clouds.gif">
All <span style= "font-family: ' Courier New ', Courier, monospace;" > Tutorials </span><span style= "font-family: ' Courier New ', Courier, monospace;" > Resources from: </span><span style= "font-family: ' Courier New ', Courier, monospace;" >http://www.w3school.com.cn/html</span>

HTML Learning Tutorial 6 background-Colors

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.