Resumao Css
Resumao Css
Tipos de Seletores:
CSS Selectors
CSS selectors are used to "find" (or select) the HTML elements you want
to style.
Cascading Order
What style will be used when there is more than one style specified for
an HTML element?
All the styles in a page will "cascade" into a new "virtual" style sheet by
the following rules, where number one has the highest priority:
So, an inline style has the highest priority, and will override
external and internal styles and browser defaults.
CRIANDO UM EXTERNAL:
Fontes Externas
<head>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?famil
y=Audiowide|Sofia|Trirong">
<style>
h1.a {font-family: "Audiowide", sans-serif;}
h1.b {font-family: "Sofia", sans-serif;}
h1.c {font-family: "Trirong", serif;}
</style>
</head>
ADICIONANDO FONTES DE INCONES
<script src="https://kit.fontawesome.com/a076d05399.js" crossorigin
="anonymous"></script>
The child selector (>) selects all elements that are the children of a
specified element.
The + selector is used to select an element that is directly after another
specific element.
The general sibling selector (~) selects all elements that are next siblings
of a specified element.