Académique Documents
Professionnel Documents
Culture Documents
<html lang = "pt-br"> -> LANG É PARA DEFINIR O IDIOMA PRINCIPAL DO SITE
<head>
<body>
----------------------------------------------------------------------------------------------------------
h1{
}
h2{
</style>
<style>
body{
*A cor por ser ainda configurada com o código hexadecimal ou decimal RGB,
sendo o padrão: #000000 (quantidade de vermelho, quantidade de verde e quantidade de
azul)
Ex:
body{
p{
text-align: justify;
text-indent: 50px;
body{
</style>
----------------------------------------------------------------------------------------------------------
...
</hgroup>
<header id = "identificacao">
</header>
<div id = "identificao">
----------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------
[PARÁGRAFO]
</p>
[PARÁGRAFO]
</p>
</p>
#include <stdio.h>
int main(){
printf(“Ola, Mundo!”)
return 0;
</code>
</pre>
[CONTEÚDO DO CORPO]
</body>
----------------------------------------------------------------------------------------------------------
SÍMBOLOS ESPECIAIS:
----------------------------------------------------------------------------------------------------------
</figcaption>
</figure>
----------------------------------------------------------------------------------------------------------
@charset “UTF-8”;
@import url('https://fonts.googleapis.com/css?family=Titillium+Web'); -> FONTE
IMPORTADA DO SITE GOOGLE FONTS
font-family: ‘FonteLogo’;
src: url(“../_fonts/bubblegum-sans-regular.otf”);
body{
background-color: #dddddd;
p{
text-align: justify;
text-indent: 50px;
image.foto-legenda{
position: relative;
width: 100%;
height: 100%;
position: absolute;
top: 0px;
color: white;
width: 100%;
height: 100%;
opacity: 1;
<head>
</head>
<h1>Menu</h1>
<ol type=”1”> -> LISTA NUMERADA, TAMBÉM PODE SER:
“a”,”A”,i”,”I”,...
<li>Opção 2</li>
...
<li>Opção N</li>
</ol>
</nave>
*Obs: A lista pode iniciar a ordenação por um item sem ser o inicial. EX:
</ul>
LISTAS ENCADEADAS:
<nave>
<ul>
<li>Multimídia</li>
<ul>
<li>Músicas</li>
<li>Vídeos</li>
</ul>
</ul>
</nave>
----------------------------------------------------------------------------------------------------------
[CONTEÚDO DE <nav>]
</nav>
nav#menu{
nav#menu ul{
position: absolute;
top: -20px;
left: 300px;
}
nav#menu li{
background-color: #606060;
nav#menu h1{
display: none;
nav#menu a{
color: #000000;
text-decoration: none;
nav#menu a:hover{
color: #ffffff;
text-decoration: underline;
----------------------------------------------------------------------------------------------------------
background-color: #ffffff;
margin: -20px auto 10px auto; -> ORDEM: CIMA, DIREITA, BAIXO E
ESQUERDA
----------------------------------------------------------------------------------------------------------
header#cabecalho img#icone{
position: absolute;
left: 780px;
top: 40px;
header#cabecalho{
height: 150px;
header#cabecalho h1{
font-size: 30px;
padding: 0px;
margin-bottom: 0px;
header#cabecalho h2{
color: #888888;
font-size: 15pt;
padding: 0px;
margin-top: 0px;
----------------------------------------------------------------------------------------------------------
Formatando os estilos:
section#corpo{
display: block;
width: 520px;
padding: 15px;
uside#lateral{
display: block;
width: 350px;
footer#rodape{
footer#rodape p{
text-align: center;
----------------------------------------------------------------------------------------------------------
</table>
table#tabelaspec{
border-spacing: 0px;
margin-right: auto;
margin-left: auto;
table#tabelaspec td{
padding: 10px;
color: #ffffff;
background-color: #606060;
vertical-align: top;
font-weight: bold;
background-color: #cecece;
table#tabelaspec caption{
color: #888888;
font-size: 13pt;
font-weight: bolder;
display: block;
float: right;
color: #000000;
margin-top: 10px;
----------------------------------------------------------------------------------------------------------
FORMATAÇÃO DE <article>:
article#noticia-principal h2{
font-size: 12pt;
color: #606060;
background-color: #dddddd;
header#cabecalho-artigo h1{
font-family: ‘FonteLogo’,sans-serif;
font-size: 20pt;
color: #606060;
margin-bottom: 0px;
.direita{
text-align: right;
header#cabecalho-artigo h2{
font-size: 13pt;
color: #cecece;
background-color: #ffffff;
margin: 0px;
header#cabecalho-artigo h3{
font-size: 12pt;
color: #606060;
----------------------------------------------------------------------------------------------------------
<!DOCTYPE html>
<html lang=”pt-br”>
<head>
<title>Teste JavaScript</title>
<meta charset=”UTF-8”/>
</head>
<body>
<h1>Testando JavaScript</h1>
<script> -> TAG PARA CÓDIGO JAVASCRIPT
</script>
</body>
</html>
2º Teste:
<!DOCTYPE html>
<html lang=”pt-br”>
<head>
<meta charset=”UTF-8”/>
<script>
function acendeLampada(){
/*alert(“Lâmpada acendeu!”);*/
document.getElementById(“luz”).src=”_imagens/lâmpada-
acesa.jpg”; -> PEGA UM ELEMENTO PELO SEU ID
function apagaLampada(){
document.getElementById(“luz”).src=”_imagens/lâmpada-
apagada.jpg”; -> PEGA UM ELEMENTO PELO SEU ID
function quebraLampada(){
getElementById(“luz”).src=”_imagens/lâmpada-quebrada.jpg”;
</script>
</head>
<body>
<h1>Acenda a lâmpada</h1>
*/
<img src=”_imagens/lâmpada-apagada.jpg”
onmousemove=”acendeLampada()”/> -> ALERTA QUANDO PASSA O
MOUSE NA IMAGEM*/
</body>
</html>
2º Teste:
<!DOCTYPE html>
<html lang=”pt-br”>
<head>
<meta charset=”UTF-8”/>
<script>
var quebrada=false;
function mudaLampada(tipo){
if(!quebrada){
document.getElementById(“luz”).src=”_imagens/”+tipo+”
.jpg”;
if(tipo == ‘lampada-quebrada’){
quebrada=true;
</script>
</head>
<body>
<h1>Acenda a lâmpada</h1>
</body>
</html>