{"id":21,"date":"2012-05-04T23:58:30","date_gmt":"2012-05-04T23:58:30","guid":{"rendered":"https:\/\/learnwebcode.com\/?p=21"},"modified":"2016-03-29T01:18:19","modified_gmt":"2016-03-29T01:18:19","slug":"basic-css-selectors","status":"publish","type":"post","link":"https:\/\/learnwebcode.com\/basic-css-selectors\/","title":{"rendered":"CSS Lesson 3: Basic CSS Selectors"},"content":{"rendered":"<p>CSS Selectors allow us to target specific HTML elements with our style sheets.\u00a0 While there are many different types of CSS Selectors, today&#8217;s lesson focuses on the four essential selectors; Type, ID, Class and Descendant selectors.<\/p>\n<h2>First We Need a Page To Style<\/h2>\n<p>CSS isn&#8217;t very useful without a page to style.\u00a0 Create a blank text document, and copy and paste the following HTML:<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;!DOCTYPE html&gt;\r\n\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;meta charset=&quot;utf-8&quot;&gt;\r\n&lt;title&gt;CSS Selectors&lt;\/title&gt;\r\n&lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot;&gt;\r\n&lt;\/head&gt;\r\n\r\n&lt;body&gt;\r\n\r\n&lt;h1&gt;CSS Selectors&lt;\/h1&gt;\r\n\r\n&lt;div id=&quot;intro&quot;&gt;\r\n&lt;p&gt;This is the &lt;em&gt;first&lt;\/em&gt; paragraph.&lt;\/p&gt;\r\n&lt;p class=&quot;important&quot;&gt;This is an &lt;em&gt;important&lt;\/em&gt; paragraph inside the Intro Div.&lt;\/p&gt;\r\n&lt;\/div&gt;\r\n\r\n&lt;p&gt;This is a regular paragraph.&lt;\/p&gt;\r\n&lt;p class=&quot;important&quot;&gt;This is an &lt;em&gt;important&lt;\/em&gt; paragraph that is not in the Intro Div.&lt;\/p&gt;\r\n\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p>Create a new folder named &#8220;CSS-Selectors&#8221; on your desktop or any other location you prefer.\u00a0 Then, save our document in this folder with a file name of <em>index.htm<\/em>.<\/p>\n<h2>The Page Without CSS<\/h2>\n<p>Open index.htm in a web browser, and you should see something very similar to this:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"css-selectors-1\" src=\"https:\/\/learnwebcode.com\/wp-content\/uploads\/2010\/02\/css-selectors-1.gif\" alt=\"CSS Selectors\" width=\"447\" height=\"407\" \/><\/p>\n<h2>Let the CSS Begin<\/h2>\n<p>Now, create a new blank text document and save it in our &#8220;CSS-Selectors&#8221; folder with the file name of <em>style.css<\/em>.\u00a0 We are now ready to start styling our page with the four essential Selector types.<\/p>\n<h2>1 &#8211; Type Selector<\/h2>\n<p><strong>Type Selectors<\/strong> are very simple.  They correspond with any HTML element type.  For example, add the following code to your blank CSS file; these are three simple Type Selectors:<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\nbody {\r\nfont-family: Arial, sans-serif;\r\nfont-size: small;\r\n}\r\n\r\nh1 {\r\ncolor: green;\r\n}\r\n\r\nem {\r\ncolor: red;\r\n}\r\n<\/pre>\n<p>This code selects and styles our &lt;body&gt; element, as well as all &lt;h1&gt; and &lt;em&gt; elements on our page.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"css-selectors-2\" src=\"https:\/\/learnwebcode.com\/wp-content\/uploads\/2010\/02\/css-selectors-2.gif\" alt=\"CSS Selectors\" width=\"447\" height=\"407\" \/><\/p>\n<h2>2 &#8211; ID Selectors<\/h2>\n<p>If you take a look at the code of our HTML page, you&#8217;ll notice we have a &lt;div&gt; element with an ID of <em>intro<\/em>.\u00a0\u00a0 We assign elements IDs when they are unique on a page; there is only <strong>one<\/strong> &#8220;intro&#8221; section on our page.\u00a0 This is important, because two elements cannot have the same ID.<\/p>\n<p>When an element has an \u201cID\u201d we can access it with a CSS selector by placing a pound sign (#) in front of it\u2019s ID value.\u00a0 Add the following code to your CSS file, directly below our &lt;h1&gt; rule:<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\n#intro {\r\nfont-size: 130%;\r\nborder: 1px solid black;\r\n}\r\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"css-selectors-3\" src=\"https:\/\/learnwebcode.com\/wp-content\/uploads\/2010\/02\/css-selectors-3.gif\" alt=\"CSS Selectors 3\" width=\"447\" height=\"407\" \/><\/p>\n<h2>3 &#8211; Class Selectors<\/h2>\n<p>Class Selectors are very similar to ID Selectors.  The major difference is that while a certain ID should only be assigned to one element, we can assign the same class to as many elements as we want.<\/p>\n<p>If you look at the code of our HTML page, you&#8217;ll notice that two of our paragraph tags have a class of &#8220;important.&#8221;\u00a0 When an element has a class we can access it with a CSS selector by placing a <strong>period<\/strong> in front of it\u2019s class name. Let&#8217;s add the following rule to our CSS file to make these paragraphs stand out:<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\n.important {\r\nbackground-color: yellow;\r\n}\r\n<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"css-selectors-4\" src=\"https:\/\/learnwebcode.com\/wp-content\/uploads\/2010\/02\/css-selectors-4.gif\" alt=\"CSS Selectors 4\" width=\"447\" height=\"407\" \/><\/p>\n<h2>4 &#8211; Descendant Selectors<\/h2>\n<p>Imagine we wanted the important paragraph in the &#8220;intro&#8221; Div to look different than the important paragraph at the bottom of the page.\u00a0 We can use a Descendant Selector to achieve this.<\/p>\n<p>Add the following CSS rule at the bottom of our CSS file:<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\n#intro .important {\r\nbackground-color: orange;\r\n}\r\n<\/pre>\n<p>Let&#8217;s dissect how the selector is working.\u00a0 It begins with &#8220;#intro&#8221; which selects our Intro Div.\u00a0 This is followed by a space, and then &#8220;.important.&#8221;\u00a0 So essentially our selector is telling the web browser to (1) find the element with the ID of <em>intro<\/em>, (2) go inside that element and find any elements with the class of <em>important<\/em>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"css-selectors-4-5\" src=\"https:\/\/learnwebcode.com\/wp-content\/uploads\/2010\/02\/css-selectors-4-5.gif\" alt=\"CSS Selectors\" width=\"447\" height=\"407\" \/><\/p>\n<p>Notice that within the orange paragraph, the word &#8220;important&#8221; is red.\u00a0 Let&#8217;s imagine we want to change the color, since red text on an orange background is difficult to read.\u00a0 The word &#8220;important&#8221; is inside an &lt;em&gt; element, so we&#8217;ll use the following code to select and style it;<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\r\n#intro .important em {\r\ncolor: white;\r\n}\r\n<\/pre>\n<p>This code is telling the browser to (1) find the element with an ID of <em>intro<\/em>, (2) go inside that element and find any elements with a class of <em>important<\/em>, (3) go inside that element and select any <em>&lt;em&gt;<\/em> elements.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"css-selectors-5\" src=\"https:\/\/learnwebcode.com\/wp-content\/uploads\/2010\/02\/css-selectors-5.gif\" alt=\"CSS Selectors 5\" width=\"447\" height=\"407\" \/><\/p>\n<p>That&#8217;s it for today&#8217;s lesson.\u00a0 Let&#8217;s recap:<\/p>\n<ul>\n<li>Type Selectors correspond with HTML elements<\/li>\n<li>ID Selectors are used by adding # in front of an elements ID<\/li>\n<li>Class Selectors are used by adding a period in front of an elements class<\/li>\n<li>Descendant Selectors are similar to family trees; you start with the parent element you wish to select, add a space, and continue\u00a0 naming any interior elements until you&#8217;re arrived at the specific element you wish to select<\/li>\n<\/ul>\n<p>In our next lesson we will begin studying the essence of all CSS Design; The CSS Box Model.<\/p>\n<p>If you prefer to watch video lessons instead of reading written lessons check out <a href=\"\/web-design-for-beginners-real-world-coding-html-css\/\"><strong>my 8 hour video course<\/strong><\/a> and join 4,000+ others who have learned pro-level HTML, CSS, and responsive design.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CSS Selectors allow us to target specific HTML elements with our style sheets.\u00a0 While there are many different types of CSS Selectors, today&#8217;s lesson focuses on the four essential selectors; Type, ID, Class and Descendant selectors. First We Need a Page To Style CSS isn&#8217;t very useful without a page to style.\u00a0 Create a blank [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-21","post","type-post","status-publish","format-standard","hentry","category-css-lessons"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>CSS Lesson 3: Basic CSS Selectors - LearnWebCode<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/learnwebcode.com\/basic-css-selectors\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CSS Lesson 3: Basic CSS Selectors - LearnWebCode\" \/>\n<meta property=\"og:description\" content=\"CSS Selectors allow us to target specific HTML elements with our style sheets.\u00a0 While there are many different types of CSS Selectors, today&#8217;s lesson focuses on the four essential selectors; Type, ID, Class and Descendant selectors. First We Need a Page To Style CSS isn&#8217;t very useful without a page to style.\u00a0 Create a blank [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/learnwebcode.com\/basic-css-selectors\/\" \/>\n<meta property=\"og:site_name\" content=\"LearnWebCode\" \/>\n<meta property=\"article:published_time\" content=\"2012-05-04T23:58:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-03-29T01:18:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/learnwebcode.com\/wp-content\/uploads\/2010\/02\/css-selectors-1.gif\" \/>\n<meta name=\"author\" content=\"Brad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Brad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/learnwebcode.com\/basic-css-selectors\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/learnwebcode.com\/basic-css-selectors\/\"},\"author\":{\"name\":\"Brad\",\"@id\":\"https:\/\/learnwebcode.com\/#\/schema\/person\/db825ebc5a08e39b01de31771e4c7fe6\"},\"headline\":\"CSS Lesson 3: Basic CSS Selectors\",\"datePublished\":\"2012-05-04T23:58:30+00:00\",\"dateModified\":\"2016-03-29T01:18:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/learnwebcode.com\/basic-css-selectors\/\"},\"wordCount\":938,\"commentCount\":16,\"publisher\":{\"@id\":\"https:\/\/learnwebcode.com\/#\/schema\/person\/db825ebc5a08e39b01de31771e4c7fe6\"},\"image\":{\"@id\":\"https:\/\/learnwebcode.com\/basic-css-selectors\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/learnwebcode.com\/wp-content\/uploads\/2010\/02\/css-selectors-1.gif\",\"articleSection\":[\"CSS Lessons\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/learnwebcode.com\/basic-css-selectors\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/learnwebcode.com\/basic-css-selectors\/\",\"url\":\"https:\/\/learnwebcode.com\/basic-css-selectors\/\",\"name\":\"CSS Lesson 3: Basic CSS Selectors - LearnWebCode\",\"isPartOf\":{\"@id\":\"https:\/\/learnwebcode.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/learnwebcode.com\/basic-css-selectors\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/learnwebcode.com\/basic-css-selectors\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/learnwebcode.com\/wp-content\/uploads\/2010\/02\/css-selectors-1.gif\",\"datePublished\":\"2012-05-04T23:58:30+00:00\",\"dateModified\":\"2016-03-29T01:18:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/learnwebcode.com\/basic-css-selectors\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/learnwebcode.com\/basic-css-selectors\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/learnwebcode.com\/basic-css-selectors\/#primaryimage\",\"url\":\"https:\/\/learnwebcode.com\/wp-content\/uploads\/2010\/02\/css-selectors-1.gif\",\"contentUrl\":\"https:\/\/learnwebcode.com\/wp-content\/uploads\/2010\/02\/css-selectors-1.gif\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/learnwebcode.com\/basic-css-selectors\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/learnwebcode.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CSS Lesson 3: Basic CSS Selectors\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/learnwebcode.com\/#website\",\"url\":\"https:\/\/learnwebcode.com\/\",\"name\":\"LearnWebCode\",\"description\":\"Become a Web Developer\",\"publisher\":{\"@id\":\"https:\/\/learnwebcode.com\/#\/schema\/person\/db825ebc5a08e39b01de31771e4c7fe6\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/learnwebcode.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/learnwebcode.com\/#\/schema\/person\/db825ebc5a08e39b01de31771e4c7fe6\",\"name\":\"Brad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/learnwebcode.com\/wp-content\/uploads\/0UWl0Tet_400x400.jpg\",\"url\":\"https:\/\/learnwebcode.com\/wp-content\/uploads\/0UWl0Tet_400x400.jpg\",\"contentUrl\":\"https:\/\/learnwebcode.com\/wp-content\/uploads\/0UWl0Tet_400x400.jpg\",\"width\":400,\"height\":400,\"caption\":\"Brad\"},\"logo\":{\"@id\":\"https:\/\/learnwebcode.com\/wp-content\/uploads\/0UWl0Tet_400x400.jpg\"},\"url\":\"https:\/\/learnwebcode.com\/author\/lwcadmin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CSS Lesson 3: Basic CSS Selectors - LearnWebCode","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:\/\/learnwebcode.com\/basic-css-selectors\/","og_locale":"en_US","og_type":"article","og_title":"CSS Lesson 3: Basic CSS Selectors - LearnWebCode","og_description":"CSS Selectors allow us to target specific HTML elements with our style sheets.\u00a0 While there are many different types of CSS Selectors, today&#8217;s lesson focuses on the four essential selectors; Type, ID, Class and Descendant selectors. First We Need a Page To Style CSS isn&#8217;t very useful without a page to style.\u00a0 Create a blank [&hellip;]","og_url":"https:\/\/learnwebcode.com\/basic-css-selectors\/","og_site_name":"LearnWebCode","article_published_time":"2012-05-04T23:58:30+00:00","article_modified_time":"2016-03-29T01:18:19+00:00","og_image":[{"url":"https:\/\/learnwebcode.com\/wp-content\/uploads\/2010\/02\/css-selectors-1.gif","type":"","width":"","height":""}],"author":"Brad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Brad","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/learnwebcode.com\/basic-css-selectors\/#article","isPartOf":{"@id":"https:\/\/learnwebcode.com\/basic-css-selectors\/"},"author":{"name":"Brad","@id":"https:\/\/learnwebcode.com\/#\/schema\/person\/db825ebc5a08e39b01de31771e4c7fe6"},"headline":"CSS Lesson 3: Basic CSS Selectors","datePublished":"2012-05-04T23:58:30+00:00","dateModified":"2016-03-29T01:18:19+00:00","mainEntityOfPage":{"@id":"https:\/\/learnwebcode.com\/basic-css-selectors\/"},"wordCount":938,"commentCount":16,"publisher":{"@id":"https:\/\/learnwebcode.com\/#\/schema\/person\/db825ebc5a08e39b01de31771e4c7fe6"},"image":{"@id":"https:\/\/learnwebcode.com\/basic-css-selectors\/#primaryimage"},"thumbnailUrl":"https:\/\/learnwebcode.com\/wp-content\/uploads\/2010\/02\/css-selectors-1.gif","articleSection":["CSS Lessons"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/learnwebcode.com\/basic-css-selectors\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/learnwebcode.com\/basic-css-selectors\/","url":"https:\/\/learnwebcode.com\/basic-css-selectors\/","name":"CSS Lesson 3: Basic CSS Selectors - LearnWebCode","isPartOf":{"@id":"https:\/\/learnwebcode.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/learnwebcode.com\/basic-css-selectors\/#primaryimage"},"image":{"@id":"https:\/\/learnwebcode.com\/basic-css-selectors\/#primaryimage"},"thumbnailUrl":"https:\/\/learnwebcode.com\/wp-content\/uploads\/2010\/02\/css-selectors-1.gif","datePublished":"2012-05-04T23:58:30+00:00","dateModified":"2016-03-29T01:18:19+00:00","breadcrumb":{"@id":"https:\/\/learnwebcode.com\/basic-css-selectors\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/learnwebcode.com\/basic-css-selectors\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/learnwebcode.com\/basic-css-selectors\/#primaryimage","url":"https:\/\/learnwebcode.com\/wp-content\/uploads\/2010\/02\/css-selectors-1.gif","contentUrl":"https:\/\/learnwebcode.com\/wp-content\/uploads\/2010\/02\/css-selectors-1.gif"},{"@type":"BreadcrumbList","@id":"https:\/\/learnwebcode.com\/basic-css-selectors\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/learnwebcode.com\/"},{"@type":"ListItem","position":2,"name":"CSS Lesson 3: Basic CSS Selectors"}]},{"@type":"WebSite","@id":"https:\/\/learnwebcode.com\/#website","url":"https:\/\/learnwebcode.com\/","name":"LearnWebCode","description":"Become a Web Developer","publisher":{"@id":"https:\/\/learnwebcode.com\/#\/schema\/person\/db825ebc5a08e39b01de31771e4c7fe6"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/learnwebcode.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/learnwebcode.com\/#\/schema\/person\/db825ebc5a08e39b01de31771e4c7fe6","name":"Brad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/learnwebcode.com\/wp-content\/uploads\/0UWl0Tet_400x400.jpg","url":"https:\/\/learnwebcode.com\/wp-content\/uploads\/0UWl0Tet_400x400.jpg","contentUrl":"https:\/\/learnwebcode.com\/wp-content\/uploads\/0UWl0Tet_400x400.jpg","width":400,"height":400,"caption":"Brad"},"logo":{"@id":"https:\/\/learnwebcode.com\/wp-content\/uploads\/0UWl0Tet_400x400.jpg"},"url":"https:\/\/learnwebcode.com\/author\/lwcadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/learnwebcode.com\/wp-json\/wp\/v2\/posts\/21","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/learnwebcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/learnwebcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/learnwebcode.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/learnwebcode.com\/wp-json\/wp\/v2\/comments?post=21"}],"version-history":[{"count":13,"href":"https:\/\/learnwebcode.com\/wp-json\/wp\/v2\/posts\/21\/revisions"}],"predecessor-version":[{"id":1001,"href":"https:\/\/learnwebcode.com\/wp-json\/wp\/v2\/posts\/21\/revisions\/1001"}],"wp:attachment":[{"href":"https:\/\/learnwebcode.com\/wp-json\/wp\/v2\/media?parent=21"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/learnwebcode.com\/wp-json\/wp\/v2\/categories?post=21"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/learnwebcode.com\/wp-json\/wp\/v2\/tags?post=21"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}