We basically apply CSS with classes, id and HTML tags. If you | Programming Diaries
We basically apply CSS with classes, id and HTML tags. If you are using the most preferred way(creating an extra file with a .css extension) to apply CSS on classes and id is pretty easy we use "." to express classes and "#" to show id. For example if I have a header with a class of "header-one" , a paragraph with an id of "paragraph-one" and an HTML tag of ul We write it as
.header-one{
}
#paragraph-one{
}
ul{
} and we put all the styles we want between the curly braces. As you can see for normal HTML tags we don't need any symbol to express it. Just writing the normal HTML tag would be enough.
Welcome to programming Diaries. To find different articles, resources, blogs, questions, tutorials, books and many more about various programming languages. Contact @jamesScript for info @diaryOfaProg...