{"id":8619,"date":"2024-01-19T17:54:00","date_gmt":"2024-01-19T17:54:00","guid":{"rendered":"https:\/\/codehim.com\/?p=8619"},"modified":"2024-01-22T15:55:08","modified_gmt":"2024-01-22T10:55:08","slug":"simple-calculator-code-in-html-and-javascript","status":"publish","type":"post","link":"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/","title":{"rendered":"Simple Calculator Code in HTML and JavaScript"},"content":{"rendered":"<p>This code creates a basic calculator interface using HTML and JavaScript. It allows you to perform addition, subtraction, multiplication, and division calculations. The calculator&#8217;s main functionality is to display input and calculate results, providing a user-friendly tool for simple arithmetic operations.<\/p>\n<p>You can integrate this <a href=\"https:\/\/codehim.com\/html5-css3\/simple-calculator-in-html-code\/\">calculator widget<\/a> into your web project wherever basic calculations are required, offering users a convenient tool for performing arithmetic. Furthermore, you can customize the calculator interface with additional CSS according to your web\/app theme.<\/p>\n<h2>How to Create Simple Calculator Code In HTML and JavaScript<\/h2>\n<p>1. First, insert the following HTML code into your project&#8217;s HTML file. This code provides the structure and user interface for the calculator.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;p class=\"m\"&gt;Calculator&lt;\/p&gt;\r\n  &lt;br&gt;\r\n  &lt;div class=\"calculator\"&gt;\r\n    &lt;div class=\"screen\"&gt;0&lt;\/div&gt;\r\n    &lt;br \/&gt;\r\n    &lt;div class=\"buttons\"&gt;\r\n      &lt;button&gt;7&lt;\/button&gt;\r\n      &lt;button&gt;8&lt;\/button&gt;\r\n      &lt;button&gt;9&lt;\/button&gt;\r\n      &lt;button&gt;+&lt;\/button&gt;\r\n      &lt;button&gt;4&lt;\/button&gt;\r\n      &lt;button&gt;5&lt;\/button&gt;\r\n      &lt;button&gt;6&lt;\/button&gt;\r\n      &lt;button&gt;-&lt;\/button&gt;\r\n      &lt;button&gt;1&lt;\/button&gt;\r\n      &lt;button&gt;2&lt;\/button&gt;\r\n      &lt;button&gt;3&lt;\/button&gt;\r\n      &lt;button&gt;*&lt;\/button&gt;\r\n      &lt;button&gt;0&lt;\/button&gt;\r\n      &lt;button&gt;.&lt;\/button&gt;\r\n      &lt;button&gt;\/&lt;\/button&gt;\r\n      &lt;button id=\"equals\"&gt;=&lt;\/button&gt;\r\n    &lt;\/div&gt;\r\n    &lt;br \/&gt;\r\n    &lt;button id=\"clear\"&gt;CLEAR&lt;\/button&gt;\r\n  &lt;\/div&gt;<\/pre>\n<p>2. Copy the following CSS code into your project&#8217;s CSS file or include it in the HTML file using <code>&lt;style&gt;<\/code> tags. This CSS code ensures the calculator looks visually appealing.<\/p>\n<pre class=\"prettyprint linenums lang-css\">@import url('https:\/\/fonts.googleapis.com\/css2?family=Black+Ops+One&amp;family=Borel&amp;family=Cormorant+Upright&amp;display=swap');\r\n@import url('https:\/\/fonts.googleapis.com\/css2?family=Lato:wght@100;200;300;400;500;700&amp;display=swap');\r\n@import url('https:\/\/fonts.googleapis.com\/css2?family=Dancing Script&amp;family=Source+Code+Pro');\r\n@import url('https:\/\/fonts.googleapis.com\/css2?family=Montserrat:wght@100;300;500;600;700&amp;display=swap');\r\n@import url('https:\/\/fonts.googleapis.com\/css2?family=Creepster&amp;display=swap');\r\n\r\nbody {\r\n    background: rgba(0, 0, 0, 0.955);\r\n    background-attachment: fixed;\r\n    display: flex;\r\n    justify-content: center;\r\n    align-items: center;\r\n    height: 100vh;\r\n}\r\n\r\n.calculator {\r\n    background-color: rgb(0, 0, 0);\r\n    border: solid rgb(44, 44, 44) 1px;\r\n    padding: 20px;\r\n    border-radius: 10px;\r\n}\r\n\r\n.screen {\r\n    width: 224px;\r\n    background-color: rgba(103, 103, 103, 0.294);\r\n    border: solid rgb(44, 44, 44) 1px;\r\n    font-size: 40px;\r\n    text-align: end;\r\n    padding: 4px;\r\n    color: white;\r\n}\r\n\r\n.buttons {\r\n    width: 232px;\r\n    display: flex;\r\n    flex-wrap: wrap;\r\n}\r\n\r\nbutton {\r\n    font-family: \"Black Ops One\";\r\n    background-color: rgb(44, 44, 44);\r\n    border: none;\r\n    color: rgb(255, 255, 255);\r\n    font-size: 40px;\r\n    width: 50px;\r\n    height: 50px;\r\n    border-radius: 20px;\r\n    margin: 4px;\r\n}\r\n\r\nbutton:hover {\r\n    background-color: rgb(111, 110, 110);\r\n}\r\n\r\nbutton:active {\r\n    background-color: rgb(192, 190, 190);\r\n    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;\r\n}\r\n\r\n#equals {\r\n    background-color: rgb(252, 20, 27);\r\n}\r\n\r\n#equals:hover {\r\n    background-color: rgba(198, 1, 1, 0.953);\r\n}\r\n\r\n#clear {\r\n    width: 100%;\r\n    background-color: rgb(44, 44, 44);\r\n    font-size: 30px;\r\n}\r\n\r\n#clear:hover {\r\n    background-color: rgb(255, 213, 61);\r\n    color: black;\r\n}\r\n\r\n.m {\r\n    font-family: \"Black Ops One\";\r\n    margin-top: -550px;\r\n    text-align: center;\r\n    align-items: center;\r\n    color: white;\r\n    font-size: 50px;\r\n    position: absolute;\r\n}<\/pre>\n<p>3. Finally, add the following JavaScript code to your project. This code handles the calculator&#8217;s functionality, including button clicks and calculation logic.<\/p>\n<pre class=\"prettyprint linenums lang-js\">const screenDisplay = document.querySelector('.screen')\r\nconst buttons = document.querySelectorAll('button')\r\n\r\nlet calculation = []\r\nlet accumlativeCalculation\r\n\r\n\r\nfunction calculate(button) {\r\n    const value = button.textContent\r\n\r\n    if (value == \"CLEAR\") {\r\n        calculation = []\r\n        screenDisplay.textContent = '0'\r\n    }\r\n    else if(value === \"=\"){\r\n        screenDisplay.textContent = eval(accumlativeCalculation)\r\n    }\r\n    else {\r\n        calculation.push(value)\r\n        accumlativeCalculation = calculation.join('')\r\n        screenDisplay.textContent = accumlativeCalculation\r\n    }\r\n\r\n}\r\n\r\nbuttons.forEach(button =&gt; button.addEventListener('click', () =&gt; calculate(button)))<\/pre>\n<p>That&#8217;s all! You&#8217;ve successfully added a simple calculator widget to your web project. Users can now utilize this tool for basic arithmetic calculations directly on your website. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This code creates a basic calculator interface using HTML and JavaScript. It allows you to perform addition, subtraction, multiplication, and&#8230;<\/p>\n","protected":false},"author":1,"featured_media":8632,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[116],"tags":[216],"class_list":["post-8619","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vanilla-javascript","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>Simple Calculator Code in HTML and JavaScript &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free HTML and JavaScript code snippet to create a Simple Calculator. You can view demo and download the source code.\" \/>\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\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Simple Calculator Code in HTML and JavaScript &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free HTML and JavaScript code snippet to create a Simple Calculator. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/\" \/>\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-19T17:54:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T10:55:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Calculator-Code-In-HTML-and-JavaScript.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Simple Calculator Code in HTML and JavaScript\",\"datePublished\":\"2024-01-19T17:54:00+00:00\",\"dateModified\":\"2024-01-22T10:55:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/\"},\"wordCount\":213,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Calculator-Code-In-HTML-and-JavaScript.png\",\"keywords\":[\"Calculator\"],\"articleSection\":[\"Vanilla JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/\",\"url\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/\",\"name\":\"Simple Calculator Code in HTML and JavaScript &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Calculator-Code-In-HTML-and-JavaScript.png\",\"datePublished\":\"2024-01-19T17:54:00+00:00\",\"dateModified\":\"2024-01-22T10:55:08+00:00\",\"description\":\"Here is a free HTML and JavaScript code snippet to create a Simple Calculator. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Calculator-Code-In-HTML-and-JavaScript.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Calculator-Code-In-HTML-and-JavaScript.png\",\"width\":1280,\"height\":960,\"caption\":\"Simple Calculator Code In HTML and JavaScript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Vanilla JavaScript\",\"item\":\"https:\/\/codehim.com\/category\/vanilla-javascript\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Simple Calculator Code in HTML and JavaScript\"}]},{\"@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":"Simple Calculator Code in HTML and JavaScript &#8212; CodeHim","description":"Here is a free HTML and JavaScript code snippet to create a Simple Calculator. You can view demo and download the source code.","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\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Simple Calculator Code in HTML and JavaScript &#8212; CodeHim","og_description":"Here is a free HTML and JavaScript code snippet to create a Simple Calculator. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-19T17:54:00+00:00","article_modified_time":"2024-01-22T10:55:08+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Calculator-Code-In-HTML-and-JavaScript.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":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Simple Calculator Code in HTML and JavaScript","datePublished":"2024-01-19T17:54:00+00:00","dateModified":"2024-01-22T10:55:08+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/"},"wordCount":213,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Calculator-Code-In-HTML-and-JavaScript.png","keywords":["Calculator"],"articleSection":["Vanilla JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/","url":"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/","name":"Simple Calculator Code in HTML and JavaScript &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Calculator-Code-In-HTML-and-JavaScript.png","datePublished":"2024-01-19T17:54:00+00:00","dateModified":"2024-01-22T10:55:08+00:00","description":"Here is a free HTML and JavaScript code snippet to create a Simple Calculator. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Calculator-Code-In-HTML-and-JavaScript.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Calculator-Code-In-HTML-and-JavaScript.png","width":1280,"height":960,"caption":"Simple Calculator Code In HTML and JavaScript"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-calculator-code-in-html-and-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Vanilla JavaScript","item":"https:\/\/codehim.com\/category\/vanilla-javascript\/"},{"@type":"ListItem","position":3,"name":"Simple Calculator Code in HTML and JavaScript"}]},{"@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":2309,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/8619","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=8619"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/8619\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/8632"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=8619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=8619"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=8619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}