Css Flashcards
how to link HTML and Css
<head>
<link></link>
</head>
text color
colour
background color
background-color
;
semicolon
Txt-align
lef center right
how to adjust the boldness of txt
font-weight
text-decoration
text-decoration: blue underline;
or
text-decoration: #996219 underline wavy;
line-height:
space between lines
letter-spacing
space between letters
font-family:
to chose the font
text-transform:
upercase
capitalise
none
full width
full-size-kan
universal selector:
select every piece
selector=> *{}
element selector:
selector=> button{}
select a list
selector=> h1,h2{}
Id selector
selector=>#signup
class selector
selector=>.Ali{}
selector=>li a{}
Descendant selector
select all <a>’s that are nested inside an <li>
____________________
.Ali a{}
Select all <a>’s that are nested inside Ali class
_________________-
Section span a{}</a></a>
selector=>h1+p{}
Adjustment selector:
select only the paragraph that comes right after an h1
selector=>footer>a{}
Direct Child selector:
select links that are direct children of a footer
selector=> input[type=”text”]{}
Attribute selector:
select all input elements where the type attribute is set to “text”
selector=>section.post
it will select only the section with the class post
pseudo classes=> pseudo(pronauciation:sudo) classes
keywords that we add to a selector that specifies state of the selected element.
:
colon
pseudo classes=> hover:
button:hover{}
________________
.post button:hover{}
in this example?
hello