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 is used in <img> tag for the address of the image?
href src rel
<img src="http://coursesweb.net/imgs/webcourses.gif" width="191" height="63" alt="Courses-Web" />
Which CSS code hides the element on page?
display: none; display: inline; position: relative;
#id {
  display: none;
}
What instruction stops the execution of a while() or for() statement?
continue prompt() break
for(var i = 0; i< 8; i++) {
  if(i > 1) break;
  alert(i);
}
Indicate the function that can create a constant.
define() include() defined()
define("CONSTANT_NAME", "value");
echo CONSTANT_NAME;
Area and Perimeter Calculator for 2D shapes

Last accessed pages

  1. Read Excel file data in PHP - PhpExcelReader (19947)
  2. PHP MySQL - WHERE and LIKE (8502)
  3. SHA1 Encrypt data in JavaScript (1543)
  4. Display and Visibility (976)
  5. Classes - Interface in ActionScript 3 (976)

Top accessed pages

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