Formatear Texto HTML
Dentro del elemento body, elemento tabla, elemento div, etc, usted puede colocar
cualquier texto dentro de esos elementos. Dentro de esos elementos usted simplemente
puede empezar a escribir y cuando llame a la página web el texto dentro del elemento
será renderizado.
Vamos a hacer un ejemplo.
<html>
<head>
<title>Texto HTML</title>
</head>
<body>
Podemos escribir cualquier texto aquí.
</body>
</html>
Para renderizar el texto en negrita podríamos envolver el texto usando los siguientes
Tags de apertura y cierre
<b></b>. Si no cierra el comando
</b> todo el texto
siguiente al comando de apertura dentro del mismo elemento será en negrita. A menos
que usted introduzca un nuevo elemento. Vamos a continuar con nuestro ejemplo. Vamos
a hacer nuestro Texto Negrita.
<html>
<head>
<title>Texto Negrita HTML</title>
</head>
<body>
<b>Podemos escribir cualquier
texto aquí.</b>
</body>
</html>
o
<html>
<head>
<title>Texto Negrita HTML</title>
</head>
<body>
Podemos escribir cualquier
<b>texto</b> aquí.
</body>
</html>
Para subrayar el texto usted envolvería el texto en Tags
<u></u> y para renderizar el texto
en cursiva envolvería el texto usando los Tags
<i></i>. También puede utilizar, por supuesto, una combinación de los 3 elementos.
<html>
<head>
<title>Texto Negrita, Cursiva,
Subrayar HTML</title>
</head>
<body>
<u>Puede escribir cualquier
<b>texto</b></u><i> aquí.</i>
</body>
</html>
|
|