CSS Interview Questions

Q1: What is CSS?

Cascading Style Sheets is a web defining language for html elements and is also known as XHTML. It is used to style html pages and allows to have all styling separate from html file.

Q2: What are the 3 ways CSS can be integrated in HTML?

  1. Inline– using the style attribute of an element.
  2. Internal– using the style tag inside head element, allowing creating a styling block.
  3. External-creating a css file containing the styling of elements and linking the css file to html with <link rel=”text/css” href=”path_to_cssfile”/>

Leave a comment

Design a site like this with WordPress.com
Get started