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
What attribute makes the input text box to not be modified by the user?
checked="checked" readonly="readonly" disabled="disabled"
<input type="text" value="fixed-value" readonly="readonly" name="a_name" />
What CSS property allows you to create rounded corners in your webpage design?
background-size border-size border-radius
.class {
  border:2px solid blue;
  border-radius:1.2em;
}
What instruction displays a confirmation dialog box to the viewer, who must then click OK or Cancel to proceed?
indexOf() confirm() prompt()
var ques = window.confirm("The result of 0+0 is 0?");
if (ques) alert("Corect");
else alert("Incorrect");
Indicate the PHP function that returns the lowest number of the parameter values.
floor() ceil() min()
$min_nr = min(12, 8, 25, 13);
echo $min_nr;        // 8
Area and Perimeter Calculator for 2D shapes

Last accessed pages

  1. Drag and Drop with jQuery UI (552)
  2. Star shapes with CSS (363)
  3. Zoomooz - Make Web Page Elements Zoom (144)
  4. jQuery parent, children and nth-child() (946)
  5. Creating objects in ActionScript (546)

Top accessed pages

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