CSS and HTML are the core languages used for creating web pages and web-based applications. HTML was invented in 1989, while CSS was invented in 1996.
HTML, or HyperText Markup Language is a markup language for creating the structure and content of a webpage using text, images, links, and containers. Meanwhile CSS, or Cascading Style Sheets, is used to modify the design and display of those HTML elements.
HTML is made up of content between <tags>, whereas CSS is made of selectors followed by a {declaration block}.
When creating a website, all of your unique HTML and CSS files for the same website are usually located inside a folder like so:
HTML
HTML, or Hypertext Markup Language, is an essential building block of every web page.
HTML’s primary purpose is to list the content used in the web page. HTML will display text, labels, lists, insert photos and other media, create hyperlinks, buttons, and containers. This is all done with appropriate HTML elements.
Additionally, each HTML element can be used to separate content into sections. You can also nest HTML elements with one another for better control over the page layouts and content.
However, HTML is not good for creating animations, managing responsive layouts, and other similar interactions within the content.
CSS
CSS or Cascading Style Sheets is a stylesheet language used to describe the presentation of an HTML, XML, or XHTML document. It’s used to provide styling for text, images, & links.
In short, CSS is used to create responsive layouts, animations, styling text, and positioning containers. By applying CSS, you add the look and feel that you’d like to your websites.
Learn More