Skip to content

Instantly share code, notes, and snippets.

@antonyalkmim
Last active December 7, 2016 12:01
Show Gist options
  • Save antonyalkmim/1901b41b59a180adb25c4d9bfa2fa314 to your computer and use it in GitHub Desktop.
Save antonyalkmim/1901b41b59a180adb25c4d9bfa2fa314 to your computer and use it in GitHub Desktop.
Trechos de codigos para TCC
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; }
<img src="data:image/png;base64,iVBORw0KGgo
AAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQV
QI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OH
wAAAABJRU5ErkJggg==" />
<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>
<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>
<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>
var mostrarMensagem=function(a){void 0!=a?alert(a):alert("Informe uma mensagem!")};mostrarMensagem("Olá");
/* Funcao para mostrar mensagem */
var mostrarMensagem = function(mensagem){
if(mensagem != undefined){
alert(mensagem);
}else{
alert("Informe uma mensagem!");
}
}
mostrarMensagem("Olá");
<html>
<head>
<title>Exemplo HTTP</title>
<link href="estilos.css" rel="stylesheet">
<script src="scripts.js"></script>
</head>
</html>
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
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