简体   繁体   中英

Red and Bold Text in Html

Guys I wanna make this text red ad bold "English" How can I do this in Html? If there is no way to do this Css would be still OK. Thanks.

You do it like this in HTML with some CSS styling:

Please Google before asking next time and read StackOverflow how to ask questions: how to ask a good question Stackoverflow Good luck with your coding!

 <b style='color:red;'>English</b>

You can use a <b> tag with custom styling as Below.

 <b style="color:red;">English</b>


Alternatively, you can use Font Weight CSS Property, to make text bold.

 <span style="color:red; font-weight: bold;">English</span>

You can use strong tag as well for achieving same result.

 <strong style="color:red">English</strong>

Using CSS instead of inline styling is a better way, You can also try using "strong" tags:

 <strong style="color:red;">English</strong>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM