{"id":17597,"date":"2020-05-30T00:08:05","date_gmt":"2020-05-30T07:08:05","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=17597"},"modified":"2023-12-01T03:05:13","modified_gmt":"2023-12-01T11:05:13","slug":"css-syntax","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/css-syntax\/","title":{"rendered":"CSS Syntax"},"content":{"rendered":"\n<p>The first topic you\u2019ll need to master before writing code using CSS is syntax. The word <code>syntax<\/code> may sound intimidating, but it simply refers to the rules we use in CSS to write out code. These rules are standard, which makes it easy to read other people\u2019s code.<br><\/p>\n\n\n\n<p>The two most important parts of CSS syntax are selectors and declaration blocks. Selectors are used to point to the element(s) to which you want to apply a style on a web page, and declaration blocks outline the styles you want to apply to the elements you have selected.<br><\/p>\n\n\n\n<p>This tutorial will discuss, with examples, the basics of CSS syntax, and the structure of CSS styles. We\u2019ll also discuss how to write comments in CSS. By the end of reading this tutorial, you\u2019ll have the knowledge you need to write your own CSS styles.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CSS Style Rules<\/h2>\n\n\n\n<p>In CSS, a stylesheet stores a set of rules that determine how a website should appear on a user\u2019s screen. For instance, a stylesheet may outline the color of text on a web page or the font size used by a particular header.<br><\/p>\n\n\n\n<p>These rules follow a standard structure, which is made up of two parts: selectors and declarations. Overall, this is how a style rule appears in CSS:<br><\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>h1 {\n\tcolor: blue;\n}<\/pre><\/div>\n\n\n\n<p>This particular style sets the color of all <code>&lt;h1&gt;<\/code> elements on a web page to blue. Now, let\u2019s break this style down into its two component parts so that we can analyze how it works.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CSS Declarations<\/h2>\n\n\n\n<p>The first part of a CSS style is the declarations. <code>Declaration<\/code> is another word for a particular style that you want to apply to an element on a web page.<br><\/p>\n\n\n\n<p>A CSS style rule must include at least one declaration and can include as many declarations as you want. So, if you want to set the width and height of a box on a web page to 100px, and set its background color to blue, you could do so in one declaration.<br><\/p>\n\n\n\n<p>Declarations consist of two parts, which are as follows:<br><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Properties. These are the style properties that should be applied to an element (i.e. color, background-color, width, height).<\/li>\n\n\n\n<li>Value. This part tells the browser how the property should be displayed (i.e., the color of a box could be set to \u201cgreen\u201d or \u201cred\u201d).<\/li>\n<\/ul>\n\n\n\n<p>Here is the syntax for a CSS declaration:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>property: value;<\/pre><\/div>\n\n\n\n<p>Notice that our CSS property appears first, and is then separated by a colon (:). After the colon comes the value we want to assign to the property we have defined.<br><\/p>\n\n\n\n<p>Each CSS declaration should end in a semi-colon (;).<br><\/p>\n\n\n\n<p>Here is an example of two CSS declarations:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>color: blue;\nfont-size: 16px;<\/pre><\/div>\n\n\n\n<p>The first declaration sets the font color of an HTML element to \u201cblue\u201d. The second declaration sets the font size of a single element to \u201c16px\u201d. Both these selectors start with a property name and are followed by a comma and the value which we want to assign to the property.<br><\/p>\n\n\n\n<p>Declarations are stored within curly brackets.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CSS Selectors<\/h2>\n\n\n\n<p>In the last section, we discussed how declarations are used to apply styles to a web element. But declarations are only one part of the CSS syntax. The other part is selectors, which tell the browser which element a particular set of declarations should apply to.<br><\/p>\n\n\n\n<p>Here is the syntax for a CSS selector:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>selector {\n\t\/\/ List of declarations\n}<\/pre><\/div>\n\n\n\n<p>The selector instructs the browser which element(s) to which a set of styles should apply. So, for instance, if we wanted to set the width of all <code>&lt;div&gt;<\/code> elements to \u201c500px\u201d, we could do so using this rule:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>div {\n\twidth: 500px;\n}<\/pre><\/div>\n\n\n\n<p>The <code>div<\/code> is our selector in this case and comes at the start of our CSS rule. Then, we define our declarations in curly brackets, using the syntax we discussed earlier. This rule sets the width of all <code>&lt;div&gt;<\/code> elements on a web page to \u201c500px\u201d.<br><\/p>\n\n\n\n<p>If you\u2019re interested in learning more about CSS selectors, read our <a href=\"https:\/\/careerkarma.com\/blog\/css-selectors\">beginner\u2019s guide to CSS selectors<\/a>.<br><\/p>\n\n\n\n<p>Together, declarations and selectors make up a CSS style rule.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">CSS Comments<\/h2>\n\n\n\n<p>So far, we\u2019ve discussed how to write style rules in CSS. However, not all the text written in a style sheet is style rules.<br><\/p>\n\n\n\n<p>CSS style sheets are also capable of storing comments. Comments are blocks of text written by a developer with the purpose of making it easier to understand the code in a stylesheet. Comments are ignored by the browser, so you can add as many comments to a stylesheet as you want.<br><\/p>\n\n\n\n<p>Writing comments is beneficial for a number of reasons.<br><\/p>\n\n\n\n<p>First, writing comments allow you to keep track of your code as you write it, and gives you a record of your thoughts to which you can refer if you need help understanding a block of code in the future. Second, writing comments will allow developers who have not written a block of code to understand its purpose and your intent behind writing the code.<br><\/p>\n\n\n\n<p>CSS comments start with the \/* syntax and end with the *\/ syntax.<br><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Single-Line and Multi-Line Comments<\/h3>\n\n\n\n<p>There are two types of comments that can appear in CSS: single-line and multi-line.&nbsp;<br><\/p>\n\n\n\n<p>Single-line comments are comments that only span one line on a style sheet. Here\u2019s an example of a single-line comment in CSS that appears above a style rule:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>\/* This style sets the font size of all &lt;p&gt; tags to 16px *\/\np {\n\tfont-size: 16px;\n}<\/pre><\/div>\n\n\n\n<p>In this code, our comment appears between the \/* and *\/ markers. Below our comment is a style rule, which uses the syntax we discussed earlier.<br><\/p>\n\n\n\n<p>Multi-line comments are comments that span more than one line on a style sheet. Here\u2019s an example of a CSS multi-line comment:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>\/* This style sets the font size of all &lt;p&gt; tags to 16px\nand also sets the color of the text to gray *\/\np {\n\tfont-size: 16px;\n\tcolor: gray;\n}<\/pre><\/div>\n\n\n\n<p>This comment spans across two lines and describes a CSS style.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Like any programming language, CSS has some basic syntax to define how you can write code using the language.<br><\/p>\n\n\n\n<p>In CSS, there are two components that make up a style rule: declarations and selectors. Declarations are the styles to which you want to apply to an element, and selectors are used to select the elements to which your declarations will be applied.<br><\/p>\n\n\n\n<p>In addition, CSS has a commenting feature that allows you to write notes on your code for future reference. Comments are ignored by the browser.<br><\/p>\n\n\n\n<p>This tutorial discussed the basics of CSS syntax and how to comment on a CSS style sheet. Now you\u2019re ready to start writing CSS style rules and comments like a professional web developer!<\/p>\n","protected":false},"excerpt":{"rendered":"The first topic you\u2019ll need to master before writing code using CSS is syntax. The word syntax may sound intimidating, but it simply refers to the rules we use in CSS to write out code. These rules are standard, which makes it easy to read other people\u2019s code. The two most important parts of CSS&hellip;","protected":false},"author":240,"featured_media":17598,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[17287],"tags":[],"class_list":{"0":"post-17597","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-css"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"CSS","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":"","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>CSS Syntax: learn about electors and declaration blocks<\/title>\n<meta name=\"description\" content=\"The two components that make up the CSS syntax for style rules are declarations and selectors. On Career Karma, learn the basics of syntax with CSS.\" \/>\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\/css-syntax\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CSS Syntax\" \/>\n<meta property=\"og:description\" content=\"The two components that make up the CSS syntax for style rules are declarations and selectors. On Career Karma, learn the basics of syntax with CSS.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/css-syntax\/\" \/>\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-05-30T07:08:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T11:05:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/photo-of-woman-using-laptop-3194518-1.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=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-syntax\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-syntax\\\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"CSS Syntax\",\"datePublished\":\"2020-05-30T07:08:05+00:00\",\"dateModified\":\"2023-12-01T11:05:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-syntax\\\/\"},\"wordCount\":1061,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-syntax\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/photo-of-woman-using-laptop-3194518-1.jpg\",\"articleSection\":[\"CSS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-syntax\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-syntax\\\/\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-syntax\\\/\",\"name\":\"CSS Syntax: learn about electors and declaration blocks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-syntax\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-syntax\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/photo-of-woman-using-laptop-3194518-1.jpg\",\"datePublished\":\"2020-05-30T07:08:05+00:00\",\"dateModified\":\"2023-12-01T11:05:13+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/#\\\/schema\\\/person\\\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"The two components that make up the CSS syntax for style rules are declarations and selectors. On Career Karma, learn the basics of syntax with CSS.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-syntax\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-syntax\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-syntax\\\/#primaryimage\",\"url\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/photo-of-woman-using-laptop-3194518-1.jpg\",\"contentUrl\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/05\\\/photo-of-woman-using-laptop-3194518-1.jpg\",\"width\":1020,\"height\":680},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css-syntax\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"CSS\",\"item\":\"https:\\\/\\\/careerkarma.com\\\/blog\\\/css\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"CSS Syntax\"}]},{\"@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":"CSS Syntax: learn about electors and declaration blocks","description":"The two components that make up the CSS syntax for style rules are declarations and selectors. On Career Karma, learn the basics of syntax with CSS.","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\/css-syntax\/","og_locale":"en_US","og_type":"article","og_title":"CSS Syntax","og_description":"The two components that make up the CSS syntax for style rules are declarations and selectors. On Career Karma, learn the basics of syntax with CSS.","og_url":"https:\/\/careerkarma.com\/blog\/css-syntax\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-05-30T07:08:05+00:00","article_modified_time":"2023-12-01T11:05:13+00:00","og_image":[{"width":1020,"height":680,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/photo-of-woman-using-laptop-3194518-1.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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/css-syntax\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/css-syntax\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"CSS Syntax","datePublished":"2020-05-30T07:08:05+00:00","dateModified":"2023-12-01T11:05:13+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/css-syntax\/"},"wordCount":1061,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/css-syntax\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/photo-of-woman-using-laptop-3194518-1.jpg","articleSection":["CSS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/css-syntax\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/css-syntax\/","url":"https:\/\/careerkarma.com\/blog\/css-syntax\/","name":"CSS Syntax: learn about electors and declaration blocks","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/css-syntax\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/css-syntax\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/photo-of-woman-using-laptop-3194518-1.jpg","datePublished":"2020-05-30T07:08:05+00:00","dateModified":"2023-12-01T11:05:13+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"The two components that make up the CSS syntax for style rules are declarations and selectors. On Career Karma, learn the basics of syntax with CSS.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/css-syntax\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/css-syntax\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/css-syntax\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/photo-of-woman-using-laptop-3194518-1.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/05\/photo-of-woman-using-laptop-3194518-1.jpg","width":1020,"height":680},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/css-syntax\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"CSS","item":"https:\/\/careerkarma.com\/blog\/css\/"},{"@type":"ListItem","position":3,"name":"CSS Syntax"}]},{"@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\/17597","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=17597"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/17597\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/17598"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=17597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=17597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=17597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}