Explain CSS3

What is CSS?

CSS stands for Cascading Style Sheets. CSS describes how HTML elements are to be displayed

CSS Example

CSS SyntaxCSS Syntax

he selector points to the HTML element to style (h1).

The declaration block (in curly braces) contains one or more declarations separated by semicolons.

Each declaration includes a CSS property name and a value, separated by a colon.

In the following example all

elements will be 30px wide, center-aligned, and with red:

Example:

AP Es Trha ki Kuch Examples aur Likh Skty hain

External Style Sheet

A CSS style sheet can be stored in an external file:

mystyle.css

body {background-color: orange; font-family:verdana}
h1 {color: white;}
p {font-size: 20px;}

External style sheets are linked to HTML pages with  tags:

Example:

CSS Example No 1

Paragraph Style.

 

Inline Style

Example:

CSS Example No 1

 

Paragraph Tag.

Paragraph No 1.

Paragraph No 2.



 

Cascading Order

If different styles are specified for HTML elements, the styles will cascade into new styles with the following priority:

  1. Priority 1: Inline styles
  2. Priority 2: External and internal style sheets
  3. Priority 3: Browser default

If different Styles are defined on the same priority level, the last one has the highest priority.

Example:

Heading TAG

Es ME ap Apna Koi Content likh Skty hain Koi Paragraph Etc.

 

Also Another Paragraph Tag.

 

Road Map for Front End Development 2019 By Shahzaib Naz

CSS

Ratting
5/5
CSS
CSS 100%

Slicy

Am Shahzaib Naz Studied at UNIVERSITY OF GUJRAT and Master In SOFTWARE ENGINEERING but Most Interest in WEB DEVELOPMENT and SEO, Also Other Skills MOTIVATOR, POET, and RJ etc

Leave a Reply

Your email address will not be published. Required fields are marked *