How to use inline CSS in Html

Hey guys, it’s Hasani here and in some cases, you will need to make CSS apply to specific parts of Html but, how do you do this simple inline CSS well today, I will show you two ways of using inline CSS.

First, what is inline CSS? Well, inline CSS is used to apply a unique style to a single HTML element. An inline CSS uses the style attribute of an HTML element.

Here is how you use An inline CSS the first way of using inline CSS is the style tag by putting a style tag like this in the Html in the style tag is CSS.

Here is the second way, first create an Html element then, put style=”” in it like this.

And put any CSS element in it and, it will work.

any way that it for this blog thanks for reading if you want more content check out our youtube channel at https://www.youtube.com/channel/UCJmvf2Gv1SYE1jCf4_r9L6w

and check out Thehomeschooldev at https://www.youtube.com/channel/UCfocQtlJs-Mreuc0EAJQ-zg

and remember CODEHARDER365.

Leave a comment

Design a site like this with WordPress.com
Get started