@frames
@keyframe
@keyframes
@animation-frames
div, p
div + p
div p
div > p
input:checked
input:focus
input:hover
input:active
Selects the first child of an element
Selects all sibling elements
Selects the immediately next sibling of an element
Selects the parent of an element
Selects all elements
Selects all siblings after a specified element
Selects only the first sibling of a specified element
Selects only the last sibling of a specified element
<style src="style.css">
<link rel="stylesheet" href="style.css">
. <css link="style.css">
<script src="style.css">
.html
.css
.js
.style
rgba(255,55,255,1)
rgba(255,255,255,0.0)
rgba(255,55,255,.5)
None of these
background-color
background
background-image
both b and c
background-position
background-iterate
tag
id
class
both class and tag
text-first
text-indent
first-indent
text-first-indent
It is a separate document that contains CSS rules
It separates content from the presentation but both are still contained in a single file
It separates the content and style into separate files
. It allows a web designer and a content author to work in parallel
h1.hover
h1 : hover
h1-hover
h1+hover
background-attachment
background-repeat
Combinator selector
Pseudo Class selector
Pseudo elements selector
Attribute selector
Easier to maintain and update
Greater consistency in design
. More formatting options.
ऊपर के सà¤à¥€
Only one file can be linked at a time
Use multiple <link> tags for each file
Combine all styles into one file
Load them with a <script> tag.
The external CSS file
The <style> block
Neither is applied
They are merged