Curriculum
Course: HTML and CSS 101
Login

Curriculum

HTML and CSS 101

Video lesson

Introduction, types and comment in CSS

This lesson will help you understand the concept of CSS, its different types and how one can use comment in CSS

 

Quick Hands-on

 

Lecture Slides

 

Points to Remember

  • CSS stands for Cascading Style Sheets.

  • Describes how the web page should be displayed (look).

  • Describes how elements should be rendered on screen, on paper, in speech, or on other media.

  • Simply saying, CSS adds styling to the web page.

  • Three types or ways to add CSS to a web page:
    • Inline CSS
    • Internal CSS
    • External CSS
  • Inline CSS: Used to apply a unique style for a single element.

  • Internal CSS: Include CSS rules for a single HTML page and affect that page. It is defined in the <head> section using <style> element.

  • External CSS: The CSS rules are defined in a separate file with the extension(.css). And, each HTML page must include a reference to the external style sheet file (.css) using the <link> element, inside the <head> section.

  • A comment explains the code that might be helpful for self or others. And, they are not displayed in the browser.