{"id":5828,"date":"2024-01-11T16:40:00","date_gmt":"2024-01-11T16:40:00","guid":{"rendered":"https:\/\/codehim.com\/?p=5828"},"modified":"2024-01-22T14:45:08","modified_gmt":"2024-01-22T09:45:08","slug":"html-code-for-scientific-calculator","status":"publish","type":"post","link":"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/","title":{"rendered":"HTML Code for Scientific Calculator"},"content":{"rendered":"<p>This vanilla JavaScript code snippet helps you to create a scientific calculator in your HTML projects. It comes with all necessary functions to perform scientific calculations on numbers. Besides addition, subtraction, multiplication, and division, users can also find the the values of exponents, log, natural log (ln), trig functions.<\/p>\n<p>Basically, this scientific calculator built with HTML, CSS, and JavaScript. So, it can be highly customizable with additional CSS to make it according to your needs. <\/p>\n<h2> HTML Code for Scientific Calculator <\/h2>\n<p>1. In first step, create the HTML structure for scientific calculator as follows:<\/p>\n<pre class=\"prettyprint linenums lang-html\">\r\n&lt;div class=\"calculator\"&gt;\r\n        &lt;input type=\"text\" id=\"screen\" maxlength=\"20\"&gt;\r\n        &lt;div class=\"calc-buttons\"&gt;\r\n\r\n&lt;div class=\"functions-one\"&gt;\r\n    &lt;button class=\"button triggers\"&gt;C&lt;\/button&gt;\r\n    &lt;button class=\"button basic-stuff\"&gt;(&lt;\/button&gt;\r\n    &lt;button class=\"button basic-stuff\"&gt;)&lt;\/button&gt;\r\n    &lt;button class=\"button numbers\"&gt;7&lt;\/button&gt;\r\n    &lt;button class=\"button numbers\"&gt;8&lt;\/button&gt;\r\n    &lt;button class=\"button numbers\"&gt;9&lt;\/button&gt;\r\n    &lt;button class=\"button numbers\"&gt;4&lt;\/button&gt;\r\n    &lt;button class=\"button numbers\"&gt;5&lt;\/button&gt;\r\n    &lt;button class=\"button numbers\"&gt;6&lt;\/button&gt;\r\n    &lt;button class=\"button numbers\"&gt;1&lt;\/button&gt;\r\n    &lt;button class=\"button numbers\"&gt;2&lt;\/button&gt;\r\n    &lt;button class=\"button numbers\"&gt;3&lt;\/button&gt;\r\n    &lt;button class=\"button basic-stuff\"&gt;\u00b1&lt;\/button&gt;\r\n    &lt;button class=\"button numbers\"&gt;0&lt;\/button&gt;\r\n    &lt;button class=\"button basic-stuff\"&gt;.&lt;\/button&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;div class=\"functions-two\"&gt;\r\n    &lt;button class=\"button triggers\"&gt;&#60;=&lt;\/button&gt;\r\n    &lt;button class=\"button complex-stuff\"&gt;%&lt;\/button&gt;\r\n    &lt;button class=\"button complex-stuff\"&gt;x !&lt;\/button&gt;\r\n    &lt;button class=\"button complex-stuff\"&gt;x^&lt;\/button&gt;\r\n    &lt;button class=\"button basic-stuff\"&gt;*&lt;\/button&gt;\r\n    &lt;button class=\"button basic-stuff\"&gt;\/&lt;\/button&gt;\r\n    &lt;button class=\"button complex-stuff\"&gt;ln&lt;\/button&gt;\r\n    &lt;button class=\"button complex-stuff\"&gt;e&lt;\/button&gt;\r\n    &lt;button class=\"button basic-stuff\"&gt;+&lt;\/button&gt;\r\n    &lt;button class=\"button complex-stuff\"&gt;x \u00b2&lt;\/button&gt;\r\n    &lt;button class=\"button complex-stuff\"&gt;log&lt;\/button&gt;\r\n    &lt;button class=\"button complex-stuff\"&gt;cos&lt;\/button&gt;\r\n    &lt;button class=\"button basic-stuff\"&gt;-&lt;\/button&gt;\r\n    &lt;button class=\"button complex-stuff\"&gt;\u221a&lt;\/button&gt;\r\n    &lt;button class=\"button complex-stuff\"&gt;sin&lt;\/button&gt;\r\n    &lt;button class=\"button complex-stuff\"&gt;tan&lt;\/button&gt;\r\n    &lt;button class=\"button triggers\"&gt;=&lt;\/button&gt;\r\n    &lt;button class=\"button complex-stuff\"&gt;&#x003C0;&lt;\/button&gt;\r\n    &lt;button class=\"button complex-stuff\"&gt;\u2218&lt;\/button&gt;\r\n    &lt;button class=\"button complex-stuff\"&gt;rad&lt;\/button&gt;\r\n&lt;\/div&gt;\r\n      &lt;\/div&gt;\r\n&lt;\/div&gt;\r\n<\/pre>\n<p>2. After that, style the calculator using the following CSS. <\/p>\n<pre class=\"prettyprint linenums lang-css\">\r\n.calculator {\r\nmax-width: 530px;\r\nbackground-color: beige;\r\npadding: 20px;\r\nborder-radius: 10px;\r\nmargin: 10px auto;\r\n}\r\ninput[type=text] {\r\nwidth: 315px;\r\n    height: 25px;\r\n    border-radius: 5px;\r\n    border: 0px;\r\n    background-color: #333333;\r\n    color: #d9d9d9;\r\n    padding: 0 5px 0 5px;\r\n    margin: 0 0px 10px 84px;\r\n\r\n}\r\n.calc-buttons {\r\n    display: flex;\r\nflex-wrap: wrap;\r\njustify-content: space-between;\r\n\r\n}\r\n.button {\r\n   margin: 3px;\r\nwidth: 63px;\r\nborder: none;\r\nheight: 25px;\r\nborder-radius: 4px;\r\ncolor: #000000;\r\ncursor: pointer;\r\n}\r\nbutton:hover {\r\n  background-color: hsla(180, 100%, 40%, 0.3);\r\n  transition: .2s;\r\n}\r\n.functions-one {\r\n    width: 210px;\r\n    display: flex;\r\n    flex-wrap: wrap;\r\n    justify-content: space-evenly;\r\n}\r\n\r\n.functions-two {\r\nwidth: 280px;\r\n    display: flex;\r\n    flex-wrap: wrap;\r\n    justify-content: space-between;\r\n}\r\n.triggers {\r\n    background-color: #ffc266;\r\n}\r\n.numbers {\r\n    background-color: #999999;\r\n}\r\n.basic-stuff {\r\n    background-color: #80d4ff;\r\n}\r\n\r\n.complex-stuff {\r\n    background-color: #80ffff;\r\n}\r\n<\/pre>\n<p>3. Finally, add the following JavaScript program for  Scientific Calculator calculator and done.<\/p>\n<pre class=\"prettyprint linenums lang-js\">\r\nvar display = document.getElementById(\"screen\");\r\nvar buttons = document.getElementsByClassName(\"button\");\r\n  \r\n  Array.prototype.forEach.call(buttons, function(button) {\r\n  button.addEventListener(\"click\", function() {\r\n    if (button.textContent != \"=\" && \r\n    button.textContent != \"C\" && \r\n    button.textContent != \"x\" && \r\n    button.textContent != \"\u00f7\" && \r\n    button.textContent != \"\u221a\" && \r\n    button.textContent != \"x \u00b2\" && \r\n    button.textContent != \"%\" && \r\n    button.textContent != \"&lt;=\" && \r\n    button.textContent != \"\u00b1\" && \r\n    button.textContent != \"sin\" && \r\n    button.textContent != \"cos\" && \r\n    button.textContent != \"tan\" && \r\n    button.textContent != \"log\" && \r\n    button.textContent != \"ln\" && \r\n    button.textContent != \"x^\" && \r\n    button.textContent != \"x !\" && \r\n    button.textContent != \"\u03c0\" && \r\n    button.textContent != \"e\" && \r\n    button.textContent != \"rad\" \r\n    && button.textContent != \"\u2218\") {\r\n      display.value += button.textContent;\r\n    } else if (button.textContent === \"=\") {\r\n      equals();\r\n    } else if (button.textContent === \"C\") {\r\n      clear();\r\n    } else if (button.textContent === \"x\") {\r\n      multiply();\r\n    } else if (button.textContent === \"\u00f7\") {\r\n      divide();\r\n    } else if (button.textContent === \"\u00b1\") {\r\n      plusMinus();\r\n    } else if (button.textContent === \"&lt;=\") {\r\n      backspace();\r\n    } else if (button.textContent === \"%\") {\r\n      percent();\r\n    } else if (button.textContent === \"\u03c0\") {\r\n      pi();\r\n    } else if (button.textContent === \"x \u00b2\") {\r\n      square();\r\n    } else if (button.textContent === \"\u221a\") {\r\n      squareRoot();\r\n    } else if (button.textContent === \"sin\") {\r\n      sin();\r\n    } else if (button.textContent === \"cos\") {\r\n      cos();\r\n    } else if (button.textContent === \"tan\") {\r\n      tan();\r\n    } else if (button.textContent === \"log\") {\r\n      log();\r\n    } else if (button.textContent === \"ln\") {\r\n      ln();\r\n    } else if (button.textContent === \"x^\") {\r\n      exponent();\r\n    } else if (button.textContent === \"x !\") {\r\n      factorial();\r\n    } else if (button.textContent === \"e\") {\r\n      exp();\r\n    } else if (button.textContent === \"rad\") {\r\n      radians();\r\n    } else if (button.textContent === \"\u2218\") {\r\n      degrees();\r\n    }\r\n  });\r\n});\r\n\r\n\r\nfunction syntaxError() {\r\n  if (eval(display.value) == SyntaxError || eval(display.value) == ReferenceError || eval(display.value) == TypeError) {\r\n    display.value == \"Syntax Error\";\r\n  }\r\n}\r\n\r\n\r\nfunction equals() {\r\n  if ((display.value).indexOf(\"^\") &gt; -1) {\r\n    var base = (display.value).slice(0, (display.value).indexOf(\"^\"));\r\n    var exponent = (display.value).slice((display.value).indexOf(\"^\") + 1);\r\n    display.value = eval(\"Math.pow(\" + base + \",\" + exponent + \")\");\r\n  } else {\r\n    display.value = eval(display.value)\r\n    checkLength()\r\n    syntaxError()\r\n  }\r\n}\r\n\r\nfunction clear() {\r\n  display.value = \"\";\r\n}\r\n\r\nfunction backspace() {\r\n  display.value = display.value.substring(0, display.value.length - 1);\r\n}\r\n\r\nfunction multiply() {\r\n  display.value += \"*\";\r\n}\r\n\r\nfunction divide() {\r\n  display.value +=  \"\/\";\r\n}\r\n\r\nfunction plusMinus() {\r\n  if (display.value.charAt(0) === \"-\") {\r\n    display.value = display.value.slice(1);\r\n  } else {\r\n    display.value = \"-\" + display.value;\r\n  }\r\n}\r\n\r\nfunction factorial() {\r\n  var number = 1;\r\n  if (display.value === 0) {\r\n    display.value = \"1\";\r\n  } else if (display.value &lt; 0) {\r\n    display.value = \"undefined\";\r\n  } else {\r\n    var number = 1;\r\n    for (var i = display.value; i &gt; 0; i--) {\r\n      number *=  i;\r\n    }\r\n    display.value = number;\r\n  }\r\n}\r\n\r\nfunction pi() {\r\n  display.value = (display.value * Math.PI);\r\n}\r\n\r\nfunction square() {\r\n  display.value = eval(display.value * display.value);\r\n}\r\n\r\nfunction squareRoot() {\r\n  display.value = Math.sqrt(display.value);\r\n}\r\n\r\nfunction percent() {\r\n  display.value = display.value \/ 100;\r\n}\r\n\r\nfunction sin() {\r\n  display.value = Math.sin(display.value);\r\n}\r\n\r\nfunction cos() {\r\n  display.value = Math.cos(display.value);\r\n}\r\n\r\nfunction tan() {\r\n  display.value = Math.tan(display.value);\r\n}\r\n\r\nfunction log() {\r\n  display.value = Math.log10(display.value);\r\n}\r\n\r\nfunction ln() {\r\n  display.value = Math.log(display.value);\r\n}\r\n\r\nfunction exponent() {\r\n  display.value += \"^\";\r\n}\r\n\r\nfunction exp() {\r\n  display.value = Math.exp(display.value);\r\n}\r\n\r\nfunction radians() {\r\n  display.value = display.value * (Math.PI \/ 180);\r\n}\r\n\r\nfunction degrees() {\r\n  display.value = display.value * (180 \/ Math.PI);\r\n}\r\n<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully created a scientific calculator. If you have any questions or suggestions, let me know by comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This vanilla JavaScript code snippet helps you to create a scientific calculator in your HTML projects. It comes with all&#8230;<\/p>\n","protected":false},"author":1,"featured_media":5863,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[63],"tags":[216],"class_list":["post-5828","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-html5-css3","tag-calculator"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>HTML Code for Scientific Calculator &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a HTML code snippet for scientific calculator styled with CSS. You can view demo and download code snippet.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HTML Code for Scientific Calculator &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a HTML code snippet for scientific calculator styled with CSS. You can view demo and download code snippet.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/\" \/>\n<meta property=\"og:site_name\" content=\"CodeHim\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codehimofficial\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-11T16:40:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T09:45:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2021\/12\/html-code-for-scientific-calculator.png\" \/>\n\t<meta property=\"og:image:width\" content=\"637\" \/>\n\t<meta property=\"og:image:height\" content=\"479\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Asif Mughal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:site\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Asif Mughal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"HTML Code for Scientific Calculator\",\"datePublished\":\"2024-01-11T16:40:00+00:00\",\"dateModified\":\"2024-01-22T09:45:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/\"},\"wordCount\":142,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2021\/12\/html-code-for-scientific-calculator.png\",\"keywords\":[\"Calculator\"],\"articleSection\":[\"HTML5 &amp; CSS3\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/\",\"url\":\"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/\",\"name\":\"HTML Code for Scientific Calculator &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2021\/12\/html-code-for-scientific-calculator.png\",\"datePublished\":\"2024-01-11T16:40:00+00:00\",\"dateModified\":\"2024-01-22T09:45:08+00:00\",\"description\":\"Here is a HTML code snippet for scientific calculator styled with CSS. You can view demo and download code snippet.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2021\/12\/html-code-for-scientific-calculator.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2021\/12\/html-code-for-scientific-calculator.png\",\"width\":637,\"height\":479,\"caption\":\"HTML Code for Scientific Calculator\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"HTML5 &amp; CSS3\",\"item\":\"https:\/\/codehim.com\/category\/html5-css3\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"HTML Code for Scientific Calculator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codehim.com\/#website\",\"url\":\"https:\/\/codehim.com\/\",\"name\":\"CodeHim\",\"description\":\"Web Design Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"alternateName\":\"Web Design Codes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codehim.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codehim.com\/#organization\",\"name\":\"CodeHim - Web Design Code & Scripts\",\"url\":\"https:\/\/codehim.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"contentUrl\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"width\":280,\"height\":280,\"caption\":\"CodeHim - Web Design Code & Scripts\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/codehimofficial\",\"https:\/\/x.com\/CodeHimOfficial\",\"https:\/\/www.instagram.com\/codehim\/\",\"https:\/\/www.linkedin.com\/company\/codehim\",\"https:\/\/co.pinterest.com\/codehim\/\",\"https:\/\/www.youtube.com\/@codehim\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\",\"name\":\"Asif Mughal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"caption\":\"Asif Mughal\"},\"description\":\"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.\",\"sameAs\":[\"https:\/\/codehim.com\"],\"url\":\"https:\/\/codehim.com\/author\/asif-mughal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HTML Code for Scientific Calculator &#8212; CodeHim","description":"Here is a HTML code snippet for scientific calculator styled with CSS. You can view demo and download code snippet.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/","og_locale":"en_US","og_type":"article","og_title":"HTML Code for Scientific Calculator &#8212; CodeHim","og_description":"Here is a HTML code snippet for scientific calculator styled with CSS. You can view demo and download code snippet.","og_url":"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-11T16:40:00+00:00","article_modified_time":"2024-01-22T09:45:08+00:00","og_image":[{"width":637,"height":479,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2021\/12\/html-code-for-scientific-calculator.png","type":"image\/png"}],"author":"Asif Mughal","twitter_card":"summary_large_image","twitter_creator":"@CodeHimOfficial","twitter_site":"@CodeHimOfficial","twitter_misc":{"Written by":"Asif Mughal","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"HTML Code for Scientific Calculator","datePublished":"2024-01-11T16:40:00+00:00","dateModified":"2024-01-22T09:45:08+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/"},"wordCount":142,"commentCount":4,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2021\/12\/html-code-for-scientific-calculator.png","keywords":["Calculator"],"articleSection":["HTML5 &amp; CSS3"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/","url":"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/","name":"HTML Code for Scientific Calculator &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2021\/12\/html-code-for-scientific-calculator.png","datePublished":"2024-01-11T16:40:00+00:00","dateModified":"2024-01-22T09:45:08+00:00","description":"Here is a HTML code snippet for scientific calculator styled with CSS. You can view demo and download code snippet.","breadcrumb":{"@id":"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2021\/12\/html-code-for-scientific-calculator.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2021\/12\/html-code-for-scientific-calculator.png","width":637,"height":479,"caption":"HTML Code for Scientific Calculator"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/html5-css3\/html-code-for-scientific-calculator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"HTML5 &amp; CSS3","item":"https:\/\/codehim.com\/category\/html5-css3\/"},{"@type":"ListItem","position":3,"name":"HTML Code for Scientific Calculator"}]},{"@type":"WebSite","@id":"https:\/\/codehim.com\/#website","url":"https:\/\/codehim.com\/","name":"CodeHim","description":"Web Design Code Snippets","publisher":{"@id":"https:\/\/codehim.com\/#organization"},"alternateName":"Web Design Codes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codehim.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codehim.com\/#organization","name":"CodeHim - Web Design Code & Scripts","url":"https:\/\/codehim.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/","url":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","contentUrl":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","width":280,"height":280,"caption":"CodeHim - Web Design Code & Scripts"},"image":{"@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codehimofficial","https:\/\/x.com\/CodeHimOfficial","https:\/\/www.instagram.com\/codehim\/","https:\/\/www.linkedin.com\/company\/codehim","https:\/\/co.pinterest.com\/codehim\/","https:\/\/www.youtube.com\/@codehim"]},{"@type":"Person","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed","name":"Asif Mughal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","caption":"Asif Mughal"},"description":"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.","sameAs":["https:\/\/codehim.com"],"url":"https:\/\/codehim.com\/author\/asif-mughal\/"}]}},"views":30109,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/5828","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/comments?post=5828"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/5828\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/5863"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=5828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=5828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=5828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}