Compare the Difference Between Similar Terms

Difference Between

Home / Technology / IT / Internet / Difference Between HTML and CSS

Difference Between HTML and CSS

April 25, 2011 Posted by Roshan Ragel

HTML vs CSS

HyperText Markup Language, widely known as HTML is the leading markup language for web pages. HTML is the basic building block of web pages. Web browser reads the HTML document and composes them into visual or audible web pages. Cascading Style Sheets (CSS) is a language that describes the look and formatting of a document written using a mark up language. CSS is widely used to style web pages written in HTML.

What is HTML?

HTML, as mentioned earlier is a markup language, not a programming language. A markup language is a set of mark up tags and HTML uses markup tags, which are usually called HTML tags, to describe web pages. HTML documents describe web pages and they contain HTML tags and plain text. HTML tags could be identified easily in a HTML document since they are surrounded by angle brackets (e.g. <HTML>). HTML tags are typically inserted in to a document in pairs, where the first tag is the start tag (e.g. <b>) and the second tag is the end tag (e.g. </b>). The task of a web browser (e.g. Internet Explorer, Firefox, etc.) is to read a HTML document and display it as a web page. The browser uses the HTML tags to interpret the content of the page and the HTML tags themselves are not displayed by the browser. HTML pages can embed images, objects and scripts written in languages like JavaScript. Further, HTML can be used to create interactive forms.

What is CSS?

As mentioned earlier, CSS defines how HTML elements need to be displayed in a page. Originally, HTML was not intended to have tags for formatting a document, but to define the content. But, the introduction of tags like <font> in HTML 3.2 made the lives of web developers very difficult. When developing large web sites, adding font and color information to every page became a very tedious process. As a solution to this problem, World Wide Web Consortium (W3C) created CSS. HTML 4.0 allows all formatting to be removed from the HTML document and to be stored in a separate CSS file. CSS enables separation of document content from document presentation such as layout, colors and fonts. This would allow multiple web pages to share the same formatting and reduce complexity and repetition in structural content. CSS can also allow the same markup page to be presented in different styles by allowing the readers to choose a different style sheet to override the one specified by the author of the web page. Today CSS is widely used and supported by all the browsers.

Difference Between HTML and CSS

The main difference between HTML and CSS is that HTML is a markup language that is used to specify the content of a web page, while CSS is a style sheet language that is used to specify the formatting of web page. Even though HTML can also specify formatting of a web page, using CSS for this purpose would be more effective, since it would allow separation of content from presentation and Site-wide consistency.

Related posts:

Difference Between HTML 4 and HTML 5 Difference Between JSP and Servlets Difference Between Shared Hosting and VPS Hosting Difference Between SEO and SEM Difference Between www (World Wide Web) and Internet

Filed Under: Internet Tagged With: Cascading Style Sheets, CSS, HTML, HTML document, HTML tags, Hyper Text Markup Language, HyperText Markup Language, markup language for web pages, markup tags, styling web pages, W3C, World Wide Web Consortium

About the Author: Roshan Ragel

Dr.Roshan G. Ragel, is a Doctorate in Computer Science and Engineering and Member of IET (UK) and IEEE. His research interests include Micro-architectural aspects of Embedded Systems Design and their Security and Reliability issues.

Comments

  1. soriful says

    June 28, 2019 at 9:45 am

    really a good post that give a clarity about html & css . love this post

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Request Article

Featured Posts

Difference Between Coronavirus and Cold Symptoms

Difference Between Coronavirus and Cold Symptoms

Difference Between Coronavirus and SARS

Difference Between Coronavirus and SARS

Difference Between Coronavirus and Influenza

Difference Between Coronavirus and Influenza

Difference Between Coronavirus and Covid 19

Difference Between Coronavirus and Covid 19

You May Like

Difference Between Lavatory and Sink

Difference Between JAK1 JAK2 and JAK3

Difference Between JAK1 JAK2 and JAK3

Difference Between Opera and Musical

Difference Between Royalty and Nobility

Difference Between Royalty and Nobility

Difference Between Electrophoresis and Chromatography

Difference Between Electrophoresis and Chromatography

Latest Posts

  • What is the Difference Between de Quervain’s Tenosynovitis and Carpal Tunnel
  • What is the Difference Between Herniated Disc and Piriformis Syndrome
  • What is the Difference Between Spinal Stenosis and Spondylosis
  • What is the Difference Between Lip Flip and Lip Filler
  • What is the Difference Between Bone Spurs and Plantar Fasciitis
  • What is the Difference Between Tension Pneumothorax and Cardiac Tamponade
  • Home
  • Vacancies
  • About
  • Request Article
  • Contact Us

Copyright © 2010-2018 Difference Between. All rights reserved. Terms of Use and Privacy Policy: Legal.