It's all about coding,html,creating and fun Take the note of the source code below and Use the code in anwriter app for the result and create and learn how to make calculator watch our more short videos and learn more
IMPORTANT NOTE:-
Use angle bracket instead of (-) in every sentence ending and starting
html
head
title
HTML Calculator
/title
style type="text/css"
form
{font-size:px;color:blue;margin-left:px;}
a{margin-left:140px;}
/style
/head
body bgcolor= "black"
form name="calculator"
-input type=
"textfield"
name="ans"style="margin-left:100px;"-
br
a
input type="reset" value="Reset"
input type="button" value="%" onClick="document.calculator.ans.value+='%'"
input type="button" value="/" onClick="document.calculator.ans.value+='/'"
br
a
input type="button" value="1" onClick="document.calculator.ans.value+='1'"
input type="button" value="2" onClick="document.calculator.ans.value+='2'"
input type="button" value="3" onClick="document.calculator.ans.value+='3'"
input type="button" value="*" onClick="document.calculator.ans.value+='*'"
br
a
input type="button" value="4" onClick="document.calculator.ans.value+='4'"
input type="button" value="5" onClick="document.calculator.ans.value+='5'"
input type="button" value="6" onClick="document.calculator.ans.value+='6'"
input type="button" value="-" onClick="document.calculator.ans.value+='-'"
br
a
input type="button" value="7" onClick="document.calculator.ans.value+='7'"
input type="button" value="8" onClick="document.calculator.ans.value+='8'"
input type="button" value="9" onClick="document.calculator.ans.value+='9'"
input type="button" value="+" onClick="document.calculator.ans.value+='+'"
br
a
input type="button" value="0" onClick="document.calculator.ans.value+='0'"style="margin-left:25px;"
-input type="button" value="=" onClick="document.calculator.ans.value=eval(document.calculator.ans.value)
"style="margin-left:25px;"-
/a
/a
/a
/a
/a
/form
/body
/html