{"id":8621,"date":"2024-01-19T17:54:00","date_gmt":"2024-01-19T17:54:00","guid":{"rendered":"https:\/\/codehim.com\/?p=8621"},"modified":"2024-01-22T15:55:14","modified_gmt":"2024-01-22T10:55:14","slug":"simple-temperature-converter-in-javascript","status":"publish","type":"post","link":"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/","title":{"rendered":"Simple Temperature Converter in JavaScript"},"content":{"rendered":"<p>This JavaScript code snippet helps you to create a temperature converter. It allows users to easily convert temperatures between Celsius and Fahrenheit. It functions by taking your temperature input and unit choice, and then instantly providing the converted temperature. This tool is helpful for quick temperature conversions.<\/p>\n<p>If you&#8217;re developing a weather app, you can integrate this temperature converter to offer users the convenience of switching between Celsius and Fahrenheit for weather forecasts. Moreover, you can customize the interface of the converter with additional CSS according to your needs.<\/p>\n<h2>How to Create a Simple Temperature Converter in JavaScript<\/h2>\n<p>1. First, create the HTML code as follows to set up the basic structure of our temperature converter. It includes input fields for temperature and unit selection, a conversion button, and a result display area.<\/p>\n<pre class=\"prettyprint linenums lang-html\"> &lt;div class=\"container\"&gt;\r\n        &lt;h1&gt;Temperature Converter&lt;\/h1&gt;\r\n        &lt;div class=\"form-group\"&gt;\r\n            &lt;label for=\"temperature\"&gt;Enter Temperature:&lt;\/label&gt;\r\n            &lt;input type=\"text\" id=\"temperature\" placeholder=\"Enter temperature\"&gt;\r\n        &lt;\/div&gt;\r\n        &lt;div class=\"form-group\"&gt;\r\n            &lt;label for=\"unit\"&gt;Choose Unit:&lt;\/label&gt;\r\n            &lt;select id=\"unit\"&gt;\r\n                &lt;option value=\"C\"&gt;Celsius&lt;\/option&gt;\r\n                &lt;option value=\"F\"&gt;Fahrenheit&lt;\/option&gt;\r\n            &lt;\/select&gt;\r\n        &lt;\/div&gt;\r\n        &lt;button id=\"convertBtn\"&gt;Convert&lt;\/button&gt;\r\n        &lt;div id=\"result\"&gt;&lt;\/div&gt;\r\n    &lt;\/div&gt;\r\n<\/pre>\n<p>2. Create a CSS file (styles.css) and add the following styles to make the converter visually appealing:<\/p>\n<pre class=\"prettyprint linenums lang-css\">body {\r\n    font-family: Arial, sans-serif;\r\n}\r\n\r\n.container {\r\n    max-width: 400px;\r\n    margin: auto;\r\n    padding: 20px;\r\n    border-radius: 5px;\r\n    background: rgba(255, 255, 255, 0.89);\r\n   color: #333;\r\n}\r\n\r\n.form-group {\r\n    margin-bottom: 20px;\r\n}\r\n.form-group h1{\r\n  color: #007bff;\r\n}\r\nlabel {\r\n    display: block;\r\n    margin-bottom: 10px;\r\n}\r\n\r\ninput, select {\r\n    width: 100%;\r\n    padding: 10px;\r\n    border: none;\r\n    border-radius: 5px;\r\n   box-sizing: border-box\r\n}\r\n\r\nbutton {\r\n    padding: 10px 20px;\r\n    background-color: #007bff;\r\n    color: #ffffff;\r\n    border: none;\r\n    border-radius: 5px;\r\n}\r\n\r\n#result {\r\n    margin-top: 20px;\r\n}<\/pre>\n<p>3. Now, let&#8217;s create the JavaScript file (script.js) to add the functionality to our temperature converter. It defines the logic for converting temperatures between Celsius and Fahrenheit and displays the result on the web page.<\/p>\n<pre class=\"prettyprint linenums lang-js\">\/\/ Get references to HTML elements\r\nconst temperatureInput = document.getElementById('temperature');\r\nconst unitSelect = document.getElementById('unit');\r\nconst convertBtn = document.getElementById('convertBtn');\r\nconst resultDiv = document.getElementById('result');\r\n\r\n\/\/ Function to convert temperature\r\nfunction convertTemperature() {\r\n    const temp = parseFloat(temperatureInput.value);\r\n    const unit = unitSelect.value;\r\n\r\n    \/\/ Error handling\r\n    if (isNaN(temp)) {\r\n        resultDiv.innerHTML = 'Please enter a valid number.';\r\n        return;\r\n    }\r\n\r\n    let convertedTemp;\r\n    if (unit === 'C') {\r\n        \/\/ Convert Celsius to Fahrenheit\r\n        convertedTemp = (temp * 9\/5) + 32;\r\n    } else {\r\n        \/\/ Convert Fahrenheit to Celsius\r\n        convertedTemp = (temp - 32) * 5\/9;\r\n    }\r\n\r\n    resultDiv.innerHTML = `Converted Temperature: ${convertedTemp.toFixed(2)}\u00b0${unit === 'C' ? 'F' : 'C'}`;\r\n}\r\n\r\n\/\/ Add event listener for the Convert button\r\nconvertBtn.addEventListener('click', convertTemperature);<\/pre>\n<p>That&#8217;s all! Hopefully, you&#8217;ve successfully integrated this simple temperature converter into your web\/app project. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This JavaScript code snippet helps you to create a temperature converter. It allows users to easily convert temperatures between Celsius&#8230;<\/p>\n","protected":false},"author":1,"featured_media":8636,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[116],"tags":[],"class_list":["post-8621","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vanilla-javascript"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Simple Temperature Converter in JavaScript &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a Simple Temperature Converter in JavaScript. 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-temperature-converter-in-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Simple Temperature Converter in JavaScript &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a Simple Temperature Converter in JavaScript. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-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:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Temperature-Converter-in-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-temperature-converter-in-javascript\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Simple Temperature Converter in JavaScript\",\"datePublished\":\"2024-01-19T17:54:00+00:00\",\"dateModified\":\"2024-01-22T10:55:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/\"},\"wordCount\":220,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Temperature-Converter-in-JavaScript.png\",\"articleSection\":[\"Vanilla JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/\",\"url\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/\",\"name\":\"Simple Temperature Converter in JavaScript &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Temperature-Converter-in-JavaScript.png\",\"datePublished\":\"2024-01-19T17:54:00+00:00\",\"dateModified\":\"2024-01-22T10:55:14+00:00\",\"description\":\"Here is a free code snippet to create a Simple Temperature Converter in JavaScript. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Temperature-Converter-in-JavaScript.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Temperature-Converter-in-JavaScript.png\",\"width\":1280,\"height\":960,\"caption\":\"Simple Temperature Converter in JavaScript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-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 Temperature Converter in 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 Temperature Converter in JavaScript &#8212; CodeHim","description":"Here is a free code snippet to create a Simple Temperature Converter in JavaScript. 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-temperature-converter-in-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Simple Temperature Converter in JavaScript &#8212; CodeHim","og_description":"Here is a free code snippet to create a Simple Temperature Converter in JavaScript. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-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:14+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Temperature-Converter-in-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-temperature-converter-in-javascript\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Simple Temperature Converter in JavaScript","datePublished":"2024-01-19T17:54:00+00:00","dateModified":"2024-01-22T10:55:14+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/"},"wordCount":220,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Temperature-Converter-in-JavaScript.png","articleSection":["Vanilla JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/","url":"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/","name":"Simple Temperature Converter in JavaScript &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Temperature-Converter-in-JavaScript.png","datePublished":"2024-01-19T17:54:00+00:00","dateModified":"2024-01-22T10:55:14+00:00","description":"Here is a free code snippet to create a Simple Temperature Converter in JavaScript. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-javascript\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Temperature-Converter-in-JavaScript.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/09\/Simple-Temperature-Converter-in-JavaScript.png","width":1280,"height":960,"caption":"Simple Temperature Converter in JavaScript"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-temperature-converter-in-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 Temperature Converter in 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":2148,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/8621","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=8621"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/8621\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/8636"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=8621"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=8621"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=8621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}