Sunday, December 2, 2018

CSS Introduction

What is CSS?


  • CSS stands for Cascading Style Sheets
  • It is describes how display HTML elements in browser
  • It can control the layout of the multiple webpages in once time

Why we using CSS?


  • We can use different styles for webpages
  • Make some design and layouts
  • Manage different styles for HTML tags

CSS syntax


  • h1 is the selector
  • color and font-size are property
  • blue and 12px are value for property
  • (color:blue;) This is Declaration for what style you want in your webpage

CSS Selector

There are 3 types of selectors are avaivale in CSS
  • Call HTML elements (eg:h1, p , div, table)
  • Call id selector
  • Call class selector

There are 3 ways to insert CSS in webpage
  • External style sheet
  • Internal style sheet
  • Inline style

External Style Sheet


  • Insert an external style sheet file on your webpage
  • Every page must include a reference to the external css file link

Internal style sheet


  • Internal style sheet use in same webpage
  • Styles are defined within head tag

Inline Style Sheet


  • Inline syle sheet use in a tag
  • This can use specific style for that one tag

Referance : Image From w3school.com 
                 if you want to more information visit to w3school.com



No comments:

Post a Comment