What is the point of using css because we can just use the attributes of html elements to give style to the webpage? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the point of using css because we can just use the attributes of html elements to give style to the webpage?

26th Sep 2016, 12:18 PM
kxv57
kxv57 - avatar
5 Answers
+ 1
As you will see further while developing a complete real website, the feel or the look of the whole website related to colours, fading effects, hover effects and a numerous of them are only possible with CSS ( Cascading Style Sheet ). The attributes of the HTML tags provide only limited alteration or customisation of their corresponding attributes. You will eventually feel the need of the CSS while developing and will understand that HTML will just help you to form the basic structure of the whole website and when it comes to making it presentable with beautiful colours, fonts and many other effects you will need CSS.
26th Sep 2016, 3:36 PM
ATONU GHOSH
+ 1
CSS can be used to style a group of elements together ,something HTML alone can't.not to worry ,you'll understand the importance soon
26th Sep 2016, 7:29 PM
victor
victor - avatar
+ 1
It's a lot easier and less time consuming to edit your page layout if you use a seperate css file. You can even create different stylesheets to create different layouts just like templates. Imagine I choose a background image of your desktop but you really don't like it and want to use your own. Well, the same is possible in a webpage to let a visitor change the page to his preferences.
26th Sep 2016, 9:07 PM
Niels Vandewinkel
Niels Vandewinkel - avatar
0
The current websites use CSS to style their webpages;this will make the HTML Coding more precise. CSS will make the web pages look more visually appealing to viewers based on the code used. Also using style in html syntax will be a long process if you are creating a web site without usage of CSS
26th Sep 2016, 3:05 PM
Sanjai Mampala
Sanjai Mampala - avatar
0
it helps for faster loading of your webpage since the CSS file will cashed on the user browser so it doesn't need to download it from your server again when the user visits your site
9th Oct 2016, 1:28 PM
Calvin Ochieng
Calvin Ochieng - avatar