Created
October 4, 2012 12:14
-
-
Save eamexicano/3833216 to your computer and use it in GitHub Desktop.
Etiqueta personalizada en html
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8' /> | |
<style> | |
/* Las siguientes reglas son para visualizar la etiqueta head, style y meta */ | |
head {display: block; border: 2px dotted #ccc; width: 500px; height: auto; margin: 0 auto; padding: 1em; background: black;} | |
style {display: block; width: 100%; height: auto; background: orange; color: #000; font-size: 12px;} | |
meta {display: block; width: 100%; height: auto; background: red; color: #000; font-size: 12px;} | |
meta:after {content: "/>";} | |
meta:before {content: "<meta";} | |
/* La siguiente regla aplica para la etiqueta perro */ | |
perro {display: block; border: 2px dotted #ccc; width: 500px; height: 200px; margin: 0 auto; padding: 1em;} | |
</style> | |
</head> | |
<body> | |
<perro> | |
Este contenido está dentro de la etiqueta perro. | |
</perro> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment