Una tabella è un HTML formattazione strumento composto da righe e colonne, chiamate cellule, che possono contenere dati e foto. Una tabella può essere eseguito il rendering diverse larghezze, con il numero di righe e colonne specificate dal progettista del web.
È possibile utilizzare una tabella di tre colonne per creare una pagina web in pochi passi. Si dovrebbe avere una conoscenza di base di HTML e come pubblicare un sito Web su Internet.
Istruzioni
1
Creare un nuovo file nel vostro editor di testo. Denominare il file "index. html."
2
Scrivere il codice HTML per descrivere la tabella che si desidera progettare. Questa tabella di tre colonne saranno 500 pixel di larghezza con un'intestazione dove è possibile visualizzare una foto. Immettere il seguente codice:
< html >
< head >
< title > il tuo titolo qui < / title >
< / head >
< corpo >
< table width = "500" height = "346" border = "1" >
< tr >
<td height="88" colspan="3"><img tells the browser to render a table and "</table>" encloses the data for your table. Any code written after this tag will appear outside the table.
"<tr>" renders a row in the table and "</tr>" closes the row. Any code written after this tag appears outside the row.
"<td> describes what is contained in each cell and "</td>" closes the cell. Rows can contain numerous cells. For example, if you want to render three cells, write three "<td>" elements within your row like this:
<tr>
<td>cell1</td>
<td>cell2</td>
<td>cell3</td>
</tr>
The "colspan" property tells the browser that the cell will span across three columns. This creates the header in our code.
4
Display your own information in the cells by replacing the "Enter your text here" in the code with text or photos. If you wish to display a photo, the photo must be held on a web server so that you can refer to the photo by its URL.
5
Save the file, making sure that it has the ".html" extension.
6
Upload the "index.html" file to your web host's FTP site.