HOME | PHP Tutorial | CSS
facebook icon
PHP Tutorial

PHP forms
HTML Tutorial

CSS Tutorial

CSS Table Border

CSS Tutorial » CSS Table

Another way to create table borderis by using CSS, improving the look and feel of the cursor in HTML
The border of the table is added with the property css: border.


table, th, td { border: value;}

We can add CSS Table properties as:
Inline - by using the style attribute in HTML elements
Internal - by using a <style> element in the <head> section
External - by using an external CSS file as style.css
Note: Use external CSS instead.

How to create CSS Table Border - examples

You can try to execute the following code to change CSS table border on this page.
If you like this, you can simply copy the code and paste it on your website.
The example below specifies a black border for <table>, <th>, and <td> elements:

Example 1, How to create CSS table border - examples:
<!DOCTYPE html>

table, th, td {
border: 2px solid darkblue;

<h3 align="center">How to make CSS table border</h3>
<p align="center">Change CSS table on this editor and execute code</p>

</tr> </table>


css table corder, radius, collapse, none, spacing, top, inside, width, table borders color CSS Table Border - css tutorial

808. Specified, computed, and actual values - CSS tutorials - w3resource


3179. CSS align content Property - CSS align text - how to create, css tutorial
CSS align content Property - CSS align text - how to create css tutorial

2227. CSS Tutorial - Class and Id
To set a class of elements that share the same properties, the attribute with the same name will be used. On the other hand, you can also use elements id to add styles but it has some restriction when using it. Go on reading to find out more.

818. CSS Font Families - CSS tutorials - w3resource


2708. Selectors - CSS tutorial
EchoEcho.Com : The complete CSS tutorial

2232. CSS Tutorial - Font and font families
There are mainly two types of fonts which are: serif and sans serif. There isn

Your add here
PHP md5() function

PHP isset() Function

PHP htmlspecialchars() function

PHP strcmp() function

PHP lcfirst() function

PHP implode() function

PHP explode() function

PHP strlen() function

PHP strstr() function

PHP ucfirst() function

PHP similar_text() function

PHP strip_tags() function

PHP count() Function

PHP htmlentities() function

PHP define() function

PHP strrchr() Function

CSS Button
HTML Text Size
PHP Data Types
PHP convert array to string comma separated
PHP if, else and elseif Statements
Home HTML Tutorial