HTML
  Home arrow HTML arrow Page 5 - HTML Formatting and Colors
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
HTML

HTML Formatting and Colors
By: James Payne
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 4
    2008-01-15

    Table of Contents:
  • HTML Formatting and Colors
  • Quotation, Acronyms, And More
  • Writing Backwards
  • Handing Out Citations
  • Background
  • Color Code Chart

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    HTML Formatting and Colors - Background


    (Page 5 of 6 )

    Since we are on the topic of text and displaying it, I think it is a good time to discuss backgrounds. The way your text looks is heavily influenced by your background choice. If you try to display yellow text on a white background for instance, the user's eyes will likely explode. Likewise if you display a dark image and try to use dark text against that background, your text will be unreadable.

    There are two choices when setting the properties of your background. You can use colors or an image.

    Images as Backgrounds

    You can get some cool effects using images for your background. It can also come out looking stupid if you're not careful. A few things to note: if the image is smaller than your page, the browser will tile the image over and over. If the image is larger than your page, it will make the page bigger, which can screw up your layout. And finally, if the image is too large, it will slow the speed of your page loading.

    Here is how you make an image your background:


    <html>

    <body background="thisisyourbackground.jpg">



    </body>

    </html>

    Using Colors as a Background

    Your other option is to use colors for your background. You can do this with the following code:


    <html>

    <body bgcolor="#7FFF00">



    </body>

    </html>

     

    Hurts your eyes right? Muahahah! Setting the background color is just that easy.

    Well that is it for this tutorial. I will leave you with a table displaying all of the color values and their codes. See you in the next tutorial. Till then...

    More HTML Articles
    More By James Payne


       · Thanks for dropping by. In this tutorial we discuss formatting and colors, working...
     

    HTML ARTICLES

    - Comparing Browser Response to Active Client ...
    - Testing Browser Response to Active Client Pa...
    - Active Client Pages: Completing the Code for...
    - ACP and Browsers: Setting up an Example
    - How Browsers Respond to Active Client Pages
    - Completing a Tree with Active Client Pages
    - HTML Form Verification and ACP
    - Building an ACP Tree
    - Completing an ACP 3D HTML Table Image Gallery
    - Building an ACP 3D HTML Table Image Gallery
    - A Multiple Page Image Gallery with Active Cl...
    - Building an Image Gallery with Active Client...
    - Concluding a Menu for All Browsers
    - A Vertical Menu for All Browsers
    - Downloading Long HTML Pages with ACP







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    Stay green...Green IT