Website Design and Graphics > CSS Forum

Why we use CSS with HTML?

<< < (2/4) > >>

thelazytrader:
External Style Sheets can save a lot of work.

abhirampathak3:
While the other answers describe the mechanics of CSS, the REASON you use CSS is a fundamental directive of the W3C - to separate CONTENT from PRESENTATION.
Example: in the beginning, developers mixed content with presentation elements:
<font size="20">This is my heading</font><br>
<p><font face="arial">This is a paragraph</font></p>
This has three detrimental effects.
1. With the markup inline, it bloats (increases file size) of the document.
2. It makes the page harder to maintain, as it requires direct editing to modify layout or presentation.
3. It changes the semantics of the document; by semantics I mean that search engines and rendering devices expect to find markup that gives the document meaning. <p> means paragraph, <h1> means main heading, <table> means tabular data, as in a spreadsheet (not a layout element!) <font> and other presentation markup adds nothing to the document description and only applies to presentation of the document in a browser.

littonbarney:
We have to use use css in HTML because it is so easy to use css. Few benefits of using css with HTML are  CSS provide web-masters more control over page layoutthan HTML, when we are using css at that time the design of web-site's align, vertical line will maintain same height and wight in the web site. The font of website will remain same.       

satyampandey:
We use HTML with CSS because CSS handles the style of your web page, and lets HTML do the content. HTML has its limitations when it comes to layout, the main benefit in CSS, is that it manages to separate the style from the content on your web page.
 

jitens:
Creating a single page of css can use in all pages of website and give the same output to the website.
satyampandey@:-We use HTML with CSS because CSS handles the style of your web page, and lets HTML do the content. HTML has its limitations when it comes to layout, the main benefit in CSS, is that it manages to separate the style from the content on your web page.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version