.."; 2. Add "#id value {color: font color; font-weight: font thickness;}" style to set the font style of a tag."/> .."; 2. Add "#id value {color: font color; font-weight: font thickness;}" style to set the font style of a tag.">
Home > Article > Web Front-end > How to change the style of a tag text in css
How to change the text style of the a tag in css: 1. Set the id value for the a tag, the syntax is ".."; 2. Add "# to the a tag The id value {color: font color; font-weight: font thickness;}" style can be used to set the font style of the a tag.
The operating environment of this tutorial: Windows7 system, CSS3&&HTML5 version, Dell G3 computer.
How to change the text style of a tag in css
1. Create a new html file, named test.html, to explain how to use css Define the css style for the specified a tag. Create multiple a tags for testing. Set the id of the specified a tag to mytarget.
#2. In the css tag, set the style of the a tag through the id. Set the text color of the specified a tag to red and make the text bold.
Open the test.html file in the browser to check the effect.
Summary:
1. Create multiple a tags and set the id of the specified a tag to mytarget.
2. In the css tag, set the style of the a tag through the id.
3. In the css tag, set the text color of the specified a tag to red and make the text bold.
For more programming related knowledge, please visit: Programming Video! !
The above is the detailed content of How to change the style of a tag text in css. For more information, please follow other related articles on the PHP Chinese website!