.

Attributes in HTML Assignment Help

Background in HTML Assignment Help

In HTML, background can be set-in 2 ways. By default, it is white color.

HTML background can be set with colors or images

Colors of HTML Background

{`

< body> tag bgcolor attribute is employed to represent HTML page background color. It is also employed for < table> tag

Syntax

< body bgcolor=”colorname or color value”>

e.g

< table bgcolor=”skyblue”>

< table bgcolor=”#f100f1”>

< table bgcolor=”rgb(120,0,120)”>

`}

Background in HTML Assignment Help Through Online Tutoring and Guided Sessions at MyAssignmentHelp


Example

background in html img1

Output

background in html img2

Images of HTML Background

{`

< body> tag background attribute is employed to represent HTML page background image. It is also employed for < table> tag .The supported image formats are JPEG, GIF, PNG

Syntax.

< body background=”Image URL”>

`}

Transparent & Patterned Background

It is achievable by implementing transparent and patterned image in the background

When creating this, employ little dimensions like 1X1 to reduce the loading time

Example

background in html img3

Output

background in html img4
.