How to define define a table in HTML

How to define define a table in HTML


Introduction

How to define define a table in HTML


techstudy.org

Kindle Paperwhite High Resolution Display Tablet | Rs. 9999

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>www.techstudy.org</title>
  6. </head>
  7. <body>
  8. <table border="1">
  9. <caption>First column holds Employee Name and second column holds Branch of the Employee</caption>
  10. <tr>
  11. <th>Employee Name </th>
  12. <th>Branch of Employee </th>
  13. </tr>
  14. <tr>
  15. <td>David</td>
  16. <td>IT</td>
  17. </tr>
  18. <tr>
  19. <td>John</td>
  20. <td>CIVIL</td>
  21. </tr>
  22. <tr>
  23. <td>MAYA</td>
  24. <td>Mechanical</td>
  25. </tr>
  26.  
  27. </table
  28. </body>
  29. </html>

Result

html excercise techstudy.org

     





Related Topics



Responses




Popular Posts

Facebook

Founded in 2016, Tech Study passionately delivers stylish and dynamic innovative information to programmer and technology lovers. http://www.techstudy.org/.