top of page

Make your own Highlight color in html???

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.



 
 
 

Recent Posts

See All
Why students disagree with homework?

Because it cause students stress, and it wastes student's time to play. And students, all around the globe, disagrees homework. Here are...

 
 
 
Make your own blog!

Make your own article... Hmm... We don't need JavaScript, We need HTML and CSS!!!! Here's CSS, for style.css. p::first-letter {...

 
 
 

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page