{"id":20,"date":"2024-01-16T20:00:00","date_gmt":"2024-01-16T20:00:00","guid":{"rendered":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/?p=20"},"modified":"2024-03-27T14:52:38","modified_gmt":"2024-03-27T14:52:38","slug":"css-basics","status":"publish","type":"post","link":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/css-basics\/","title":{"rendered":"Introduction to CSS \ud83d\ude80"},"content":{"rendered":"\n<p>So far we\u2019ve worked with HTML alone.<\/p>\n\n\n\n<p>While HTML forms the backbone of web content, the need for customization and visual appeal leads us to Cascading Style Sheets (CSS). CSS is a web standard designed for styling HTML elements, allowing us to control the presentation and layout of our web pages.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"css-rule-example\">CSS Rule Example<\/h3>\n\n\n\n<p>Here&#8217;s a basic example of a CSS rule that styles paragraph tags:<\/p>\n\n\n\n<pre class=\"wp-block-code lang-css\"><code>p {\n  color: red;\n}\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Selector (<code>p<\/code>):<\/strong> Identifies the HTML element to which the styling rules will be applied.<\/li>\n\n\n\n<li><strong>Declaration Block (<code>{ color: red; }<\/code>):<\/strong> Contains one or more declarations. Each declaration comprises a property (<code>color<\/code>) and its corresponding value (<code>red<\/code>).<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"applying-css\">Applying CSS<\/h3>\n\n\n\n<p>CSS can be applied in various ways:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"1-inline-style\">1. Inline Style<\/h4>\n\n\n\n<pre class=\"wp-block-code lang-css\"><code>&lt;p style=\"color: red;\"&gt;This is a red paragraph.&lt;\/p&gt;<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"2-internal-style-within-html-document\">2. Internal Style (Within HTML Document)<\/h4>\n\n\n\n<pre class=\"wp-block-code lang-html\"><code>&lt;head&gt;\n  &lt;style&gt;\n    p {\n      color: red;\n    }\n  &lt;\/style&gt;\n&lt;\/head&gt;\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"3-external-style-in-separate-css-file\">3. External Style (In Separate CSS File)<\/h4>\n\n\n\n<pre class=\"wp-block-code lang-html\"><code>&lt;head&gt;\n  &lt;link href=\"style.css\" rel=\"stylesheet\" \/&gt;\n&lt;\/head&gt;\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"multiple-css-rules\">Multiple CSS Rules<\/h3>\n\n\n\n<p>You can list multiple CSS rules to apply different styles to various elements:<\/p>\n\n\n\n<pre class=\"wp-block-code lang-css\"><code>p {\n  color: red;\n}\n\na {\n  color: blue;\n}\n<\/code><\/pre>\n\n\n\n<p>A selector can target one or more items:<\/p>\n\n\n\n<pre class=\"wp-block-code lang-css\"><code>p, a {\n  color: red;\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"selectors-and-spacing\">Selectors and Spacing<\/h3>\n\n\n\n<p>Selectors can target one or more items, and spacing is insignificant in CSS:<\/p>\n\n\n\n<pre class=\"wp-block-code lang-css\"><code>p,a {\n  color: red;}\n<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code lang-css\"><code>p,a {              color: red;\n         }\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"best-practices\">Best Practices<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Each declaration in the declaration block should end with a semicolon (<code>;<\/code>).<\/li>\n\n\n\n<li>Proper indentation and spacing enhance readability but are not required by the browser.<\/li>\n<\/ul>\n\n\n\n<p>Understanding these fundamental concepts equips you to enhance the visual aspects of your HTML documents using CSS. As you delve deeper, you&#8217;ll discover the versatility and power CSS brings to web development. Stay tuned for more insights into advanced CSS techniques and best practices.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So far we\u2019ve worked with HTML alone. While HTML forms the backbone of web content, the need for customization and visual appeal leads us to&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,21,22],"tags":[],"class_list":["post-20","post","type-post","status-publish","format-standard","hentry","category-3-css","category-1-fundamentals","category-2-html"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Introduction to CSS \ud83d\ude80 - Zento<\/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:\/\/themes.estudiopatagon.com\/wordpress\/zento\/css-basics\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Introduction to CSS \ud83d\ude80 - Zento\" \/>\n<meta property=\"og:description\" content=\"So far we\u2019ve worked with HTML alone. While HTML forms the backbone of web content, the need for customization and visual appeal leads us to...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/css-basics\/\" \/>\n<meta property=\"og:site_name\" content=\"Zento\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-16T20:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-27T14:52:38+00:00\" \/>\n<meta name=\"author\" content=\"Jonathan Doe\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jonathan Doe\" \/>\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\":\"WebPage\",\"@id\":\"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/css-basics\/\",\"url\":\"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/css-basics\/\",\"name\":\"Introduction to CSS \ud83d\ude80 - Zento\",\"isPartOf\":{\"@id\":\"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/#website\"},\"datePublished\":\"2024-01-16T20:00:00+00:00\",\"dateModified\":\"2024-03-27T14:52:38+00:00\",\"author\":{\"@id\":\"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/#\/schema\/person\/73c40f6ccae14171f66e46de64b7ba55\"},\"breadcrumb\":{\"@id\":\"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/css-basics\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/css-basics\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/css-basics\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Introduction to CSS \ud83d\ude80\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/#website\",\"url\":\"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/\",\"name\":\"Zento\",\"description\":\"Thoughts, stories and ideas.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/#\/schema\/person\/73c40f6ccae14171f66e46de64b7ba55\",\"name\":\"Jonathan Doe\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a726515546b3cba9511994084a492b5a58cf40acd8faff68586319f1844de21a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a726515546b3cba9511994084a492b5a58cf40acd8faff68586319f1844de21a?s=96&d=mm&r=g\",\"caption\":\"Jonathan Doe\"},\"description\":\"Actively writing articles for this website. I really like traveling and photography, follow me on @Twitter i share content there everyday.\",\"sameAs\":[\"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\"],\"url\":\"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Introduction to CSS \ud83d\ude80 - Zento","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:\/\/themes.estudiopatagon.com\/wordpress\/zento\/css-basics\/","og_locale":"en_US","og_type":"article","og_title":"Introduction to CSS \ud83d\ude80 - Zento","og_description":"So far we\u2019ve worked with HTML alone. While HTML forms the backbone of web content, the need for customization and visual appeal leads us to...","og_url":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/css-basics\/","og_site_name":"Zento","article_published_time":"2024-01-16T20:00:00+00:00","article_modified_time":"2024-03-27T14:52:38+00:00","author":"Jonathan Doe","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jonathan Doe","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/css-basics\/","url":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/css-basics\/","name":"Introduction to CSS \ud83d\ude80 - Zento","isPartOf":{"@id":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/#website"},"datePublished":"2024-01-16T20:00:00+00:00","dateModified":"2024-03-27T14:52:38+00:00","author":{"@id":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/#\/schema\/person\/73c40f6ccae14171f66e46de64b7ba55"},"breadcrumb":{"@id":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/css-basics\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/css-basics\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/css-basics\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/"},{"@type":"ListItem","position":2,"name":"Introduction to CSS \ud83d\ude80"}]},{"@type":"WebSite","@id":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/#website","url":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/","name":"Zento","description":"Thoughts, stories and ideas.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/#\/schema\/person\/73c40f6ccae14171f66e46de64b7ba55","name":"Jonathan Doe","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a726515546b3cba9511994084a492b5a58cf40acd8faff68586319f1844de21a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a726515546b3cba9511994084a492b5a58cf40acd8faff68586319f1844de21a?s=96&d=mm&r=g","caption":"Jonathan Doe"},"description":"Actively writing articles for this website. I really like traveling and photography, follow me on @Twitter i share content there everyday.","sameAs":["https:\/\/themes.estudiopatagon.com\/wordpress\/zento"],"url":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/author\/admin\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/wp-json\/wp\/v2\/posts\/20","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/wp-json\/wp\/v2\/comments?post=20"}],"version-history":[{"count":1,"href":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/wp-json\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":74,"href":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/wp-json\/wp\/v2\/posts\/20\/revisions\/74"}],"wp:attachment":[{"href":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/wp-json\/wp\/v2\/categories?post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themes.estudiopatagon.com\/wordpress\/zento\/wp-json\/wp\/v2\/tags?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}