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 type of <input> creates a color well control for selecting a color value?
type="text" type="color" type="date"
<input type="color" name="get_color" />
Which CSS method rotates the HTML element at a given degree?
scale() translate() rotate()
#some_id:hover {
  transform: rotate(60deg);
  -ms-transform: rotate(60deg);    /* IE 9 */
  -moz-transform: rotate(60deg);   /* Firefox */
}
Click on the function that returns the number with the highest value.
pow() min() max()
var maxn = Math.max(8, 4, 88, 56);
alert(maxn);      // 88
Which function prevent the same file from being included more than once in a page?
include() include_once() require()
include_once("some_file.php");
Area and Perimeter Calculator for 2D shapes

Last accessed pages

  1. PHP MySQL - INSERT INTO (12942)
  2. Select in MySQL, Output results in HTML Table (12517)
  3. Get and change IFrame content through a JavaScript script created in another IFrame (10560)
  4. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (105536)
  5. SHA1 Encrypt data in JavaScript (17703)

Popular pages this month

  1. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (210)
  2. Register and show online users and visitors (134)
  3. PHP-MySQL free course, online tutorials PHP MySQL code (127)
  4. Read Excel file data in PHP - PhpExcelReader (125)
  5. JavaScript Course - Free lessons (106)