How is CSS different from HTML?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SwatiSood
    Member
    • Jul 2014
    • 91

    How is CSS different from HTML?

    CSS is independent of HTML and can be used with any XML-based markup language. The separation of HTML from CSS makes it easier to maintain sites, share style sheets across pages, and tailor pages to different environments. This is referred to as the separation of structure (or: content) from presentation.
  • lisajohn
    Senior Member
    • May 2007
    • 218

    #2
    HTML provides tags which are surrounding the content of any web page elements, whereas CSS consists of selectors which are surrounded by a declaration block. CSS has fragmentation, but HTML doesn't produce any such problems. CSS uses a much lesser code and thus produce much lesser web page loading time than HTML.

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