SwitchUp SwitchUp Ranked Best Coding Bootcamps 2025

What is HTML and CSS?

Written in HTML CSS Development
updated on 10 Jan 2023

When you are looking at a website, say Facebook, you are essentially looking at a newspaper, or more precisely an animated and interactive newspaper.

An editor structures the content of a newspaper with layouts. For a website, a developer defines a website’s layout with HTML (HyperText Markup Language). In 1991, a British computer scientist, Tim-Berners Lee, invented the first website in the world. The first website mainly consists of plain text and links, and it has no styles, such as colors, fonts, and positioning. You can check out a brief history of the World Wide Web by W3C here.

A newspaper with merely a plain layout would be boring and undifferentiated, so newspapers are applied with styles. For a website, a developer defines a website’s styles with CSS (Cascading Style Sheets).

CSS allows you to specify the exact styling at the exact place on your website, so you can make it look the way you want it. Just to name a few, you can specify the following styles of your websites with CSS:

  • Positions of any elements
  • Borders; the amount of space inside/outside the borderline (we call them margins and paddings)
  • Font: color, weight, style, size, line height

With HTML and CSS, you can make a good-looking static website, just like how you can make a good-looking image with photoshop. We call them static websites because they are not interactive and their contents don’t dynamically change (ie. no matter what you do to a newspaper, its content cannot dynamically change).

Trusted by

Students and instructors from world-class organizations

Join the upcoming Cohort #120

Enroll for December 7th, 2026