Sign up now
to enroll in courses, follow best educators, interact with the community and track your progress.
Download
Syntax of CSS (in Hindi)
142 plays

More
Here, we will learn the Syntax of CSS.

Jigyasa Agrawal
Hi, I'm Jigyasa Agrawal, Currently pursuing B.Tech in computer engineering at GBPUAT pantnagar.

U
Unacademy user
guess it should have been sin2 @+ sin4 @ =1 then cot 2@ + cot4 @=1
  1. Syntax of CSS


  2. -selector -property -value -declaration -declaration block -ruleset Selector f property : value :


  3. SELECTOR -HTML tag -various selectors 1. Class 2. Element 3. Id 4. Attribute 5. Grouping 6. Universal


  4. Khead> hello this is red this is black this is also red <title>CSS</title> <style type="text/css"> Class pt color: black; styling could be done for class attributes those having same .abt color: red; </style> </head <body> hello class attributes will have same style <p class="ab") this is red</p> <p> this is black</p> <p class="ab" > this is also red Used by dot operator </p> </body> </html>


  5. K I DOCTYPE html> <html> head> <title CSS</title> <style> #uni color : red hello styling on the basis of id attributes </style> </head> <body> <ul id="uni") Used by # /ul> <p hello </p> <p> hel </body> </html>


  6. Element elements of the html page eg. p, h1-h6, form etc 2. 2 3 KIDOCTYPE html> <html> < head <title>CSS</title> <style type="text /css"> 6 7 8 9 10 background-COLor: red coLor: black border-width: 1epx ; 12 13 14 15 16 17 18 19 28 23 istyle> </head> <body> hello </body Kp /html>


  7. KIDOCTYPE html> Hello html> Normal Attribute head> <title>CSS</title> style type."text/css"> pl color="red"] style to html tags with particular Attribute color red; text-align: center </stylex /head> Eg body> p color-"red"> Hello p[color-"red] </py p> Normal </py </body> </html>


  8. <htmi> <head> THIS IS RED ktitle>CSS</title <style type="text/css"> Grouping p,h1,.ab THIS IS NORMAL color red; text-align: center; hello this is red this is blachk this is also red style to mu ltiple color: red tags collectively separate multiple tags by comma </style> /head> kbody <h1 THIS IS RED </h1> <h2> THIS IS NORMAL </h2> p> hello K/p> <p class="ab"> this is red</p> <p this is black</p> <p class="ab" > this is also red </p> /body> </html>


  9. IDOCTYPE html> THIS IS RED <html> Universal <head> title>CSS</title> <style type="text/css") * 0 color:blue; THIS IS NORMAL hello this is red this is black this is also red all tags () asterisk is used for universal selector /style> </head> <body> <h1> THIS IS RED </h1> <h2> THIS IS NORMAL </h2> hello x/p> <p class="ab"> this is red</p> <p this is black</p> <p class="ab" > this is also red </p> /body> </html>


  10. type of attribute of HTML tags -eg. background-color color padding Property


  11. Selector Property-1: value; ruleset Property-2:value