Make your own Highlight color in html???
- markcholloway0304

- May 29, 2023
- 1 min read
So, How to make your highlight color in html???
Well, you're in the right place, and i'm goanna teach you!
So First, Make a document like you always do
<html>
<head>
</head>
<body>
</body>
</html>
And from the <head> element, Type in <style> to put in CSS.
You need CSS from this lesson.
So, type in this from the <style> element.
<style>
background-color: #ff0000;
}
</style>
Then, Add this element from the <body> Write some paragraphs from the <p> element.
So i'm gonna write this code from the <p> element.
<p>
Lorem Ipsum is a dummy text made in the 1800's (19th century.)
</p>
So, i'm gonna add this element from my <p> element.
<p>
Lorem Ipsum is a <span id="highlight">dummy text made in the 1800's</span> (19th century.)
</p>
Now, we're done.
Let's see the preview.


Comments