What are the css text attribute tags
This article mainly shows you the "css text attribute tags what are", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "css text attribute tags what are" this article.
Text color: color: # ffffff
Text style: font-style: oblique; (italic) italic; (italic) normal; (normal)
Font size: font-size:16px
Text line height: line-height: 30px
Text weight: font-weight: bold; (bold) lighter; (fine) normal; (normal)
Text modification: text-decoration:line-through; (delete line) overline; (top line) underline; (underline) none; (no decoration line)
Alignment: text-align:right; (text right alignment) left; (text left alignment) center; (inner element center) justify; (text scatter alignment)
Use exercise: we randomly write a paragraph of text, set the color of the text to red, the font style to italic, the font size to 20px, the line height to 35px, the font to be bold, underlined, and the text is centered; then our code is as follows:
The display in the web page is shown in the following figure:
The above is all the content of the article "what are the css text attribute tags?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!