HTML

Test HTML
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE HTML>
<html>
<head>
<title>Ejemplo colorear HTML</title>
<link href='ColorearCodigoPHP_HTML_Ejemplo.css' rel='stylesheet' type='text/css' />
<!-- Código CSS -->
<style>.MiEstilo { margin-left:auto; margin-right:auto; }</style>
<style>
.MiEstilo {
margin-left:auto;
margin-right:auto
};
</style>
<!-- Código JavaScript -->
<script>function MiFuncion(variable) { alert(variable); }</script>
<script>
function MiFuncion(variable) {
alert(variable); // Comentario
}
</script>
</head>
<body>
<?php $MiVariable = true; ?>
<?php
function MiFuncion($Var, $Var2 = "string") {
return $Var2." ".($Var * 10);
}
?>
</body>
</html>
<!-- También se puede resaltar una op varias líneas utilizando un enlace -->

eitqueta <linea> : Resaltado en el hover y posicionamiento al hacer click


eitqueta <a> : Resaltado en el hover, al hacer click va al enlace como de costumbre.