{"id":5834,"date":"2024-01-11T16:40:00","date_gmt":"2024-01-11T16:40:00","guid":{"rendered":"https:\/\/codehim.com\/?p=5834"},"modified":"2024-01-22T14:43:10","modified_gmt":"2024-01-22T09:43:10","slug":"free-calculator-html-code","status":"publish","type":"post","link":"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/","title":{"rendered":"Free Calculator HTML Code"},"content":{"rendered":"<p>Do you want to create a simple calculator in HTML? well, this free code snippet helps you to create a calculator in HTML, CSS, and JavaScript. It comes with a stylish interface to perform calculations on numbers.<\/p>\n<h2>Create HTML code for Calculator<\/h2>\n<p>1. In the first step, create the HTML code for the calculator as follows:<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;div class=\"container calculator\"&gt;\r\n    &lt;div class=\"screen-item screen\"&gt; &lt;span&gt;screen&lt;\/span&gt;&lt;\/div&gt;\r\n    &lt;dl class=\"touche__box\"&gt;\r\n      &lt;dt class=\"clear-item\"&gt; &lt;span&gt;clear&lt;\/span&gt;&lt;\/dt&gt;\r\n      &lt;dt class=\"touche__box-item\"&gt; &lt;span class=\"soustraction\"&gt;_&lt;\/span&gt;&lt;\/dt&gt;\r\n      &lt;dt class=\"touche__box-item\"&gt;&lt;span class=\"sign\"&gt;+&lt;\/span&gt;&lt;\/dt&gt;\r\n      &lt;dt class=\"touche__box-item clearme\"&gt; &lt;span&gt;7&lt;\/span&gt;&lt;\/dt&gt;\r\n      &lt;dt class=\"touche__box-item\"&gt; &lt;span&gt;8&lt;\/span&gt;&lt;\/dt&gt;\r\n      &lt;dt class=\"touche__box-item\"&gt; &lt;span&gt;9&lt;\/span&gt;&lt;\/dt&gt;\r\n      &lt;dt class=\"touche__box-item\"&gt;&lt;span class=\"sign\"&gt;\/&lt;\/span&gt;&lt;\/dt&gt;\r\n      &lt;dt class=\"touche__box-item\"&gt; &lt;span&gt;4&lt;\/span&gt;&lt;\/dt&gt;\r\n      &lt;dt class=\"touche__box-item\"&gt; &lt;span&gt;5&lt;\/span&gt;&lt;\/dt&gt;\r\n      &lt;dt class=\"touche__box-item\"&gt; &lt;span&gt;6&lt;\/span&gt;&lt;\/dt&gt;\r\n      &lt;dt class=\"touche__box-item\"&gt;&lt;span class=\"sign\"&gt;x&lt;\/span&gt;&lt;\/dt&gt;\r\n      &lt;dt class=\"touche__box-item\"&gt; &lt;span&gt;1&lt;\/span&gt;&lt;\/dt&gt;\r\n      &lt;dt class=\"touche__box-item\"&gt; &lt;span&gt;2&lt;\/span&gt;&lt;\/dt&gt;\r\n      &lt;dt class=\"touche__box-item\"&gt; &lt;span&gt;3&lt;\/span&gt;&lt;\/dt&gt;\r\n      &lt;dt class=\"equal-item\"&gt;&lt;span class=\"sign-equal\"&gt;=&lt;\/span&gt;&lt;\/dt&gt;\r\n      &lt;dt class=\"touche__box-item zero-item\"&gt; &lt;span&gt;0&lt;\/span&gt;&lt;\/dt&gt;\r\n      &lt;dt class=\"touche__box-item un-item\"&gt;&lt;span class=\"sign\"&gt;.&lt;\/span&gt;&lt;\/dt&gt;\r\n    &lt;\/dl&gt;\r\n&lt;\/div&gt;  \r\n<\/pre>\n<p>2. After that, create the CSS styles for the calculator. You can add your own CSS properties to customize the calculator interface.<\/p>\n<pre class=\"prettyprint linenums lang-css\">.calculator {\r\n  width: 408px;\r\n  height: 837px;\r\n  margin: 10px auto;\r\n  position: relative;\r\n  color: #fff;\r\n  font-size: 3em;\r\n}\r\n.screen-item {\r\n  position: absolute;\r\n  width: 352px;\r\n  height: 90px;\r\n    line-height: 90px;\r\n  background: #ff7f24;\r\n  border: 1px solid #fff;\r\n  top: 0px;\r\n  left: 28px;\r\n  text-align: right;\r\n  \r\n}\r\n.screen-item span {\r\n  position: absolute;\r\n  top: 50%;\r\n  left: 50%;\r\n  transform: translateX(-50%) translateY(-50%);\r\n}\r\n.screen-item .error {\r\n  color: #f00;\r\n  border: 1px solid;\r\n\/* padding: 10px 60px; *\/\r\n  border-radius: 5px;\r\n  display: block;\r\n  width: 73%;\r\n  font-size: 1em;\r\n  text-align: center;\r\n  font-weight: bold;\r\n  background: #fff;\r\n  font-size: 0.8em;\r\n  padding: 20px 11px;\r\n  line-height: 1.2;\r\n}\r\n.touche__box {\r\n  position: relative;\r\n  top: 91px;\r\n  left: 27px;\r\n}\r\n.touche__box span {\r\n  width: 100%;\r\n  height: 100%;\r\n  display: block;\r\n  text-indent: 29px;\r\n  line-height: 2.1;\r\n}\r\n.touche__box span.soustraction {\r\n  line-height: 1.5;\r\n}\r\n.touche__box .touche__box-item {\r\n  width: 85px;\r\n  height: 96px;\r\n  background-color: #ffd6d6;\r\n  font-weight: bold;\r\n  color: #ff7f24;\r\n  float: left;\r\n  position: relative;\r\n  margin: 2px;\r\n}\r\n.touche__box .clear-item {\r\n  width: 173px;\r\n  height: 95px;\r\n  background: #53e4ed;\r\n  border: 1px solid #fff;\r\n  float: left;\r\n  position: relative;\r\n  margin: 2px;\r\n}\r\n.touche__box .clear-item span {\r\n  text-indent: 35px;\r\n  line-height: 1.99;\r\n}\r\n.touche__box .zero-item {\r\n  width: 174px;\r\n  height: 96px;\r\n}\r\n.touche__box .zero-item span {\r\n  text-indent: 79px;\r\n}\r\n.touche__box .zero-item,\r\n.touche__box .un-item {\r\n  position: relative;\r\n  margin-top: -97px;\r\n}\r\n.touche__box .equal-item {\r\n  width: 85px;\r\n  height: 96px;\r\n  background-color: #ea2131;\r\n  float: left;\r\n  position: relative;\r\n  margin: 2px;\r\n  height: 194px;\r\n}\r\n.touche__box .equal-item span {\r\n  line-height: 4;\r\n}\r\n.touche__box .clearme {\r\n  clear: both;\r\n}\r\n\r\n<\/pre>\n<p>3. At last, add the following JavaScript calculator program between &lt;script&gt; and &lt;\/script&gt; tag before closing the body tag.<\/p>\n<pre class=\"prettyprint linenums lang-css\">\/\/Generate by BABEL -:)\r\n\/\/Distributed by CodeHim (www.codehim.com)\r\n'use strict';\r\n\r\n\/\/DESIGN\r\n\/\/loading page: \r\n\/\/en meme temps\r\n\/\/page blanche vers page noir\r\n\/\/iphone cocke noir vers iphone cocke blanche\r\n\/\/https:\/\/tympanus.net\/codrops\/2016\/10\/12\/animated-decorative-lines\/\r\n(function () {\r\n\r\n  var arrSign = ['-', '+', '\/', '*', 'x'],\r\n      arr = [],\r\n      result = 0,\r\n      printCalcul = '',\r\n      arrSort = void 0,\r\n      strSign = void 0,\r\n      error = void 0,\r\n      screen = document.querySelector('.screen span'),\r\n      ele = document.querySelectorAll('.touche__box-item &gt; span'),\r\n      equal = document.querySelector('.sign-equal'),\r\n      clear = document.querySelector('.clear-item  span');\r\n\r\n  \/\/operation\r\n  for (var i = 0; i &lt; ele.length; i++) {\r\n    ele[i].addEventListener('click', function (e) {\r\n      var cible = e.target.innerHTML === '_' ? cible = '-' : e.target.innerHTML;\r\n      \/\/on memorise dans le tableau\r\n      arr.push(cible);\r\n      \/\/printCalcul display the screen\r\n      printCalcul += cible;\r\n      screen.innerHTML = printCalcul;\r\n      e.preventDefault();\r\n    });\r\n  }\r\n  clear.addEventListener('click', function (e) {\r\n    screen.innerHTML = 'screen';\r\n    arr.splice(0, arr.length);\r\n    printCalcul = '';\r\n    screen.classList.remove('error');\r\n    e.preventDefault();\r\n  });\r\n\r\n  error = function error(strSignMessage) {\r\n    screen.innerHTML = 'err with sign ' + strSignMessage;\r\n    screen.classList.add('error');\r\n  };\r\n\r\n  equal.addEventListener('click', function (e) {\r\n    result = 0;\r\n    strSign = arr.join('');\r\n    \/\/return an array with the number together\r\n    arrSort = strSign.match(\/(\\d+)|\\D\/g); \/\/[ '4', '-', '94', '-', '8' ]\r\n    for (var _i = 0, l = arrSort.length; _i &lt; l; _i++) {\r\n      var current = arrSort[_i],\r\n          prev = arrSort[_i - 1],\r\n          next = arrSort[_i + 1];\r\n      prev = prev !== undefined &amp;&amp; arrSign.indexOf(prev) === -1 ? parseInt(prev, 10) : '';\r\n      next = next !== undefined &amp;&amp; arrSign.indexOf(next) === -1 ? parseInt(next, 10) : '';\r\n      \/\/debugger\r\n      \/\/\r\n      \/\/ if value current it's a sign: +-\/*x \r\n      if (arrSign.indexOf(current) &gt;= 0) {\r\n        if (current === '+') {\r\n          if (_i === 1) {\r\n            \/\/if is the first sign +-\/* we're count the prev and next element\r\n            result = prev + next;\r\n            \/\/console.log(result + ' : ' + i + ' : ' + arrSort[i] + ' : ' + arrSort[j] );\r\n          } else if (_i &gt; 1) {\r\n            result += next;\r\n            \/\/console.log(result + ' : ' + i + ' : ' + arrSort[i+1]);\r\n          } else if (_i === 0) {\r\n            error('+');\r\n            break;\r\n          }\r\n        }\r\n        if (current === '-') {\r\n          if (_i === 1) {\r\n            \/\/first sign +-\/*\r\n            result = prev - next;\r\n            \/\/console.log(result + ' - ' + ' : ' + i + ' : ' + arrSort[i] + ' : ' + arrSort[j] );\r\n          } else if (_i &gt; 1) {\r\n            result -= next;\r\n            \/\/console.log(result + ' - ' +' : ' + i + ' : ' + arrSort[i+1]);\r\n          } else if (_i === 0) {\r\n            error('-');\r\n            break;\r\n          }\r\n        }\r\n        if (current === 'x') {\r\n          if (_i === 1) {\r\n            \/\/first sign +-\/*\r\n            result += prev * next;\r\n          } else if (_i &gt; 1) {\r\n            result *= next;\r\n            \/\/console.log(result + ' * ' +' : ' + i + ' : ' + arrSort[i+1]);\r\n          } else if (_i === 0) {\r\n            error('*');\r\n            break;\r\n          }\r\n        }\r\n        if (current === '\/') {\r\n          if (_i === 1) {\r\n            \/\/first sign +-\/*\r\n            result += prev \/ next;\r\n          } else if (_i &gt; 1) {\r\n            result \/= next;\r\n          } else if (_i === 0) {\r\n            error('\/');\r\n            break;\r\n          }\r\n        }\r\n      }\r\n    }\r\n    if (!screen.classList.contains('error')) {\r\n      screen.innerHTML = result;\r\n    }\r\n    e.preventDefault();\r\n  }); \/\/end click equal\r\n})(); \/\/END\r\n<\/pre>\n<p>That&#8217;s all! I hope you have successfully integrated this simple calculator in your HTML projects. If you have any questions or suggestions, let me know by comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Do you want to create a simple calculator in HTML? well, this free code snippet helps you to create a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":5861,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[63],"tags":[216],"class_list":["post-5834","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>Free Calculator HTML Code &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free HTML code snippet to create a calculator. It is styled with CSS. You can view demo and download the 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\/free-calculator-html-code\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Free Calculator HTML Code &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free HTML code snippet to create a calculator. It is styled with CSS. You can view demo and download the code snippet.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/\" \/>\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:43:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2021\/12\/free-calculator-html-code.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1064\" \/>\n\t<meta property=\"og:image:height\" content=\"800\" \/>\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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Free Calculator HTML Code\",\"datePublished\":\"2024-01-11T16:40:00+00:00\",\"dateModified\":\"2024-01-22T09:43:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/\"},\"wordCount\":131,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2021\/12\/free-calculator-html-code.png\",\"keywords\":[\"Calculator\"],\"articleSection\":[\"HTML5 &amp; CSS3\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/\",\"url\":\"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/\",\"name\":\"Free Calculator HTML Code &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2021\/12\/free-calculator-html-code.png\",\"datePublished\":\"2024-01-11T16:40:00+00:00\",\"dateModified\":\"2024-01-22T09:43:10+00:00\",\"description\":\"Here is a free HTML code snippet to create a calculator. It is styled with CSS. You can view demo and download the code snippet.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2021\/12\/free-calculator-html-code.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2021\/12\/free-calculator-html-code.png\",\"width\":1064,\"height\":800,\"caption\":\"Free Calculator HTML Code\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/#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\":\"Free Calculator HTML Code\"}]},{\"@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":"Free Calculator HTML Code &#8212; CodeHim","description":"Here is a free HTML code snippet to create a calculator. It is styled with CSS. You can view demo and download the 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\/free-calculator-html-code\/","og_locale":"en_US","og_type":"article","og_title":"Free Calculator HTML Code &#8212; CodeHim","og_description":"Here is a free HTML code snippet to create a calculator. It is styled with CSS. You can view demo and download the code snippet.","og_url":"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/","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:43:10+00:00","og_image":[{"width":1064,"height":800,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2021\/12\/free-calculator-html-code.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":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Free Calculator HTML Code","datePublished":"2024-01-11T16:40:00+00:00","dateModified":"2024-01-22T09:43:10+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/"},"wordCount":131,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2021\/12\/free-calculator-html-code.png","keywords":["Calculator"],"articleSection":["HTML5 &amp; CSS3"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/","url":"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/","name":"Free Calculator HTML Code &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2021\/12\/free-calculator-html-code.png","datePublished":"2024-01-11T16:40:00+00:00","dateModified":"2024-01-22T09:43:10+00:00","description":"Here is a free HTML code snippet to create a calculator. It is styled with CSS. You can view demo and download the code snippet.","breadcrumb":{"@id":"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2021\/12\/free-calculator-html-code.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2021\/12\/free-calculator-html-code.png","width":1064,"height":800,"caption":"Free Calculator HTML Code"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/html5-css3\/free-calculator-html-code\/#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":"Free Calculator HTML Code"}]},{"@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":28420,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/5834","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=5834"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/5834\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/5861"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=5834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=5834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=5834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}