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.

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which attribute specifies the HTTP method (GET, POST) used to submit the form-data?
action method value
<form action="script.php" method="post"> ... </form>
Which CSS property allows to add shadow to boxes?
background-image box-shadow border-radius
#id {
  background-color: #bbfeda;
  box-shadow: 11px 11px 5px #7878da;
}
Which function removes the first element from an array?
pop() push() shift()
var fruits = ["apple", "apricot", "banana"];
fruits.shift();
alert(fruits.length);           // 2
Indicate the function that can be used to check if a PHP extension is instaled.
function() filetype() extension_loaded()
if(extension_loaded("PDO") === true) echo "PDO is available."
Area and Perimeter Calculator for 2D shapes

Last accessed pages

  1. PHP PDO - exec (INSERT, UPDATE, DELETE) MySQL (25899)
  2. HTML Course - Free Lessons (7318)
  3. Convert XML to JSON in JavaScript (10556)
  4. PHP OOP - Final Classes and Methods (2602)
  5. PHPMailer (976)

Top accessed pages

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