Kenney Merlo
New member
Alright, now that you kind folks helped me with my last question, I just have one more. I need to learn how to highlight my text while coding it into my CSS part. Not sure if that makes sense, so here's what I need to highlight (example):
<html>
<head>
<title>Hello HTML</title>
<style>
.BlueFont{color: blue; font-family: Comic Sans MS; font-size: 2em;}
</style>
<style>
.RedFont{color: red; font-family: Comic Sans MS; font-size: 4em;}
</style>
</head>
<body>
<p><font class="BlueFont">Hello World!</font></p>
<p><font class="RedFont">Hi There!</font></p>
</body>
</html>
Let's say I wanted to highlight "Hello World!" in a light green color (or #99FFCC). How/where would I add that "span" tag into the CSS section? Still learning about it.
Thanks again!
PS - On a side note, in the "Style" section, can I make multiple styles in the same style tag, or do I need to create a separate Style tag for each?
<html>
<head>
<title>Hello HTML</title>
<style>
.BlueFont{color: blue; font-family: Comic Sans MS; font-size: 2em;}
</style>
<style>
.RedFont{color: red; font-family: Comic Sans MS; font-size: 4em;}
</style>
</head>
<body>
<p><font class="BlueFont">Hello World!</font></p>
<p><font class="RedFont">Hi There!</font></p>
</body>
</html>
Let's say I wanted to highlight "Hello World!" in a light green color (or #99FFCC). How/where would I add that "span" tag into the CSS section? Still learning about it.
Thanks again!
PS - On a side note, in the "Style" section, can I make multiple styles in the same style tag, or do I need to create a separate Style tag for each?