Academic Tutorials



English | French | Portugese | Dutch | Italian
Google

em linha

Home Códigos de fonte E-Livros Downloads Contatar-nos Sobre nós

HTML Tutorials
HTML Tutorial
XHTML Tutorial
CSS Tutorial
TCP/IP Tutorial
XML Tutorials
XML Tutorial
XSL Tutorial
XSLT Tutorial
DTD Tutorial
Schema Tutorial
XForms Tutorial
XSL-FO Tutorial
XML DOM Tutorial
XLink Tutorial
XQuery Tutorial
XPath Tutorial
XPointer Tutorial
RDF Tutorial
SOAP Tutorial
WSDL Tutorial
RSS Tutorial
WAP Tutorial
Web Services Tutorial
Browser Scripting
JavaScript Tutorial
VBScript Tutorial
AJAX Tutorial
DHTML Tutorial
HTML DOM Tutorial
WMLScript Tutorial
E4X Tutorial
Server Scripting
ASP Tutorial
PHP Tutorial
PERL Tutorial
SQL Tutorial
ADO Tutorial
.NET (dotnet)
Microsoft.Net
XML Web Services
ASP.Net
.Net Mobile
C# : C Sharp
ADO.NET
VB.NET
Multimedia
SVG Tutorial
Flash Tutorial
Media Tutorial
SMIL Tutorial
Web Building
Web Browsers
Web Hosting
W3C Tutorial
Web Building
Web Quality
Web Semantic
Web Careers
Java Tutorials
Java Tutorial
JSP Tutorial
Servlets Tutorial
Struts Tutorial
EJB Tutorial
JMS Tutorial
JMX Tutorial
Programming Langauges
C Tutorial
C++ Tutorial
Visual Basic Tutorial
Data Structures Using C
Soft Skills
Communication Skills
Time Management
Project Management
Team Work
Leadership Skills
Corporate Communication
Negotiation Skills


Tabelas do HTML
Previous Next



  • O modelo da tabela do HTML permite que os autores arranjem dados -- texto, texto preformatted, imagens, ligações, formulários, campos do formulário, outras tabelas, etc. -- em fileiras e em colunas das pilhas.


Tabelas
  • As tabelas são definidas com o Tag do <table>.
  • Uma tabela é dividida em fileiras (com o Tag do <tr>), e
  • cada fileira é dividida em pilhas de dados (com o Tag do <td>).
  • O td das letras está para da “os dados tabela,” que são o índice de uma pilha de dados.
  • Uma pilha de dados pode conter o texto, as imagens, as listas, os parágrafos, os formulários, réguas horizontais, tabelas, etc.
<table border="1">
    <tr>
         <td>row 1, cell 1</td>
         <td>row 1, cell 2</td>
    </tr>
    <tr>
         <td>row 2, cell 1</td>
         <td>row 2, cell 2p</td>
    </tr>
</table>



Títulos em uma tabela
Os títulos em uma tabela são definidos com o Tag do <th>.
<table border="1">
    <tr>
         <th>Heading</th>
         <th>Another Heading</th>
    </tr>
    <tr>
         <td>row 1, cell 1</td>
         <td>row 1, cell 2</td>
    </tr>
    <tr>
         <td>row 2, cell 1</td>
         <td>row 2, cell 2p</td>
    </tr>
</table>



Tabelas e o atributo da beira
A tabela estará indicada sem nenhumas beiras se você não especificar um atributo da beira. Às vezes isto pode ser útil, mas na maioria das vezes, você quer mostrar as beiras.
Para indicar uma tabela com beiras, você terá que usar o atributo da beira:
<table border="1">
    <tr>
         <td>row 1, cell 1</td>
         <td>row 1, cell 2</td>
    </tr>
</table>



Medindo fileiras múltiplas e pilhas
Usar rowspan medir fileiras múltiplas & colspan para medir colunas múltiplas.
Para indicar uma tabela com beiras, você terá que usar o atributo da beira:
<table border="1">
    <tr>
         <td>column1</td>
         <td>column2</td>
         <td>column3</td>
    </tr>
    <tr>
         <td rowspan="2">row 1, cell 1</td>
         <td>row 1, cell 2</td>
         <td>row 1, cell 3</td>
    </tr>
    <tr>
         <td>row 2, cell 2</td>
         <td>row 2, cell 3</td>
    </tr>
    <tr>
         <td colspan="3">row 3, cell 1</td>
    </tr>
