HTML DATA FILE FORMAT

 

HTML  (Hypertext Markup Language)  is the predominant markup language for web pages. It provides a means to describe the structure of text-based information in a document (denoting certain text as headings, paragraphs, lists, and so on) and to supplement that text with interactive forms, embedded images, and other objects. HTML is written in the form of labels (known as tags), surrounded by angle brackets.

 

HTML is an application of SGML according to the international standard ISO 8879. XHTML is a reformulation of HTML 4 as an XML application 1.0, and allows compatibility with user agents already admitted HTML 4 following a set of rules.

 

The basic HTML tags  are: 

 

 The format explained above corresponds to an HTML page is :

 

<HTML>

      <HEAD>

       ...

      </HEAD>

      <BODY>

      ....

          <TABLE>

          ...

         </TABLE>

       ...

      </BODY>

</HTML>

 

 

Tag <TABLE>

 

The HTML table model allows authors to arrange data -- text, preformatted text, images, links, forms, form fields, other tables, etc. -- into rows and columns of cells.

 

Tables are defined with the <table> tag. A table is divided into rows (with the <tr> tag), and each row is divided into data cells (with the <td> tag). The letters td stands for "table data," which is the content of a data cell. A data cell can contain text, images, lists, paragraphs, forms, horizontal rules, tables, etc.

 

Different Tags which will define the structure of the table for obtaining a valid data file are:

 

 

The HTML format valid to Keel is the following:

 

<table>

<tr>

<th>Header 1</th>

<th>Header 2</th>

<th>Header 3</th>

</tr>

<tr>

<td>Value 1</td>

<td>Value 2</td>

<td>Value 3</td>

</tr>

<tr>

<td>Value 4</td>

<td>Value 5</td>

<td>Value 6</td>

</tr>

</table>

 

One example of a valid HTML file is the following:

 

<html>

<head>

<h1 align="center">VEHICLES</h1>

</head>

<body>

<table border="1" cellspacing="1" cellpadding="0">

<tr align="center">

<td>Month</td>

<td>Week</td>

<td>Vehicle</td>

<td>Amount</td>

</tr>

<tr>

<td>January</td>

<td>1</td>

<td>Car</td>

<td>105.0</td>

</tr>

<tr>

<td>January</td>

<td>1</td>

<td>Truck</td>

<td>1.05</td>

</tr>

<tr>

<td>January</td>

<td>1</td>

<td>MotorBike</td>

<td>1.575</td>

</tr>

<tr>

<td>January</td>

<td>1</td>

<td>Car</td>

<td>2.1</td>

</tr>

</table>

</body>

</html>