HOME | PHP Tutorial | CSS
facebook icon
AgerNic.com
WEB DEVELOPER SITE, HTML, CSS, PHP
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.

Syntax:

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:
Example 1, How to create CSS table border - examples:
<!DOCTYPE html>
<html>
<head>

<style>
table, th, td {
border: 2px solid darkblue;
}
</style>
</head>

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

<table>
<tr>
<th>FirstName</th>
<th>LastName</th>
</tr>
<tr>
<td>OdPeter</td>
<td>Pascual</td>
</tr>
<tr>
<td>Salwin</td>
<td>Langford</td>
</tr> </table>

</body>
</html>


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

https://www.w3resource.com/css/assigning-property-values-cascading-inheritance/css-assigning-property-values-cascading-inheritance.php

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
https://www.agernic.com/css-tutorial/css-align-content-property-css-align-text-how-to-create.html

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.
https://tutorialehtml.com/en/css-tutorial-class-and-id/

818. CSS Font Families - CSS tutorials - w3resource

https://www.w3resource.com/css/fonts/font-families.php

2708. Selectors - CSS tutorial
EchoEcho.Com : The complete CSS tutorial
http://www.echoecho.com/cssselectors.htm

2232. CSS Tutorial - Font and font families
There are mainly two types of fonts which are: serif and sans serif. There isn
https://tutorialehtml.com/en/css-tutorial-font-and-font-families/

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