Write an html code to find the area of an equilateral triangle
Answers
Answered by
2
HTML IS NOT A PROGRAMMING LANGUAGE THEREFORE WE CANT CALCULATE ANYTHING USING HTML CODE....
if required JavaScript .. here it is
var field = parseInt(document.querySelector("#name").value);
document.write(field*Math.sqrt(3));
Answered by
5
<HTML>
<Head>
<Title>
Area of an equilateral triangle.
</Title>
<Body bgcolor="Pink" textcolor="violet">
<p> Equilateral triangle is a triangle in which the length of all the sides of a triangle is equal. So, if we assume, the length of all the sides as, a then its base is a and height is √2a/2. And we can calculate the area by using the formula, 1/2×base×height.</p>
The area of the triangle is:<br>
1/2×√2a/2×a,br>
=√3a²/4<br>
</Body>
</Head>
</HTML>
Similar questions
World Languages,
5 months ago
English,
5 months ago
Science,
5 months ago
English,
10 months ago
Psychology,
10 months ago