Home  >  Article  >  Web Front-end  >  How to set text color to white in html

How to set text color to white in html

coldplay.xixi
coldplay.xixiOriginal
2021-03-04 11:57:0315427browse

htmlHow to set the text color white: 1. Set it through external CSS style; 2. Set it through internal CSS style, the code is [style="color:white;font-size:25px]; 3 , set through the font tag.

How to set text color to white in html

##The operating environment of this tutorial: windows7 system, html5 version, DELL G3 computer.

html Method to set the text color white:

1. Set it through external CSS style. You can add style style to the head tag, and start tags in other tags in the body, such as h1, p, div, etc. , add class="the name defined in the above style, such as white". The code is implemented as follows:

How to set text color to white in html

2. Set it through the internal CSS style. In the body For other tags, such as h1, p, div, etc., just add style="max-width:90%" to the start tag. The code is implemented as follows:

How to set text color to white in html ##3. Set through the font tag. In the content of other tags in the body, add the font tag to set the font color and size, such as color="yellow" size="5". It should be noted that the maximum value of size is 7. The font color and size are set using the equal sign. The first two CSS styles are assigned using English colons. The code is implemented as follows:

How to set text color to white in html## Relevant learning recommendations:

html video tutorial

The above is the detailed content of How to set text color to white in html. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn