Last active
December 7, 2016 12:01
-
-
Save antonyalkmim/1901b41b59a180adb25c4d9bfa2fa314 to your computer and use it in GitHub Desktop.
Trechos de codigos para TCC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { background-color: #0000FF;} | |
h1 { color:#00FF00; } | |
a { color: #FFFFFF; } | |
p {background-color: #ffFF00;} | |
h1, p { text-transform: uppercase; } | |
/* Exemplo com ID */ | |
#topico { background-color: #000000; } | |
/* Exemplo de classes */ | |
.espaco_padrao { padding: 30px; } | |
.font_padrao { font-family : Arial; } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img src="data:image/png;base64,iVBORw0KGgo | |
AAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQV | |
QI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OH | |
wAAAABJRU5ErkJggg==" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Exemplo HTML</title> | |
<link href="css_separado.css" | |
rel="stylesheet"> | |
<style> | |
a { font-family: arial } | |
</style> | |
</head> | |
<body> | |
<h1 id="topico">Tópico</h1> | |
<p class="espaco_padrao font_padrao"> | |
Este é um exemplo de parágrafo | |
</p> | |
<a href="http://google.com.br">Buscar</a> | |
</body> | |
</html> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Exemplo HTML+JS</title> | |
<script src="js_separado.js"></script> | |
<script> | |
function mostrarMensagem(){ | |
var elemento = document.getElementById("campoMensagem"); | |
var mensagem = elemento.value; | |
alert(mensagem); | |
} | |
</script> | |
</head> | |
<body> | |
<input type="text" id="campoMensagem" /> | |
<button onclick="mostrarMensagem()">Mostrar Mensagem!</button> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<!-- Cabeçalho --> | |
<head> | |
<title>Exemplo HTML</title> | |
</head> | |
<!-- Conteúdo da Página --> | |
<body> | |
<h1>Tópico</h1> | |
<p> | |
<font color="#FF0000" size="4"> | |
Este é um exemplo de parágrafo | |
</font> | |
</p> | |
<a href="http://google.com.br">Buscar</a> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mostrarMensagem=function(a){void 0!=a?alert(a):alert("Informe uma mensagem!")};mostrarMensagem("Olá"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Funcao para mostrar mensagem */ | |
var mostrarMensagem = function(mensagem){ | |
if(mensagem != undefined){ | |
alert(mensagem); | |
}else{ | |
alert("Informe uma mensagem!"); | |
} | |
} | |
mostrarMensagem("Olá"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Exemplo HTTP</title> | |
<link href="estilos.css" rel="stylesheet"> | |
<script src="scripts.js"></script> | |
</head> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET /index.html HTTP/1.0 | |
Host: www.exemplo.com | |
Accept: text/html, image/gif, image/jpeg | |
Accept-Language: en,pt | |
User-Agent: Mozilla/5.0 | |
Connection: Keep-Alive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTTP/1.0 200 OK | |
Date: Sun, 06 Nov 2016 07:01:36 GMT | |
Content-Type: text/html; charset=UTF-8 | |
Content-Length: 112 | |
<html> | |
<head> | |
<title>Exemplo HTTP</title></head> | |
<body> | |
Conteúdo do Site | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment