{"id":23726,"date":"2020-10-05T20:46:48","date_gmt":"2020-10-06T03:46:48","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=23726"},"modified":"2023-12-01T04:01:24","modified_gmt":"2023-12-01T12:01:24","slug":"javascript-queryselector-vs-getelementbyid","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/javascript-queryselector-vs-getelementbyid\/","title":{"rendered":"querySelector vs. getElementById: A Comparison"},"content":{"rendered":"\n<p>Both the querySelector and getElementById methods let you retrieve an element from the <a href=\"https:\/\/careerkarma.com\/blog\/what-is-javascript\/\">JavaScript Document Object Model (DOM)<\/a>. However, each method has its own use cases.<br><\/p>\n\n\n\n<p>In this guide, we break down the most common use case of both querySelector and getElementById. We also compare these two methods and walk you through a basic example of how each of them work.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is querySelector?<\/h2>\n\n\n\n<p>The <a href=\"https:\/\/careerkarma.com\/blog\/queryselector-javascript\/\">JavaScript querySelector() method<\/a> lets you retrieve an element from the DOM, or the web page, using a CSS selector. This method comes with a sister function called <code>querySelectorAll()<\/code> which selects all the elements that match a particular selector from the DOM.<br><\/p>\n\n\n\n<p>These two methods are incredibly versatile. This is because <a href=\"https:\/\/careerkarma.com\/blog\/css-selectors\/\">CSS selector syntax<\/a> lets you select any element from a web page.<br><\/p>\n\n\n\n<p>Using querySelector, you don\u2019t have to worry about being constrained by only being allowed to select elements by <a href=\"https:\/\/careerkarma.com\/blog\/html-css-class-id\/\">class or IDs<\/a>, like you would if you used getElementById or getElementsByClassName.<br><\/p>\n\n\n\n<p>These methods are particularly useful if the elements you are selecting are similar to those you select in your CSS stylesheet.<br><\/p>\n\n\n\n<p>Let\u2019s take a look at the querySelector method. We\u2019ll start by writing an HTML element that we can later select in JavaScript:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>&lt;p class=&quot;accessibility&quot;&gt;Skip to main content&lt;\/p&gt;<\/pre><\/div>\n\n\n\n<p>We have defined a paragraph of text with the class name \u201caccessibility\u201d. Next, let\u2019s select this paragraph using the <code>querySelector()<\/code> method.<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>const accessibility_elements = document.querySelector(&quot;.accessibility&quot;);<\/pre><\/div>\n\n\n\n<p>This code lets us select the first element whose class is equal to \u201caccessibility\u201d. The \u201c.\u201d denotes that we want to select a class. If we had two elements with the class \u201caccessibility\u201d, we could use the <code>querySelectorAll()<\/code> method to retrieve them both.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is getElementById?<\/h2>\n\n\n\n<p>The <a href=\"https:\/\/careerkarma.com\/blog\/javascript-getelementbyidv\/\">getElementById() method<\/a> retrieves an element based on its ID attribute, hence the name.<br><\/p>\n\n\n\n<p>This method is more restrictive than querySelector because you can only retrieve elements based on their particular ID.<br><\/p>\n\n\n\n<p>You would use this method if you only want to retrieve one element from the web page. This is because HTML IDs must be unique to a particular element. You cannot use an ID to refer to two elements on the web page.<br><\/p>\n\n\n\n<p>Let\u2019s retrieve an element using the getElementById selector. First, let\u2019s write the HTML code from which we are going to select an element:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>&lt;section id=&quot;comments&quot;&gt;\n\t&lt;h2&gt;Comments&lt;\/h2&gt;\n&lt;\/section&gt;<\/pre><\/div>\n\n\n\n<p>Next, let\u2019s write the JavaScript code to select an element from the DOM:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>const comments_section = document.getElementById(&quot;comments&quot;);<\/pre><\/div>\n\n\n\n<p>We use the JavaScript statement to retrieve the element whose ID is equal to &#8220;comments&#8221;. This is the &lt;section&gt; element where we display comments on our web page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">querySelector vs. getElementById<\/h2>\n\n\n\n<p>The obvious similarity between these two methods is that they both select elements from a web page. They do so in different ways.<br><\/p>\n\n\n\n<p>With a querySelector statement, you can select an element based on a CSS selector. This means you can select elements by ID, class, or any other type of selector. Using the getElementById method, you can only select an element by its ID.<br><\/p>\n\n\n\n<p>Generally, you should opt for the selector that most clearly gets the job done.<br><\/p>\n\n\n\n<p>If you only need to select an element by ID or class, you can use getElementById or getElementsByClassName, respectively. If you need to use a more elaborate rule to select elements, the querySelector method is your best option.<br><\/p>\n\n\n\n<p>Both querySelector and getElementById have been part of JavaScript for a while. As a result, these methods are both fully supported on modern browsers.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The querySelector method lets you retrieve an element using a CSS selector query. The getElementById method retrieves an element by its DOM ID.<br><\/p>\n\n\n\n<p>Both methods have wide browser support. You should opt to use the querySelector method if you need to select elements using more complex rules that are easily represented using a CSS selector. If you want to select an element by its ID, using getElementById is a good choice.<br><\/p>\n\n\n\n<p>Now you have the knowledge you need to know when to use the querySelector and getElementById methods like a pro!<\/p>\n","protected":false},"excerpt":{"rendered":"Both the querySelector and getElementById methods let you retrieve an element from the JavaScript Document Object Model (DOM). However, each method has its own use cases. In this guide, we break down the most common use case of both querySelector and getElementById. We also compare these two methods and walk you through a basic example&hellip;","protected":false},"author":240,"featured_media":21241,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11933],"tags":[],"class_list":{"0":"post-23726","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-javascript"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"JavaScript","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":null,"is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>querySelector vs. getElementById: A Comparison | Career Karma<\/title>\n<meta name=\"description\" content=\"On Career Karma, learn about the JavaScript querySelector and getElementById methods and how they compare.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/javascript-queryselector-vs-getelementbyid\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"querySelector vs. getElementById: A Comparison\" \/>\n<meta property=\"og:description\" content=\"On Career Karma, learn about the JavaScript querySelector and getElementById methods and how they compare.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/javascript-queryselector-vs-getelementbyid\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-06T03:46:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T12:01:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/amy-hirschi-dVMWZDpCUlo-unsplash.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"680\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-queryselector-vs-getelementbyid\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-queryselector-vs-getelementbyid\\\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"querySelector vs. getElementById: A Comparison\",\"datePublished\":\"2020-10-06T03:46:48+00:00\",\"dateModified\":\"2023-12-01T12:01:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-queryselector-vs-getelementbyid\\\/\"},\"wordCount\":652,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-queryselector-vs-getelementbyid\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/amy-hirschi-dVMWZDpCUlo-unsplash.jpg\",\"articleSection\":[\"JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-queryselector-vs-getelementbyid\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-queryselector-vs-getelementbyid\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-queryselector-vs-getelementbyid\\\/\",\"name\":\"querySelector vs. getElementById: A Comparison | Career Karma\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-queryselector-vs-getelementbyid\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-queryselector-vs-getelementbyid\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/amy-hirschi-dVMWZDpCUlo-unsplash.jpg\",\"datePublished\":\"2020-10-06T03:46:48+00:00\",\"dateModified\":\"2023-12-01T12:01:24+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"On Career Karma, learn about the JavaScript querySelector and getElementById methods and how they compare.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-queryselector-vs-getelementbyid\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-queryselector-vs-getelementbyid\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-queryselector-vs-getelementbyid\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/amy-hirschi-dVMWZDpCUlo-unsplash.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/amy-hirschi-dVMWZDpCUlo-unsplash.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript-queryselector-vs-getelementbyid\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/javascript\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"querySelector vs. getElementById: A Comparison\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/01\\\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/author\\\/jamesgallagher\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"querySelector vs. getElementById: A Comparison | Career Karma","description":"On Career Karma, learn about the JavaScript querySelector and getElementById methods and how they compare.","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:\/\/careerkarma.com\/blog\/javascript-queryselector-vs-getelementbyid\/","og_locale":"en_US","og_type":"article","og_title":"querySelector vs. getElementById: A Comparison","og_description":"On Career Karma, learn about the JavaScript querySelector and getElementById methods and how they compare.","og_url":"https:\/\/careerkarma.com\/blog\/javascript-queryselector-vs-getelementbyid\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-10-06T03:46:48+00:00","article_modified_time":"2023-12-01T12:01:24+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/amy-hirschi-dVMWZDpCUlo-unsplash.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/javascript-queryselector-vs-getelementbyid\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-queryselector-vs-getelementbyid\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"querySelector vs. getElementById: A Comparison","datePublished":"2020-10-06T03:46:48+00:00","dateModified":"2023-12-01T12:01:24+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-queryselector-vs-getelementbyid\/"},"wordCount":652,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-queryselector-vs-getelementbyid\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/amy-hirschi-dVMWZDpCUlo-unsplash.jpg","articleSection":["JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/javascript-queryselector-vs-getelementbyid\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/javascript-queryselector-vs-getelementbyid\/","url":"https:\/\/careerkarma.com\/blog\/javascript-queryselector-vs-getelementbyid\/","name":"querySelector vs. getElementById: A Comparison | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-queryselector-vs-getelementbyid\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-queryselector-vs-getelementbyid\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/amy-hirschi-dVMWZDpCUlo-unsplash.jpg","datePublished":"2020-10-06T03:46:48+00:00","dateModified":"2023-12-01T12:01:24+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"On Career Karma, learn about the JavaScript querySelector and getElementById methods and how they compare.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/javascript-queryselector-vs-getelementbyid\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/javascript-queryselector-vs-getelementbyid\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/javascript-queryselector-vs-getelementbyid\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/amy-hirschi-dVMWZDpCUlo-unsplash.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/08\/amy-hirschi-dVMWZDpCUlo-unsplash.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/javascript-queryselector-vs-getelementbyid\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"JavaScript","item":"https:\/\/careerkarma.com\/blog\/javascript\/"},{"@type":"ListItem","position":3,"name":"querySelector vs. getElementById: A Comparison"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/23726","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=23726"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/23726\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/21241"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=23726"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=23726"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=23726"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}