Text layout-Bold (Font-weight)

Source: Internet
Author: User

We can also use CSS style to change the style of the text: bold, italic, underline, strikethrough, you can use the following code to implement the formatting text in bold style display.

P Span{font-weight:bold;}

As you can see here, if you want to set the bold font for text to be implemented with a separate CSS style, you don't have to use the H1-H6 or strong tags to implement bold styles.

<!DOCTYPE HTML><HTML><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8"><title>Bold sign</title><styletype= "Text/css">P span{Font-weight:Bold;}a{Font-weight:Bold;}</style></Head><Body>    <H1>Courage</H1>    <P>When I was in third grade, I was a<spanclass= "stress">Timid</span>The little girl, never dared to answer the teacher's questions in class, afraid to answer the wrong teacher will<ahref= "Http://www.rinpe.com"Target= "_blank">Criticism</a>I. Have never had the courage to answer the questions asked by the teacher. I didn't have the courage to take part in the school events.</P>    <P>To the third grade next semester, our class in a public class, the teacher put forward a very simple question, the class many students have raised their hands, even the result is much worse than me, also raised his hand, also said: "I come, I come." "I looked around for four weeks, so I didn't raise my hand.</P></Body></HTML>

Text layout-Bold (Font-weight)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.