</table>
O/P:
column1 column2 column3
fileira 1, pilha 1 fileira 1, pilha 2 fileira 1, pilha 3
fileira 2, pilha 2 fileira 2, pilha 3
fileira 3, pilha 1



Estofamento e afastamento da pilha
Você ajusta o espaço branco em suas tabelas com os atributos cellpadding e cellspacing.
O estofamento representa a distância entre beiras da pilha e o índice dentro, quando o afastamento definir a largura da beira.
<table border="1">
    <tr>
         <td >row 1, cell 1</td>
         <td>row 1, cell 2</td>
    </tr>
    <tr>
         <td>row 2, cell 1</td>
         <td>row 2, cell 2</td>
    </tr>
</table>
O/P: Tabela sem estofamento e afastamento da pilha
fileira 1, pilha 1 fileira 1, pilha 2
fileira 2, pilha 1 fileira 2, pilha 2
<table border="1" cellspacing="10">
    <tr>
         <td >row 1, cell 1</td>
         <td>row 1, cell 2</td>
    </tr>
    <tr>
         <td>row 2, cell 1</td>
         <td>row 2, cell 2</td>
    </tr>
</table>
O/P: Tabela com Cellspacing
fileira 1, pilha 1 fileira 1, pilha 2
fileira 2, pilha 1 fileira 2, pilha 2
<table border="1" cellpadding="10">
    <tr>
         <td >row 1, cell 1</td>
         <td>row 1, cell 2</td>
    </tr>
    <tr>
         <td>row 2, cell 1</td>
         <td>row 2, cell 2</td>
    </tr>
</table>
O/P: Tabela com Cellpadding
fileira 1, pilha 1 fileira 1, pilha 2
fileira 2, pilha 1 fileira 2, pilha 2



Previous Next

Keywords:creating html tables, html font color code tables, html help tables, advanced html tables, html tutorial tables


HTML Quizes
HTML Quiz
XHTML Quiz
CSS Quiz
TCP/IP Quiz
XML Quizes
XML Quiz
XSL Quiz
XSLT Quiz
DTD Quiz
Schema Quiz
XForms Quiz
XSL-FO Quiz
XML DOM Quiz
XLink Quiz
XQuery Quiz
XPath Quiz
XPointer Quiz
RDF Quiz
SOAP Quiz
WSDL Quiz
RSS Quiz
WAP Quiz
Web Services Quiz
Browser Scripting Quizes
JavaScript Quiz
VBScript Quiz
AJAX Quiz
DHTML Quiz
HTML DOM Quiz
WMLScript Quiz
E4X Quiz
Server Scripting Quizes
ASP Quiz
PHP Quiz
PERL Quiz
SQL Quiz
ADO Quiz
.NET (dotnet) Quizes
Microsoft.Net Quiz
XML Web Services Quiz
ASP.Net Quiz
.Net Mobile Quiz
C# : C Sharp Quiz
ADO.NET Quiz
VB.NET Quiz
Multimedia Quizes
SVG Quiz
Flash Quiz
Media Quiz
SMIL Quiz
Web Building  Quizes
Web Browsers Quiz
Web Hosting Quiz
W3C Quiz
Web Building Quiz
Web Quality Quiz
Web Semantic Quiz
Web Careers Quiz
Java Quizes
Java Quiz
JSP Quiz
Servlets Quiz
Struts Quiz
EJB Quiz
JMS Quiz
JMX Quiz
Programming Langauges Quizes
C Quiz
C++ Quiz
Visual Basic Quiz
Data Structures Using C Quiz
Soft Skills Quizes
Communication Skills Quiz
Time Management Quiz
Project Management Quiz
Team Work Quiz
Leadership Skills Quiz
Corporate Communication Quiz
Negotiation Skills Quiz

Privacy Policy
Copyright © 2003-2008 Vyom Technosoft Pvt. Ltd., All Rights Reserved.