The script presented in this page is a tool to calculate surface area, perimeter and other dimensions (radius, diagonal, height) of various 2D geometrical shapes: circle, ellipse, triangle, hexagon, parallelogram, rectangle, rhombus, square, trapezoid.
This calculator shows also the mathematical formulas used to calculate the area, perimeter, and the other dimensions.

Calculate Area and Perimeter

JavaScript script to calculate surface area and perimeter.
Find area and perimeter of various 2d geometrical shapes.

Select an object


• To Download this script, click: Area and Perimeter Calculator.
Area and Perimeter Calculator for 2D shapes

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which tag is used to include external CSS file in web page?
<body> <script> <link>
<link href="/templ/style.css" rel="stylesheet" type="text/css" />
Which CSS property sets the text size?
font-weight text-decoration font-size
h2 {
  font-size: 1em;
}
Indicate the JavaScript property that can add HTML code into an element.
text value innerHTML
document.getElementById("someID").innerHTML = "HTML content";
Click on the function that returns the number of characters of a string in PHP.
count() strlen() stristr()
$str = "http://CoursesWeb.net/";
$nr_chr = strlen($str);
echo $nr_chr;       // 22

Last accessed pages

  1. Insert, Select and Update NULL value in MySQL (8107)
  2. Read Excel file data in PHP - PhpExcelReader (27303)
  3. Superglobal $_SERVER Array (1948)
  4. PHP MySQL Introduction, Data Types (2076)
  5. PHP getElementById and getElementsByTagName (9058)

Top accessed pages

  1. Courses Web: PHP-MySQL JavaScript Ajax HTML CSS Flash-AS3 (35543)
  2. PHP-MySQL free course, online tutorials PHP MySQL code (28441)
  3. Read Excel file data in PHP - PhpExcelReader (27303)
  4. Get Attribute (ID, Class, Name, Title, Src) with jQuery (26586)
  5. PHP PDO - exec (INSERT, UPDATE, DELETE) MySQL (23334)