HTML - Basic Statements

Okay, I started these blog entries for improve my English. So, if I make some mistakes, please tell me.

First of all, HTML are the abbreviation of HyperText Markup Language. It's the basic element of a webpage, which defines the structure and the content of it.

All html files have a ".html" extension, and the structure is made by tags.
For example: <br/>

A tag represents something, for example "<br/>" means "line break".
Some tags may contain child tags or text content.
For example:
<p>Hello world. <br/> This are a paragraph with 2 text lines.</p>

If it file is saved and opened with a browser, the following is displayed:
Hello world.
This are a paragraph with 2 text lines.

There are some common tags:
<b>bold</b>
<u>underlined</u>
<i>italics</i>
<hr/> horizontal separation rule

To create a link to another web we have the anchor tag:
<a href="http://google.com">Go to Google</a>

Anchor tag may contains different attributes such as "href". This indicates wich webpage is going to go.

For example, if we have a file named contact.html, we can create a link like this:
<a href="contact.html">Contact</a>

The structure of a html file is this:
<!doctype html>
<html>
   <head>
        ... configuration tags
   </head>

   <body>
       ... structure and content
   </body>
</html>

"doctype" is used to define how the file is rendered. Some older browsers need this to display the website correctly.
"head" contains configuration tags, such as the title of the web or references to styling files.
For example:
<title>Home - Wikipedia</title>

Finally the "body" tag contains all the display elements.

Comentarios

Entradas populares de este blog

Test de Personalidad del Dr. Gary Smalley

Control de Objetos en Memoria