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 HTML5 tag can be used to embed an external application (SWF, PDF) in web page?
<mark> <embed> <canvas>
<embed src="flash_game.swf" width="450" height="350" />
Which CSS pseudo-element adds a special style to the first line of a text?
:first-letter :before :first-line
#id:first-line {
  font-weight: bold;
  color: blue;
}
Click on the window object property which gets or sets the URL of current page.
window.location window.self window.status
var url = window.location;
alert(url);
Indicate the PHP function used to get the contents of a file or page and store it into a string.
fopen() file_put_contents() file_get_contents()
$homepage = file_get_contents("http://coursesweb.net/");
echo $homepage;
Area and Perimeter Calculator for 2D shapes

Last accessed pages

  1. Accesing XML data - E4X (180)
  2. PHP-MySQL free course, online tutorials PHP MySQL code (16642)
  3. RegExp - Regular Expressions in ActionScript (998)
  4. Get Attribute (ID, Class, Name, Title, Src) with jQuery (15559)
  5. PHP getElementById and getElementsByTagName (4998)

Top accessed pages

  1. PHP-MySQL free course, online tutorials PHP MySQL code (16642)
  2. Courses Web: PHP-MySQL JavaScript Ajax HTML CSS Flash-AS3 (16295)
  3. Get Attribute (ID, Class, Name, Title, Src) with jQuery (15559)
  4. Ajax-PHP Chat Script (13716)
  5. PHP PDO - exec (INSERT, UPDATE, DELETE) MySQL (13698)