Category HTML

How to Style HTML Elements

An example of setting background color for elements in HTML

In this tutorial, we will learn how to style HTML elements through various examples. Each HTML element come with default style, such as a white background and black text color. To customize these elements beyond their default appearance, we can…

Table Headers in HTML

An example of a header for multiple rows in HTML table

Table headers in HTML contain the titles of column or row, which help to describe the data presented in the table. These headers are marked up using <th> (table header) elements, which go inside the <tr> (table row) element. Each…

HTML Table Size: Width and Height

Setting height of a specific row in an HTML table

The size of an HTML table refers to its dimensions, specifically its width and height of columns and rows. We can create a table in HTML of different size for each column, each row, or for the entire table. It…

HTML Table Borders

An example of setting background color of HTML table

In this tutorial, we will learn how to add borders around an HTML table of different styles and shapes. Borders are the outlines of a table and also frame each individual cell within the table. CSS provides a border property…

Table in HTML (with Examples)

An example of adding border to a table in HTML using border property of CSS

When we arrange data in a tabular form, i.e. in the form of rows and columns, it is called table. A table in HTML displays the data or information in rows and columns on a web page. They are an…