You are viewing the article How to Use Text Color Tags in HTML at Lassho.edu.vn you can quickly access the necessary information in the table of contents of the article below.
This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.
The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.
This post has been viewed 148,083 times.
This is an article on how to change the text color in HTML documents. Although the HTML typography tag is obsolete in HTML5, you can use CSS to color the content on an HTML page. If you’re using an earlier version of HTML, you can use the HTML font color tag as needed.
Steps
Using CSS
- Go to https://www.w3schops.com/cpors/cpors_picker.asp using your computer’s browser.
- Select the background color you want to use in the hexagon at the top of the page.
- Drag down the color tone you want to use on the right side of the page.
- Record the 6-character code to the right of the tone.
- If you don’t have HTML text already, create one before continuing.
<!DOCTYPE html> < html > < head > < style > </ style > </ head > < body >
< h1 > { cpor : red ; }
<!DOCTYPE html> < html > < head > < style > < h1 > { cpor : red ; } </style> < / head > < body > _
body { cpor : black ; }
Use HTML tags
- Go to https://www.w3schops.com/cpors/cpors_picker.asp using your computer’s browser.
- Select the background color you want to use in the hexagon at the top of the page.
- Drag down the color tone you want to use on the right side of the page.
- Record the 6-character code to the right of the tone.
- If you don’t have HTML text already, create one before continuing.
< font cpor = "red" >
< font cpor = "red" > This is the red content! </ fonts >
Advice
- Try to make the page easy to read. Light colors are often difficult to read on a white background, and dark colors are difficult to read on a black background.
- The HTML color code has the following meaning: the first two characters are used to indicate the red tint, the next two characters the green tint, and the last two characters the blue tint. You can use any number from “00” to “99” to specify the color amount of each shade; using “FF” instead of a number is the way to specify the maximum amount of color (for example, “0000FF” will give the color with the highest blue tint).
- Older computer monitors can only display up to 65,000 colors, and older monitors only have 256 colors. However, more than 99% of internet users can see the colors you choose. [2] X Research Source
Warning
- The typeface element is not supported in XHTML 1.0 Strict DTD.
This article is co-authored by a team of editors and trained researchers who confirm the accuracy and completeness of the article.
The wikiHow Content Management team carefully monitors the work of editors to ensure that every article is up to a high standard of quality.
This post has been viewed 148,083 times.
This is an article on how to change the text color in HTML documents. Although the HTML typography tag is obsolete in HTML5, you can use CSS to color the content on an HTML page. If you’re using an earlier version of HTML, you can use the HTML font color tag as needed.
Thank you for reading this post How to Use Text Color Tags in HTML at Lassho.edu.vn You can comment, see more related articles below and hope to help you with interesting information.
Related Search: