Codigos Da Pratica 2
Codigos Da Pratica 2
DESENVOLVIMENTO
WEB
Exemplo 1: CSS
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-
Compatible" content="IE=edge">
<meta name="viewport" content="width=d
evice-width, initial-scale=1.0">
<title>CSS</title>
<style>
.central_geral{
text-align:center;
}
p.central{
text-align:center;
}
h1,h2,h3{
border-
bottom: 6px double gold;
}
ul ol{
color: red;
}
ol ol{
color: green;
}
</style>
</head>
<body>
<p>Texto do parágrafo</p>
<p class='central'>Texto do P para cen
tralizar</p>
<h4 class='central'>Texto do H4 que nã
o vai centralzar</h4>
<h4 class='central_geral'>Texto do H4
que vai centralizar</h4>
<hr>
<h1>Titulo 1 geral</h1>
<h2>Titulo 2 geral</h2>
<h3>Titulo 3 geral</h3>
<ul>
<ol type='I'>
<li>HTML</li>
<li>CSS</li>
<ol type='A'>
<li>Border</li>
<li>Shadow</li>
</ol>
<li>Javascript</li>
</ol>
</ul>
</body>
</html>
Exemplo 2:
Usei gerador de lero-lero: lorem-ipsum para os
parágrafos. https://www.lipsum.com/
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-
Compatible" content="IE=edge">
<meta name="viewport" content="width=d
evice-width, initial-scale=1.0">
<title>Document</title>
<style>
.base{
position:absolute;
z-index: 5;
top: 10px;
left: 10px;
}
.quadro{
position: absolute;
z-index: 10;
top: 40px;
left: 30px;
width: 100px;
height:100px;
box-
shadow: 5px 5px 5px 3p gray;
border-radius: 20px;
background-color: white;
}
.topo{
position: absolute;
z-index: 15;
top: 70px;
left: 50px;
color: blue;
background-color: gray;
}
</style>
</head>
<body>
<p class="base">
It is a long established fact that
a reader will be distracted by the readab
le content of a page when looking at its l
ayout. The point of using Lorem Ipsum is t
hat it has a more-or-
less normal distribution of letters, as op
posed to using 'Content here, content here
', making it look like readable English. M
any desktop publishing packages and web pa
ge editors now use Lorem Ipsum as their de
fault model text, and a search for 'lorem
ipsum' will uncover many web sites still i
n their infancy. Various versions have evo
lved over the years, sometimes by accident
, sometimes on purpose (injected humour an
d the like).
</p>
<p class="topo">
It is a long established fact that
a reader will be distracted by the readab
le content of a page when looking at its l
ayout. The point of using Lorem Ipsum is t
hat it has a more-or-
less normal distribution of letters, as op
posed to using 'Content here, content here
', making it look like readable English. M
any desktop publishing packages and web pa
ge editors now use Lorem Ipsum as their de
fault model text, and a search for 'lorem
ipsum' will uncover many web sites still i
n their infancy. Various versions have evo
lved over the years, sometimes by accident
, sometimes on purpose (injected humour an
d the like).
</p>
</body>
</html>
Exemplo 3:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-
Compatible" content="IE=edge">
<meta name="viewport" content="width=d
evice-width, initial-scale=1.0">
<title>Document</title>
<style>
p{
border-radius: 20px;
box-
shadow: 10px 10px 15px gray;
background-color: slategray;
position:absolute;
padding: 10px;
top: 50px;
left: 10px;
width: 150px;
height:100px;
}
p:hover{
//transform: translate(-
.5rem,-1rem) rotate(3deg);
transform: rotate(360deg);
transition: transform .8s;
}
h1:hover{
box-
shadow: 10px 10px 15px gray;
transform: translate(-.1rem,-
1rem) rotate(1deg);
transition: transform .5s;
}
</style>
</head>
<body>
<p><span style='color:gold'>Atenção:</
span>Teste de leitura</p>
<br>
<!--
<h1>Promoção: aproveite!!!!</h1>
-->
</body>
</html>
Exemplo 4:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-
Compatible" content="IE=edge">
<meta name="viewport" content="width=<
device-width>, initial-scale=1.0">
<title>Document</title>
<style>
p{
margin-left:20px;
table.td{
border: 1px solid black;
border-collapse: collapse;
}
.destaque:hover{
text-align: 1PX 1PX 3PX GRAY;
background: burlywood;
text-align: center;
}
.titulo:hover{
color:red;
font-size: 1.3em;
}
</style>
</head>
<body>
<table border="2">
<caption>Tabela de Frutas</caption
>
<tr class="destaque">
<td>Nome</td><td>Qtf</td><td>V
alor</td>
</tr>
<tr class="destaque">
<td>Banana</td><td>40</td><td>
5,00</td>
</tr>
<tr class="destaque">
<td>Acerola</td><td>7</td><td>
9,00</td>
</tr class="destaque">
<tr class="destaque">
<td>Abacaxi</td><td>4</td><td>
10,00</td>
</tr>
</table>
<form>
<div class="custom-control custom-
switch">
<input type="checkbox" class="
custom-control-input" id="editar">
<label class="custom-control-
label" for="editar">Editar</label>
</div>
<label for="temperatura">Temperatu
ra: </label>
<input type="range" class="custom-
range" min="0" max="10" id="tempertura" na
me="temperatura">
</form>
</div>
<!-
- colocar em src="nome completo de uma ima
gem, que deverá estar salva na mesma pasta
onde você salvou o arquivo, por exemplo]:
flor.png ou flor.jpg" -->
<img class="img-
fluid" src=" " alt="logotipo">
<br>
<br>
<!-- Modal-->
<!--Modal Header-->
<div class="modal-header">
<h4 class="modal-
title">Atenção: </h4>
<button type="button" clas
s="close" data-dismiss="modal"></button>
</div>
<!-- Modal body-->
<div class="modal-body">
Antes de sair, verifique s
eu backup diário.
</div>
</div>
</body>
</body>
</html>