Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Html Class | Class in Html | how to use class in html

Html Class | Class In Html | How To Use Class In Html

Html Class: Html Class attribute is used to define styles for Html elements with the same class name.


how to use the Class in HTML
you can use the Html class attribute to define the styles for elements for different elements with the same class name.
how to use the class in HTML

Html class Example:


1.Define Class style in head Section


.back{ background-color:red; }

Class attribute starts with .(dot) then use the Class name and define style for that Html class.

Read more »


This post first appeared on The Code Developer, please read the originial post: here

Share the post

Html Class | Class in Html | how to use class in html

×

Subscribe to The Code Developer

Get updates delivered right to your inbox!

Thank you for your subscription

×