|
|
HTML Code TutorialTutor Ebook Download Color in HTML PagesWhen color is used properly on anHTML page, it can enhance the appearance and even the usability of that page. Too much color detracts from its effectiveness as a tool. Color can be applied to many elements of HTML. Fonts, horizontal lines, borders and backgrounds in the body and tables and other box type elements can all use the color attribute. If not specified the default color for text lines and borders is black. The default background color is white. There are also default colors for the different states of hyperlinks. MethodsColor can be set using different methods. It can be set by color name. Color can also be set using RGB or Hexidecimal code. Example: Hello world |
Contents Table of ContentsIntroduction Page Structure Basic HTML PageDoctype The Body Tag The Header Tag The Division Tag Horizontal Rule Anchor Tag Anchor Tag - Intradocument Anchor Tag - Image Using Borders The ID Attribute Meta Tags Text Controls Style SheetsWorking With Fonts The Paragraph Tag Paragraphs-Images Using Lists The Pre Tag Line Break Tag Tables Basics of TablesColspan Forms Form BasicsCheck Boxes Text Boxes Selection Boxes Frames Basic FramesTarget and Scrolling Search Engines Miscellaneous Buttons with CSSUsing Color Color Chart Using Images Using Templates Uploading HTML pages. HTML-CSS Quizzes | |
Color and BrowsersIt should be noted that the final word on how color displays in a browser is determined by the user's browser and the type of hardware on the viewers PC. It was thought at one time that there were 216 colors that would display the same from browser to browser. Recent studies have shown that there are only about 11 colors that will appear the same under all circumstances involved in the viewing process. Check our hexidecimal color code chart for standard and non standard web palette colors. Color and CSS | ||
|
There is one basic rule that you must follow when applying color, to make your style sheets compliant with CSS protocol. Example:
Check out our Free Frames Template Kit or try our Free Frames Kit Demo |
|
|
CGI Online |