codigos basicos..
Título:
<title>aqui el titulo</title>
Imagen en mosaico de fondo:
<body background="imagen.jpg"><!--no quitar las comillas-->
Color de fondo:
Fondo negro: <body bgcolor="#000000">
Fondo rojo: <body bgcolor="#FF0000">
Fondo verde: <body bgcolor="#00FF00">
Fondo azul: <body bgcolor="#0000FF">
<!--podeis buscar en google mas colores en html-->
Insertar una Imagen:
<img src=imagen.jpg>
Insertar un alert cuando pinchen con el boton derecho del ratón:
<script language="JavaScript">
<!-- Begin
function right(e) {
var msg = " AQUI EL MENSAJE QUE APARECERA CUANDO PINCHEN CON EL BOTÓN DERECHO ";
if (navigator.appName == 'Netscape' && e.which == 3) {
alert(msg); // Delete this line to disable but not alert user
return false;
}
else
if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
alert(msg); // Delete this line to disable but not alert user
return false;
}
return true;
}
document.onmousedown = right;
// End -->
Cambiar el puntero del mouse:
<style type="text/css" media="screen">
body{
cursor
AQUI EL CURSOR.CUR);
}
</style>
Escribir un mensaje, que ignora el navegador:
<!--mensaje-->
Para indicar que un documento es html:
<HTML> ... </HTML>
Encabezado de todo documento de la version HTML 3.2:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
Encabezados del Documento. Los siguientes son los parámetros del Comando head:
<HEAD> ... </HEAD>
Para especificar la dirección del Documento por defecto en Uso:
<Base href="http://servidor.tipo/nombre.html">
Windows Media Player:
<object classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" width=250 height=250 align="middle"
standby="Loading Microsoft Windows Media Player components..." id="MMPlayer1">
<param name="filename" value="
AQUI LA RUTA DE CANCION O VIDEO">
<param name="ShowControls" value="1">
<param name="ShowStatusBar" value="1">
<param name="ShowDisplay" value="0">
<param name="DisplaySize" value="0">
<param name="Autostart" value="1">
<param name="Loop" value="1">
<embed
src="
AQUI LA RUTA DE CANCION O VIDEO" autostart=1 loop=1 align="middle" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/download/default.asp" showcontrols=1 showdisplay=0 showstatusbar=1
filename="
AQUI LA RUTA DE CANCION O VIDEO" displaysize="0" > </embed>
</object>