Why we use CSS with HTML?

Started by bidabingseo, 11-08-2011, 23:47:51

Previous topic - Next topic

bidabingseoTopic starter

newbielink:http://"http://www.promonu.com/index.php/services/merchant-accounts" [nonactive]
  •  


aarisindia

- 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.


jenli29

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).

nerds

#3
CSS, which stands for Cascading Style Sheets, is used in conjunction with HTML to define the visual presentation of web pages. It enables web developers to specify the layout, design, and appearance of HTML elements, such as text, images, and other content. By using CSS, designers can control the color, size, spacing, typography, and positioning of elements, thus allowing for a high level of customization and creativity in web design.

One of the key benefits of using CSS with HTML is the separation of content and presentation. This means that HTML is responsible for the structure and semantics of the content, while CSS handles the stylistic aspects. This separation improves the maintainability and flexibility of web pages, as changes to the visual design can be applied globally through CSS without altering the actual content in the HTML files.

CSS also facilitates the creation of responsive web designs, which adapt to different screen sizes and devices. This is achieved through techniques such as media queries and flexible layout approaches, ensuring that the content displays optimally on desktops, laptops, tablets, and smartphones.
The use of CSS with HTML empowers web developers to create visually appealing, consistent, and adaptable web interfaces, providing an enhanced user experience across a variety of platforms.

delois

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.
  •  


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.
We are expert website design company india [nofollow] as no #1 Ecommerce web development. [nofollow]
  •  


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.
  •