Relation Between HTML and CSS

Rumman Ansari   Software Engineer   2022-12-23   441 Share
☰ Table of Contents

Table of Content:


What is CSS?

CSS is the language for describing the presentation of Web pages, including colors, layout, and fonts. It allows one to adapt the presentation to different types of devices, such as large screens, small screens, or printers. 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.

Relation Between HTML and CSS
Types of Styles

There are three ways to define styles to your html page

  • Inline Style
  • Internal Style
  • External Style

Let us understand each type in detail.