how to put color on a webpagechange the colorall that is needed to change the background color of a webpage is to add the bgcolor attribute to the body tag in this example the bgcolor is set to pale blue (hex #0099FF), but feel free to pick a different color from the paintbox (opens in a new window)for a list of named colors like red/blue click here (opens in a new window) adding bgcolor to the body tagthe bgcolor can be added as a hex number<body bgcolor=#0099FF> or as a named color <body bgcolor="blue"> change the text colorall that is needed to change the text color of a webpage is to add the text attribute to the body tag in this example the text is set to yellow (hex #FFFF00)pick a different color from the paintbox (opens in a new window) add a background imageit's just as simple to add a background image to the webpage all that needs to be done is add the background attribute to the body tag<body bgcolor=#0099FF text="#FFFF00" background="bluetile.jpg"> you can save the image to disk if you want to see it tiled on your webpage just rightclick on it and select 'save image as' from the popup
//if the user is using IE 4+ if (document.all) document.write('click here to bookmark this site!') else document.write('press Ctrl and D to bookmark this page') home html tutorial css tutorial javascript webmaster articles link exchange |
html tutorial make money from your website |