A better way is to use Internal CSS which we saw in example.com. To apply this go to the head section and between head tags insert the “style” tags and add the attribute “type”. Value is “text/CSS”
To add External CSS, create a new file in the same directory (or folder), name it “style.css” and link it with the HTML file.
We can add an attribute “class” and name it whatever we want just like we did in HTML. To style a class we use a full stop “.” followed by the class name. The full stop is a class selector so it will select every element with a class.
“Id” work in a very similar way. To select an id we use #
You can add a background color or image to the website using “background-color” or “background-image” in the body tag.
Hi. I am Tarun and I'm teaching my friends about Internal and external CSS, Adding background image, Class & ID in this video. I hope you enjoy the learning process and if you do then don't forget to have fun while learning to code with @lazysynatx
Notes:
1. Internal CSS
https://medium.com/learn-web-development-n...
2. External CSS
https://medium.com/learn-web-development-n...
3. Class & ID
https://medium.com/learn-web-development-n...
In the following video we will cover the following:
~ Div tag
~ Colors
Join FREE Live Classes:
https://t.me/LAZY_SYNTAX
Check out the entire playlist here 👇
• Web Design Bootcamp
Social Media:
Instagram: https://www.instagram.com/lazysyntax/
Facebook: https://www.facebook.com/lazysyntax/
Twitter: https://www.twitter.com/lazysyntax/
Tags:
#internalcss #externalcss #class #id #css #backgroundimage