The body tag and its attributes.

The body has a few attributes. They are –

  • bgcolor (used for giving a background colour to a page).
  • Eg. <body bgcolor=”red”>
  • This will make the body colour red.

Note: It’s color and not colour. Also. The colour name is in quotes ” ”

  • Next comes the ‘text‘ attribute.
  • This changes the colour of the text in your body
  • Eg. <body bgcolor=”red” text=”white”>
  • This will make the text colour white and body colour red.

Note: It’s text and not textcolor.

Categories: Uncategorized | Tags: , , , , , , | Leave a comment

Post navigation

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Create a free website or blog at

%d bloggers like this: