Tutorial HTML
Tutorial HTML
Cierre </html>
Una etiqueta está conformada por:
<Elemento atributo valor>
Ejemplo
<html lang="es">
Ejemplo de MI primera pagina
<br> <hr>
CARACTERES ESPECIALES
<
>,
&
espacio en blanco
÷ división
×
£
¥
Etiquetas o Frases
Como colocar 3 la 5
<p>H<sub>2</sub></p>
Como anidados
<h1><center><Font color=”red”> COLOMBIA </Font></center></h1>
Es decir que se debe cerrar de adentro así fuera.
Nuevos Elementos de html5
Usted puede aplicar a sus páginas web color, de fondo, como la fuente para esto
puede utilizar el nombre del color en inglés o el código
Links locales
<a href =”contacto.html”>CONTACTO </a>
<a href =”contacto.html” target =”_blank”>CONTACTO </a>
Links Remotos
<a href=” http://www.sena.edu.co”>SENA</a>
<a href =http://www.sena.edu.co”target=”_blank”>SENA</a>
Link de Correo
<a href=”maito:[email protected]”>ENVIAR CORREO A FOX</a>
Link anclados
<!DOCTYPE html>
<html>
<head>
<title>CASA</title>
<link rel ="shortcut icon" href="C:\Users\End
User\Desktop\PODER\img\b1.jpg" alt ="arbol">
</head>
Como Intentar una imagen a la página web
<body>
<H1>Mi primera Página</H1>
<hr>
<img src="C:\Users\End User\Desktop\PODER\img\b1.jpg" width="400"
height="400" alt ="arbol"/>
<hr>
</body>
Como colocar una Imagen de fondo de la página web
CODIGO en html
</head>
<body background="img/a1.jpg">
<H1>Mi primera Página</H1>
<hr>
</body>
</html>
TALLER DE LISTAS
Código de HTML
<!DOCTYPE html>
<html>
<head>
<title>LISTAS</title>
</head>
<body>
<P> LISTAS NO ORDENADAS</P>
<ul>
<li> pedro</li>
<li> Carlos</li>
</ul>
<ul>
<li type ="circle">COLOMBIA</li>
<li type ="circle">SENA</li>
</ul>
<UL>
<li type ="disc">BOGOTA</li>
<li type ="disc">CHAPINERO</li>
</ul>
<P> LISTA DE ORDENADA</P>
<ol>
<li value="10"> pedro </li>
<li> Jaun</li>
<li> Ines</li>
<li> Teresa</li>
</ol>
<P> LISTA DESPLEGABLE</P>
<select name ="localidad">
<option> USAQUEN</option>
<option> CHAPINERO</option>
<option> SANTA FE </option>
<option> SAN CRISTOTAL</option>
</select>
<Hr>
<P> SELECCION UNICA</P>
<input type ="radio" name ="localidad" value="1"> USME<br>
<input type ="radio" name ="localidad" value="2">TUNJUELITO<br>
<input type ="radio" name ="localidad" value="3">BOSA<br>
<hr>
<input type ="checkbox" name ="ciudad" value ="1">BOGOTA<br>
<input type ="checkbox" name ="ciudad" value ="2">CALI<br>
<input type ="checkbox" name ="ciudad" value ="3">MEDELLIN<br>
<input type ="checkbox" name ="ciudad" value ="4">CARTAGENA<br>
<hr>
</body>
</html>
TALLER DE FORMULARIOS
Código en HTML
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body bgcolor=#82E0AA>
<H3> datos Basicos</H3>
<form action="proyecto.thm" method="post">
<center><table>
<tr>
<td>Nombres</td>
<td>Apelliodos</td>
<td>Contraseña</td>
</tr>
<td> <input type="text" name="nombres"></td>
<td> <input type="text" name=apellidos"></td>
<td><input type="password" name="password"></td>
</tr>
</table>
</center>
<hr>
<h4> comentarios</h4>
<textarea name="comentario"cols="20"rows="5"></textarea>
<br>
<input type ="submit" value ="Enviar"><br>
<input type ="reset" value ="Borrar"><br>
<hr>
<p>mi sitio de ubicación</p><br>
<iframe src=""></iframe>
</body>
</html>
Usted puede tener en cuenta que el formulario puede usar el método post o get
Además para defir textbox
Taller 2 de Formulario
Codigo en Html
<!DOCTYPE html>
<html>
<head>
<title>FORMULARIO</title>
<link rel="stylesheet" type="text/css" href="estilos/FORMULARIO.css">
</head>
<body bgcolor="#81F79F">
<form>
<fieldset>
<legend>Datos Basicos</legend>
<div>
<label for="nombre">Nombre</label>
<input type="text" id="nombre" />
</div>
<div>
<label for="apellidos">Apellidos</label>
<input type="text" id="apellidos" size="50" />
</div>
<div>
<label for="telefono">Telefono</label>
<input type="text" id="dni" size="10" maxlength="9" />
</div>
<div>
<label for="contrasena">Contraseña</label>
<input type="password" id="contrasena" />
</div>
<div>
TALLER DE TABLAS
Código en Html
<!DOCTYPE html>
<html>
<head>
<title>MI TABLA</title>
</head>
<body bgcolor=#82E0AA>
<CENTER><h2> MI TABLA</h2></CENTER>
<table border="2" width="400"cellspacing="4" cellpadding="6">
<caption>Listado de Tg Noche</caption>
<thead>
<tr>
<th>Nombres</th>
<th>Apellidos</th>
<th>No Teléfono</th>
</tr>
</thead>
<tbody>
<tr>
<td> Ines </td>
<td> Castro</td>
<td> 321 346 56 68</td>
</tr>
<tr>
<td> Gloria </td>
<td> Perez</td>
<td> 310 338 56 68</td>
</tr>
</tbody>
</thead>
</body>
</html>
Divisiones o Marcos
Codigo en Html
<!DOCTYPE html>
<html>
<head>
<title> DIVISIONES </title>
</head>
<body>
<hr>
<a href="http://www.sena.edu.co"target="ventana"> MI SENA</a><br>
<a href="https://noticias.caracoltv.com"target="ventana">CARACOL TV</a><br>
<hr>
<iframe src="http://www.pedrocastaneda.net" width="500" height="400"
name="ventana" sandbox="no" frameborder="1">
</iframe>
<iframe width="500" height="400" src="noticia.html" scrolling="0"></iframe>
</body>
</html>
Sonido
La etiqueta que nos sirve en html5 para, colocar sonido a la página web es
<audio>, este nos permite reproducir
Formatos de audio
Formato MP3
Formato OGG
Formato WAV
Atributos de audio
http://recursostic.educacion.es/bancoimagenes/web/
Ejemplo
<audio src=”jazz.mp3”></audio>
<hr>
<audio src="musica/tu..wva" controls autoplay loop>
<p>Tu navegador no implementa el elemento audio</p>
</audio>
<hr>
Ejemplo 2
Etiquette de Video
Fuentes
Existen varias fuentes que usted puede utilizar en ese caso para el ejemplo
usaremos:
Arial rod
Ahoroni tahoma
Batang verdana
Georgia times new roman
Ejemplo:
Alineación