HTML colors are specified with predefined color names, or with RGB, HEX, HSL, RGBA, or HSLA values.Color NamesIn HTML, a color can be specified by using a color name:Tomato Orange DodgerBlue MediumSeaGreen Gray SlateBlue Violet LightGray ...
Color Names Supported by All Browsers All modern browsers support the following 140 color names (click on a color name, or a hex value, to view the color as the background-color along with different text colors): AliceBlue #F0F8FF
Color Names Supported by All Browsers All modern browsers support the following 140 color names (click on a color name, or a hex value, to view the color as the background-color along with different text colors): AliceBlue #F0F8FF
html支持140种的标准颜色HTML Color Names (w3schools.com) 背景颜色 例子: <h1style="background-color:DodgerBlue;">Hello World</h1><pstyle="background-color:Tomato;">Lorem ipsum...</p> 字体颜色 例子: <h1style="color:Tomato;">Hello World</h1><pstyle="color:DodgerBlue;">Lorem ipsum...</...
<imgsrc="https://www.w3schools.com/images/w3schools_green.jpg"alt="W3Schools.com"> Try it Yourself » Notes on external images:External images might be under copyright. If you do not get permission to use it, you may be in violation of copyright laws. In addition, you cannot control...
Run ❯ Get your own website Result Size: 785 x 1414 <!DOCTYPE html> <html> <body> <p>I am normal</p> <p style="color:red;">I am red</p> <p style="color:blue;">I am blue</p> <p style="font-size:50px;">I am big</p> </body> </html> ...
Study for free at W3Schools.com Study at your own speed Test your skills with W3Schools online quizzes Apply for your certificate by paying an exam fee Take your exam online, at any time, and from any locationGet Your Certificate and Share It With The WorldExample certificate:Each...
140 HTML Color Names A - Z ColorHTML Color NameHex Color CodeColor Group AliceBlue#f0f8ffWhite AntiqueWhite#faebd7White Aqua#00ffffBlue AquaMarine#7fffd4Blue Azure#f0ffffWhite Beige#f5f5dcWhite Bisque#ffe4c4Brown Black#000000Gray BlanchedAlmond#ffebcdBrown...
<p>To add a caption to a table, use the caption tag.</p> <table style="width:100%"> <caption>Monthly savings</caption> <tr> <th>Month</th> <th>Savings</th> </tr> <tr> <td>January</td> <td>$100</td> </tr> <tr> <td>February</td> <td>$50</td> </tr> </...
main { margin: 0; padding: 5px; background-color: lightgray;}main > h1, p, .browser { margin: 10px; padding: 5px;} .browser { background: white;}.browser > h2, p { margin: 4px; font-size: 90%;}</style> </head><body><main> <h1>Most Popular Browsers</h1> <p>Chrome, ...