Page 1 of 2 12 Last
  • Jump to page:
    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    13
    Rep Power
    0

    What is difference between Html and Css language.?


    hi members !
    I know just Html language for template designing .I do not know about css language .What is Css language and what is difference between css and html language .??
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2011
    Posts
    25
    Rep Power
    0
    They are two separate languages.CSS is mainly used for the styling part of the HTML.In HTML designing takes more coding lines making the code complex.CSS helps to solve this problem.The coding lines are short.You need to write the codings again and again.You can link it with HTML any where any time.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2005
    Posts
    274
    Rep Power
    11
    HTML outsources the job of styling to CSS
    Originally Posted by TheJim01
    Firefox is actually a derivation of the Mozilla browser, which was launched by Netscape as an Open Source version of their Navigator browser. So FF and Netscape are like distant cousins, and IE is the weird guy down the street.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    2
    Rep Power
    0
    HTML is a standard in creating web pages. It has a very simple code structure that makes it extremely easy to pick-up and learn compared to any other language. CSS or Cascading Style Sheets is a style sheet language that can be applied to any XML document with a purpose of simplifying the styling of certain elements so that the written code would be a lot easier to read. CSS is a tool that makes web creation much easier to do and troubleshoot. You can also use CSS in HTML pages, XML, XHTML and others.
  8. #5
  9. Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Aug 2005
    Location
    Bucharest ROMANIA
    Posts
    2,557
    Rep Power
    604
    Originally Posted by cris_mac
    . CSS or Cascading Style Sheets is a style sheet language that can be applied to any XML document You can also use CSS in HTML pages, XML, XHTML and others.
    Don't confound XML, on one side, with HTML/XHTML on the other. The language used to style (in fact rather to transform and display) the XML documents is XSLT, not CSS.
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2011
    Posts
    3
    Rep Power
    0

    Re: Difference b/w HTML and CSS ?


    CSS (Cascading Style Sheets) is another widely-accepted web-design language.
    Unlike HTML, CSS does not "create" anything. Instead, it decorates, aligns, and positions (etc) elements in HTML. In a nutshell, CSS takes the normal HTML output and adds a few rules to how it's actually displayed. CSS can edit things such as element width and height, background color, border, alignment, and actual visibility, for starters. HTML is capable of doing some of these things, but as mentioned earlier, the methods are usually deprecated, or are soon to be deprecated.CSS is incorporated into a webpage using Internal markup or external markup (From a ".css" file).
    Last edited by Kravvitz; July 11th, 2011 at 04:56 PM. Reason: removed fake signature
  12. #7
  13. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    13
    Rep Power
    0
    Hi,

    HTML is not a programming language its simply a markup language in which we use tags to build a webpage other than css is used to formatting the page like text font color etc!
  14. #8
  15. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2011
    Posts
    2
    Rep Power
    0
    HTML is all your "hard code" and CSS takes care of all the styling aspects of your page.
  16. #9
  17. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Location
    Minnesota
    Posts
    26
    Rep Power
    0
    HTML is the bread and CSS is the butter to every website.
  18. #10
  19. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2011
    Posts
    42
    Rep Power
    3
    HTML (Hyper Text Markup Language) is a widely accepted web-design language.

    HTML is responsible for the construction, and the total output, of a page.

    There are three "sections" of a decent HTML document source: Inline, Internal, and External.

    CSS (Cascading Style Sheets) is another widely-accepted web-design language.

    Unlike HTML, CSS does not "create" anything. Instead, it decorates, aligns, and positions (etc) elements in HTML. In a nutshell, CSS takes the normal HTML output and adds a few rules to how it's actually displayed.
  20. #11
  21. CSS & JS/DOM Adept
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2004
    Location
    USA (verifiably)
    Posts
    20,124
    Rep Power
    4303
    "Widely accepted web-design language" is an odd way to put it. They are the two standardized languages used in almost every web page. (There are some ancient or very poorly written pages that don't use any CSS though.)

    Originally Posted by cashloan
    There are three "sections" of a decent HTML document source: Inline, Internal, and External.
    Would you please explain what you mean by that?

    Originally Posted by cashloan
    Unlike HTML, CSS does not "create" anything. Instead, it decorates, aligns, and positions (etc) elements in HTML. In a nutshell, CSS takes the normal HTML output and adds a few rules to how it's actually displayed.
    That's not a bad summary of what CSS is used for, but "few rules" might be a bit misleading. Some web pages may use stylesheets that contain fewer than 50 rules in total while others (which are part of medium size or larger sites) can have hundreds of style rules.
    Spreading knowledge, one newbie at a time.

    Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

    Remember people spend most of their time on other people's sites (so don't violate web design conventions).
  22. #12
  23. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    10
    Rep Power
    0
    Originally Posted by Kravvitz
    They are the two standardized languages used in almost every web page.
    Two of the three that can be used.

    HTML defines what the content is - the HTML tags should describe what they contain - headings, paragraphs etc.

    CSS defines how the page should look. You can have different CSS for different media since how the page looks on a mobile phone screen would waste a lot of space on a computer screen and neither is necessarily appropriate for printing out.

    JavaScript can also be optionally added to define how the page should behave.

    It is best to keep all three in separate files with just one link tag immediately before the </head> tag to attach the CSS and a script tag immediately before the </body> to attach the JavaScript if you have any (since Javascript can't interact with the page until it has loaded and can only single thread download while other files can download eight at a time).
  24. #13
  25. CSS & JS/DOM Adept
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jul 2004
    Location
    USA (verifiably)
    Posts
    20,124
    Rep Power
    4303
    Hello, Stephen. It's been a while since we've both posted to the same thread (on any webdev forum). If you're agreeable, would you mind telling me how you stumbled across this thread?

    I was mostly posting in reply to cashloan and didn't take the opportunity to add more information.

    Originally Posted by felgall
    (since Javascript can't interact with the page until it has loaded and can only single thread download while other files can download eight at a time)
    The number of files that a browser will download at the same time depends on the browser's settings, doesn't it? http://stackoverflow.com/questions/9...s-in-a-browser

    Comments on this post

    • KorRedDevil agrees : Yes, but... :)
    Spreading knowledge, one newbie at a time.

    Check out my blog. | Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Common CSS Mistakes | Common JS Mistakes

    Remember people spend most of their time on other people's sites (so don't violate web design conventions).
  26. #14
  27. Contributing User
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Aug 2005
    Location
    Bucharest ROMANIA
    Posts
    2,557
    Rep Power
    604
    Originally Posted by felgal
    while other files can download eight at a time
    Originally Posted by Kravvitz
    The number of files that a browser will download at the same time depends on the browser's settings, doesn't it?
    I always thought that a browser can not download 2 or more files at the same time, in fact it can not download nor even 2 bytes at the same time , as the downloading process is sequential, isn't it? Do I miss something?

    Is there a shadow of irony in your answer, Kravvitz?
    Last edited by KorRedDevil; November 9th, 2011 at 08:32 AM.
  28. #15
  29. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    10
    Rep Power
    0
    Originally Posted by KorRedDevil
    I always thought that a browser can not download 2 or more files at the same time, in fact it can not download nor even 2 bytes at the same time , as the downloading process is sequential, isn't it? Do I miss something?
    Modern browsers can download up to 8 files at a time (obviously only one byte at a time but then a single file can almost never be delivered quickly enough to fill the available bandwidth - in most cases even eight files at a time will still leave huge gaps.

    The exception is JavaScript files that do not have "defer" or "sync" set to indicate that they do not contain anything that the browser needs to handle before it can download other files. Since most browsers still don't understand those attributes they almost all single thread downloading all JavaScripts referenced directly by the HTML. Since the rest of the HTML needs to be there before the JavaScript can interact with it the simplest solution is to place the JavaScript at the bottom of the page.

    If you really need JavaScript to download sooner and want it to be able to be one of the 8 files that can be downloaded at the same time then the solution is to add the script tag itself to the page using JavaScript. By doing that only the small JavaScript to insert the script tag downloads by itself and the rest of the scripts can download alongside everything else (since a script added from JavaScript can't contain anything that can change what the browser needs to download next.
Page 1 of 2 12 Last
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo