Text layout - Bold
We can also use css styles to change text styles: bold, italic, underline, strikethrough, you can use the following code to achieve set the text displayed in bold style .
p span{font-weight:bold;}
Here we can see, if you want to set bold text is a separate css styles to achieve, without the need to achieve the bold style and use h1-h6 or a strong label.
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>粗体签</title> <style type="text/css"> p span{font-weight:bold;} a{font-weight:bold;} </style> </head> <body> < H1 > Courage </ h1 > < the p- > third grade, I was a < span class = "Stress" > timid as a mouse </ span > little girl in class never dared to answer questions posed by the teacher, fear wrong answer teacher will < a href = "http://www.imooc.com" > criticism </ a > I. He has not the courage to answer the questions posed by the teacher. Activities organized by the school I have not the courage to participate. </ The p- > < the p- > when the third grade to the next semester, our class of an open class, the teacher asked a very simple question, many students in the class raised their hands, and even worse grades than I, but also show of hands, but also said: "I come, I come." I looked around, I did not raise it. </ P > < </html>