{"id":770,"date":"2024-03-22T13:49:19","date_gmt":"2024-03-22T13:49:19","guid":{"rendered":"https:\/\/dev-w3-bangla.pantheonsite.io\/?post_type=courses&#038;p=770"},"modified":"2024-03-22T13:59:43","modified_gmt":"2024-03-22T13:59:43","slug":"css","status":"publish","type":"courses","link":"https:\/\/w3bangla.com\/en\/courses\/css\/","title":{"rendered":"CSS"},"content":{"rendered":"<p><strong>CSS (Cascading Style Sheets)<\/strong>\u00a0is a powerful language used in web development to control how HTML elements are presented on screen, paper, or other media. Let\u2019s dive into the details:<\/p>\n<ol>\n<li><strong>What CSS Does:<\/strong>\n<ul>\n<li><strong>Styling<\/strong>: CSS defines the\u00a0<strong>styling<\/strong>\u00a0of web pages, including layout, colors, fonts, and animations.<\/li>\n<li><strong>Separation of Concerns<\/strong>: It separates content (HTML) from appearance (CSS), making code more modular and maintainable.<\/li>\n<li><strong>Flexibility<\/strong>: CSS allows you to create diverse designs and adapt to different devices.<\/li>\n<\/ul>\n<\/li>\n<li><strong>How CSS Works:<\/strong>\n<ul>\n<li>CSS is\u00a0<strong>rule-based<\/strong>. You define rules specifying styles for specific elements or groups of elements.<\/li>\n<li>For example, you can make your main heading appear as large red text using the following simple CSS rule:\n<div class=\"code-header\"><span class=\"code-lang\">CSS<\/span><\/p>\n<div class=\"code-actions\"><\/div>\n<\/div>\n<div class=\"code\">\n<pre><code class=\"language-css\"><span class=\"hljs-selector-tag\">h1<\/span> {\r\n  <span class=\"hljs-attribute\">color<\/span>: red;\r\n  <span class=\"hljs-attribute\">f<\/span><\/code><\/pre>\n<pre><code class=\"language-css\"> <span class=\"hljs-attribute\">font-size<\/span>: <span class=\"hljs-number\">5em<\/span>;\r\n}<\/code>\r\n\r\n\r\n<\/pre>\n<ol>\n<li>\n<ul>\n<li>Here,\u00a0<code>h1<\/code>\u00a0refers to the main heading element, and we set its color to red and font size to 5 times the default size.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Browser Default Styles:<\/strong>\n<ul>\n<li>When you view an HTML page in a browser, you see basic styles applied by default.<\/li>\n<li>These styles ensure basic readability even if no explicit styling is specified.<\/li>\n<li>However, CSS lets you take control and create visually appealing designs.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Use Cases for CSS:<\/strong>\n<ul>\n<li><strong>Text Styling<\/strong>: Change font properties, colors, and alignment.<\/li>\n<li><strong>Layout<\/strong>: Create multi-column layouts, responsive designs, and grids.<\/li>\n<li><strong>Effects<\/strong>: Add animations, transitions, and interactive elements.<\/li>\n<\/ul>\n<\/li>\n<li><strong>External Stylesheets<\/strong>:\n<ul>\n<li>CSS rules can be stored in separate files (external stylesheets).<\/li>\n<li>These files are linked to HTML documents, allowing consistent styling across multiple pages.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>Remember, CSS empowers you to transform plain HTML into beautifully styled web pages. Explore its features, experiment, and enjoy the creative possibilities!<\/p>\n<\/div>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>CSS (Cascading Style Sheets)\u00a0is a powerful language used in web development to control how HTML elements are presented on screen, paper, or other media. Let\u2019s dive into the details: What CSS Does: Styling: CSS defines the\u00a0styling\u00a0of web pages, including layout, colors, fonts, and animations. Separation of Concerns: It separates content (HTML) from appearance (CSS), making [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":782,"template":"","course-category":[44],"course-tag":[],"class_list":["post-770","courses","type-courses","status-publish","has-post-thumbnail","hentry","course-category-web-development-courses"],"blocksy_meta":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/w3bangla.com\/en\/wp-json\/wp\/v2\/courses\/770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/w3bangla.com\/en\/wp-json\/wp\/v2\/courses"}],"about":[{"href":"https:\/\/w3bangla.com\/en\/wp-json\/wp\/v2\/types\/courses"}],"author":[{"embeddable":true,"href":"https:\/\/w3bangla.com\/en\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/w3bangla.com\/en\/wp-json\/wp\/v2\/courses\/770\/revisions"}],"predecessor-version":[{"id":792,"href":"https:\/\/w3bangla.com\/en\/wp-json\/wp\/v2\/courses\/770\/revisions\/792"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/w3bangla.com\/en\/wp-json\/wp\/v2\/media\/782"}],"wp:attachment":[{"href":"https:\/\/w3bangla.com\/en\/wp-json\/wp\/v2\/media?parent=770"}],"wp:term":[{"taxonomy":"course-category","embeddable":true,"href":"https:\/\/w3bangla.com\/en\/wp-json\/wp\/v2\/course-category?post=770"},{"taxonomy":"course-tag","embeddable":true,"href":"https:\/\/w3bangla.com\/en\/wp-json\/wp\/v2\/course-tag?post=770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}