Formatting Background (Background Image) (Background Color)

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

AMAC,KURT KAIZZER

B-2
X-ARCHIMEDES
HW#3

Formatting Background
The bgcolor The Background
attribute specifies Attribute specifies a
the background color Definition and Usage background image for
of a document. a document.

ATTRIBUTES

color_name Specifies the URL The URL of the background


background color with a color image.
name (like "red")
An absolute URL - points to
hex_number Specifies the another web site (like
background color with a hex href="http://www.example.com/
code (like "#ff0000") bgimage.gif")

rgb_number Specifies the A relative URL - points to a file


background color with an rgb within a web site (like
code (like "rgb(255,0,0)") href="/images/bgimage.gif")

<html> <html>
<body bgcolor="#E6E6FA"> <body background="bgimage.jpg">
<h1>Hello world!</h1> <h1>Hello world!</h1>
<p><a href="https://www.w3schoo <p><a href="https://www.w3schoo
ls.com">Visit ls.com">Visit
W3Schools.com!</a></p> W3Schools.com!</a></p>
</body> </body>
</html> </html>

You might also like