What is CSS?

Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language such as HTML

We have three ways to add CSS :

  • Inline we can add inline CSS using adding style="" attribute inside a opening tag in HTML. we can add css properties between ” “.

    Example : <body style="background-color: black;">

  • Internal We can add internal CSS by adding <style>...</style> to the <head>

  • External We can add different file for CSS. That makes the website cleaner. to do that we need to link relevant CSS while to HTML File. we can do that by adding this code to <head> section <link rel="stylesheet" href="file.css">

External works the best when developing large websites.