Results 1 to 4 of 4

Thread: What is the role of CSS?

  1. #1
    Join Date
    Feb 2014

    What is the role of CSS?

    What is the role of CSS in web development?

  2. #2
    To say what things look like for specific media targets.

    HTML is for saying what things ARE -- if in your markup (HTML) you are choosing tags based on their default appearance, you have completely missed the point of what HTML is or how to use it. Saying what things are in the markup leaves it to the user-agent (browser) to best convey that information to the capabilities of the device it's shown on -- be it screen, print, aural, braille, teletype... Once you have said what things ARE in the markup, you can then use CSS to target screen or print to customize the final appearance -- and now that we have media queries you can further customize that appearance based on things like screen width.

    "Presentational markup" -- saying what things look like in the HTML, is a relic of the browser wars that NEVER should have existed in the first place; no matter how many developers today refuse to extract their cranium from 1997's rectum and continue to vomit up code that way; or come up with new ways of doing that sleazy lazy nonsense like layout frameworks or "OOCSS"; for which developers are dumber for them even existing.

  3. #3
    CSS are more important way to control how your Web pages look. CSS can control the fonts, text, colors, backgrounds, margins, and layout.

  4. #4
    Join Date
    May 2014
    Main role of CSS is that the code are not repeat again and again on html page only calling the CSS page

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center