我正在努力让我的跨度变得大胆,并且字体与我的段落不同。 CSS正确链接到我的HTML。
span.bold {
font-size: 20px;
font-weight: 700;
}
p {
font-size: 16px;
color: black;
font-family: sans-serif;
padding: 22px;
max-width: 60%;
display: inline-block;
margin-top: 0px;
}
<p align="center">
<span="bold">Welcome to Coding Club for Web Developers</span> <br> Coding Club web developers is specifically designed to teach the basics of making a website by learning HTML, Javascript, and CSS. Using Discord, we talk with our team to learn from each other and
to design for our upcoming projects. As a beginner or an amateur, you'll learn everything you need to know about Web Development. To practice, you can go to W3Schools, Sololearn, or Codecademy. <br>
答案 0 :(得分:5)
您需要指定class
关键字span=bold
并不代表任何内容
span.bold {
font-size: 20px;
font-weight: 700;
}
p {
font-size: 16px;
color: black;
font-family: sans-serif;
padding: 22px;
max-width: 60%;
display: inline-block;
margin-top: 0px;
}
&#13;
<p align="center">
<span class="bold">Welcome to Coding Club for Web Developers</span> <br> Coding Club web developers is specifically designed to teach the basics of making a website by learning HTML, Javascript, and CSS. Using Discord, we talk with our team to learn from each other and
to design for our upcoming projects. As a beginner or an amateur, you'll learn everything you need to know about Web Development. To practice, you can go to W3Schools, Sololearn, or Codecademy. <br>
&#13;
答案 1 :(得分:0)
如果要将名为bold
的类分配给span
元素,请执行以下操作:
<span class="bold">
不是
<span="bold">