Website Design and Graphics > CSS Forum

Why we use CSS with HTML?

(1/4) > >>

Why we use CSS with HTML?

- The main benefit in CSS, is that it manages to separate the style from the content on your web page.
- You may want to change the way the generated HTML output looks. The best way to do that is with a Cascading Style Sheet (CSS), which modern browsers support. Font family, type size, colors, and other styles can be controlled with CSS for each kind of element.

They are very important in creating a web site. HTML elements form the building blocks of all websites. HTML allows images and objects to be embedded and can be used to create interactive forms. It provides a means to create structured documents by denoting structural semantics for text such as headings, paragraphs, lists, links, quotes and other items while CSS is designed primarily to enable the separation of document content (written in HTML or a similar markup language) from document presentation, including elements such as the layout, colors, and fonts. This separation can improve content accessibility, provide more flexibility and control in the specification of presentation characteristics, enable multiple pages to share formatting, and reduce complexity and repetition in the structural content (such as by allowing for tableless web design).

We use CSS because it's much easier to edit and make some modifications on the sub-pages on a website through it.

CSS is the style sheet which is used to keep same design in the whole website. It contains different classes and methods which is just called in the web page and easily create the design. In the design the most common language is HTML and CSS is also created by using HTML and all major browsers support CSS. If you want to change any design element than you can easily change in the CSS and it is changed in whole website. You can also create the styles of different objects in the CSS through which your website looks professional.


[0] Message Index

[#] Next page

Go to full version