{"id":8798,"date":"2024-01-21T17:55:00","date_gmt":"2024-01-21T17:55:00","guid":{"rendered":"https:\/\/codehim.com\/?p=8798"},"modified":"2024-01-22T15:56:11","modified_gmt":"2024-01-22T10:56:11","slug":"toggle-switch-with-accessibility-in-javascript","status":"publish","type":"post","link":"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/","title":{"rendered":"Toggle Switch with Accessibility in JavaScript"},"content":{"rendered":"<p>This JavaScript code implements a Toggle Switch with Accessibility. It allows users to turn something on or off with a button press. The core functionality is toggling between &#8216;On&#8217; and &#8216;Off&#8217; states and providing accessibility features for screen readers. It helps improve user experience for those with disabilities.<\/p>\n<p>You can use this code in web applications to create toggle switches that enhance accessibility. It benefits your website by providing an accessible way for users to interact with <a href=\"https:\/\/codehim.com\/bootstrap\/bootstrap-toggle-switch-with-text\/\" target=\"_blank\" rel=\"noopener\">on\/off switches<\/a>, improving usability for people with disabilities.<\/p>\n<h2>How to Create Toggle Switch With Accessibility In JavaScript<\/h2>\n<p>1. Copy and paste the following HTML code into your HTML file. This code sets up the basic structure for your toggle switch.<\/p>\n<pre class=\"prettyprint linenums lang-html\">&lt;!-- Based on https:\/\/inclusive-components.design\/toggle-button\/ --&gt;\r\n&lt;p&gt; Press tab key and then enter key to test accessibility. &lt;\/p&gt;\r\n&lt;span class=\"toggle-button-wrapper\"&gt;\r\n    &lt;span&gt;Off&lt;\/span&gt;\r\n    &lt;button role=\"switch\" aria-checked=\"false\" aria-label=\"show vat off\"&gt;\r\n        &lt;span class=\"accessibility\"&gt;&lt;\/span&gt;\r\n        &lt;span class=\"toggle-button-switch\"&gt;&lt;\/span&gt;\r\n    &lt;\/button&gt;\r\n    &lt;span&gt;On&lt;\/span&gt;\r\n&lt;\/span&gt;\r\n<\/pre>\n<p>2. Now, add the CSS code to your CSS file. This code is responsible for styling the toggle switch and making it visually appealing.<\/p>\n<pre class=\"prettyprint linenums lang-css\">* {\r\n    box-sizing: border-box;\r\n}\r\n\r\n.accessibility {\r\n    border: 0;\r\n    clip: rect(0 0 0 0);\r\n    height: 1px;\r\n    margin: -1px;\r\n    overflow: hidden;\r\n    padding: 0;\r\n    position: absolute;\r\n    width: 1px;\r\n}\r\n\r\n.toggle-button-wrapper {\r\n    font-family: sans-serif;\r\n    font-size: 1em;\r\n    font-weight: normal;\r\n    line-height: 35px;\r\n}\r\n\r\n.toggle-button-wrapper * {\r\n    display: inline-block;\r\n    vertical-align: middle;\r\n}\r\n\r\n[role=\"switch\"] {\r\n    background-color: #000;\r\n    border: 0.062em solid #000;\r\n    border-radius: 25px;\r\n    color: #fff;\r\n    cursor: pointer;\r\n    display: inline-block;\r\n    height: 35px;\r\n    margin: 0 5px;\r\n    overflow: visible;\r\n    position: relative;\r\n    width: 70px;\r\n}\r\n\r\n[role=\"switch\"]:focus {\r\n    outline: 3px dashed darkolivegreen; \/* temp style to show focus state in POC *\/\r\n}\r\n\r\n.toggle-button-switch {\r\n    background: #ffd800;\r\n    border-color: #ffd800;\r\n    color: #000;\r\n    border: 1px solid #000;\r\n    border-radius: 50%;\r\n    display: inline-block;\r\n    height: 25px;\r\n    right: 5px;\r\n    line-height: 25px;\r\n    position: absolute;\r\n    top: 2.5px;\r\n    width: 25px;\r\n}\r\n\r\n[role=\"switch\"][aria-checked=\"true\"] .toggle-button-switch {\r\n    left: 5px;\r\n}<\/pre>\n<p>3. Finally, insert the JavaScript code into your project. This code handles the functionality of the toggle switch, including toggling between &#8216;On&#8217; and &#8216;Off&#8217; states and ensuring accessibility.<\/p>\n<pre class=\"prettyprint linenums lang-js\">var toggle = document.querySelector('[aria-checked]'),\r\n    $this,\r\n    pressed,\r\n    label;\r\n\r\ntoggle.addEventListener('click', function(e) {\r\n    $this = e.target;\r\n\r\n    pressed = $this.getAttribute('aria-checked') === 'true';\r\n    $this.setAttribute('aria-checked', !pressed);\r\n\r\n    label = $this.textContent.trim();\r\n    if (!pressed) {\r\n        $this.setAttribute('aria-label', label + ' on');\r\n    } else {\r\n        $this.setAttribute('aria-label', label + ' off');\r\n    }\r\n});<\/pre>\n<p>Feel free to customize the CSS styles to match your project&#8217;s design. You can change colors, sizes, or fonts to suit your needs.<\/p>\n<p>That&#8217;s all! hopefully, you have successfully created a toggle switch with an accessibility feature in JavaScript. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This JavaScript code implements a Toggle Switch with Accessibility. It allows users to turn something on or off with a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":8809,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[116],"tags":[],"class_list":["post-8798","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>Toggle Switch with Accessibility in JavaScript &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a free code snippet to create a Toggle Switch with Accessibility 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\/toggle-switch-with-accessibility-in-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Toggle Switch with Accessibility in JavaScript &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a free code snippet to create a Toggle Switch with Accessibility in JavaScript. You can view demo and download the source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-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-21T17:55:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T10:56:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Toggle-Switch-with-Accessibility-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\/toggle-switch-with-accessibility-in-javascript\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"Toggle Switch with Accessibility in JavaScript\",\"datePublished\":\"2024-01-21T17:55:00+00:00\",\"dateModified\":\"2024-01-22T10:56:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/\"},\"wordCount\":226,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Toggle-Switch-with-Accessibility-in-JavaScript.png\",\"articleSection\":[\"Vanilla JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/\",\"url\":\"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/\",\"name\":\"Toggle Switch with Accessibility in JavaScript &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Toggle-Switch-with-Accessibility-in-JavaScript.png\",\"datePublished\":\"2024-01-21T17:55:00+00:00\",\"dateModified\":\"2024-01-22T10:56:11+00:00\",\"description\":\"Here is a free code snippet to create a Toggle Switch with Accessibility in JavaScript. You can view demo and download the source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Toggle-Switch-with-Accessibility-in-JavaScript.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Toggle-Switch-with-Accessibility-in-JavaScript.png\",\"width\":1280,\"height\":960,\"caption\":\"Toggle Switch with Accessibility in JavaScript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-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\":\"Toggle Switch with Accessibility 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":"Toggle Switch with Accessibility in JavaScript &#8212; CodeHim","description":"Here is a free code snippet to create a Toggle Switch with Accessibility 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\/toggle-switch-with-accessibility-in-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Toggle Switch with Accessibility in JavaScript &#8212; CodeHim","og_description":"Here is a free code snippet to create a Toggle Switch with Accessibility in JavaScript. You can view demo and download the source code.","og_url":"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-21T17:55:00+00:00","article_modified_time":"2024-01-22T10:56:11+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Toggle-Switch-with-Accessibility-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\/toggle-switch-with-accessibility-in-javascript\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"Toggle Switch with Accessibility in JavaScript","datePublished":"2024-01-21T17:55:00+00:00","dateModified":"2024-01-22T10:56:11+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/"},"wordCount":226,"commentCount":0,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Toggle-Switch-with-Accessibility-in-JavaScript.png","articleSection":["Vanilla JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/","url":"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/","name":"Toggle Switch with Accessibility in JavaScript &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Toggle-Switch-with-Accessibility-in-JavaScript.png","datePublished":"2024-01-21T17:55:00+00:00","dateModified":"2024-01-22T10:56:11+00:00","description":"Here is a free code snippet to create a Toggle Switch with Accessibility in JavaScript. You can view demo and download the source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-in-javascript\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Toggle-Switch-with-Accessibility-in-JavaScript.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2023\/10\/Toggle-Switch-with-Accessibility-in-JavaScript.png","width":1280,"height":960,"caption":"Toggle Switch with Accessibility in JavaScript"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/vanilla-javascript\/toggle-switch-with-accessibility-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":"Toggle Switch with Accessibility 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":1236,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/8798","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=8798"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/8798\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/8809"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=8798"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=8798"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=8798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}