220k views
3 votes
50points

Add some HTML and CSS code to the following sentence so that only part of it is in bold font and part of it is in italics.

I will show you how to alter fonts with CSS properties.

1 Answer

5 votes
HTML

I will show you how to alter fonts with CSS properties.




CSS:

p {
font-family: Arial, sans-serif;
}
strong {
font-weight: bold;
}
em {
font-style: italic;
}
User Igalarzab
by
6.6k points