<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CSS &#8211; flurin&#039;s lernjournal</title>
	<atom:link href="https://flurin-lernjournal.hosttech.ch/category/lernjournal/hosttech/css/feed/" rel="self" type="application/rss+xml" />
	<link>https://flurin-lernjournal.hosttech.ch</link>
	<description></description>
	<lastBuildDate>Mon, 12 Oct 2026 10:27:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://flurin-lernjournal.hosttech.ch/wp-content/uploads/2024/08/Nature-11-150x150.jpg</url>
	<title>CSS &#8211; flurin&#039;s lernjournal</title>
	<link>https://flurin-lernjournal.hosttech.ch</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Myhosttech and Wonderland</title>
		<link>https://flurin-lernjournal.hosttech.ch/myhosttech-amdwonderland/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Mon, 08 Sep 2025 11:56:05 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Erklärungen]]></category>
		<category><![CDATA[hosttech]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Lernjournal]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wonderland]]></category>
		<guid isPermaLink="false">https://flurin-lernjournal.hosttech.ch/?p=1174</guid>

					<description><![CDATA[URL build example: &#8220;myhosttech.test/admin-inventory/systems&#8221; The text after the first &#8220;/&#8221; so &#8220;admin-inventory&#8221; is the controller so in this instance &#8220;AdminInventoryController.php&#8221;.The text after the second &#8220;/&#8221; so &#8220;systems&#8221; is the function inside said controller, though here to note is that it might be a shortened version since in this instance the function is &#8220;systemsAction&#8221;. Myhosttech Framework:&#160;LaravelConfig-File:&#160;.env [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading has-large-font-size">URL build</h2>



<p class="has-small-font-size wp-block-paragraph">example: &#8220;myhosttech.test/admin-inventory/systems&#8221;</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="740" src="https://flurin-lernjournal.hosttech.ch/wp-content/uploads/2025/09/hosttech-url-1024x740.png" alt="" class="wp-image-1591" srcset="https://flurin-lernjournal.hosttech.ch/wp-content/uploads/2025/09/hosttech-url-1024x740.png 1024w, https://flurin-lernjournal.hosttech.ch/wp-content/uploads/2025/09/hosttech-url-300x217.png 300w, https://flurin-lernjournal.hosttech.ch/wp-content/uploads/2025/09/hosttech-url-768x555.png 768w, https://flurin-lernjournal.hosttech.ch/wp-content/uploads/2025/09/hosttech-url.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="has-small-font-size wp-block-paragraph">The text after the first &#8220;/&#8221; so &#8220;admin-inventory&#8221; is the controller so in this instance &#8220;AdminInventoryController.php&#8221;.<br>The text after the second &#8220;/&#8221; so &#8220;systems&#8221; is the function inside said controller, though here to note is that it might be a shortened version since in this instance the function is &#8220;systemsAction&#8221;.</p>



<h2 class="wp-block-heading has-large-font-size">Myhosttech</h2>



<p class="has-small-font-size wp-block-paragraph"><strong>Framework:</strong>&nbsp;Laravel<br><strong>Config-File:</strong>&nbsp;<code>.env</code></p>



<h3 class="wp-block-heading has-medium-font-size">Where to find the Folders?</h3>



<p class="has-small-font-size wp-block-paragraph"><strong>Models</strong>: app/models/<br><strong>View</strong>: resources/views/ (NAME.blade.php)<br><strong>Controller</strong>: app/Api/Wonderland/User/v1/Controllers/<br><strong>Livewire</strong>: app/Http/Livewire/<br><strong>Livewire-Views</strong>: resources/views/livewire/</p>



<h2 class="wp-block-heading has-large-font-size">Wonderland</h2>



<p class="has-small-font-size wp-block-paragraph"><strong>Framework:</strong>&nbsp;Zend 1<br><strong>Config-File:</strong>&nbsp;<code>application/configuration/config.ini</code></p>



<h3 class="wp-block-heading has-medium-font-size">Where to find the Folders?</h3>



<p class="has-small-font-size wp-block-paragraph"><strong>Models</strong>: application/models<br><strong>View</strong>: application/views/ (.phtml files get their data from the controllers)<br><strong>Controller</strong>: application/controllers/</p>



<p class="has-medium-font-size wp-block-paragraph">Wonderland (admin):</p>



<p class="has-small-font-size wp-block-paragraph"><strong>View</strong>: application/views/<br><strong>Controller</strong>: application/controllers/</p>



<figure class="wp-block-table is-style-regular"><table><thead><tr><th class="has-text-align-center" data-align="center">Code</th><th class="has-text-align-center" data-align="center"><strong>Website (URL and / or Image)</strong></th><th class="has-text-align-center" data-align="center"><strong>Documentation</strong></th></tr></thead><tbody><tr><td class="has-text-align-center" data-align="center">View: <br>scripts/admin/index.phtml<br>Controller: <br>AdminController.php </td><td class="has-text-align-center" data-align="center">&#8216;/&#8217; =&gt; &#8216;/admin&#8217;<br>&#8216;/admin&#8217; =&gt; &#8216;/admin&#8217;<br>&#8216;/admin/index&#8217; =&gt; &#8216;/admin&#8217;</td><td class="has-text-align-center" data-align="center">&#8211;</td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>scripts/admin/externallinks.phtml<br>Controller:</td><td class="has-text-align-center" data-align="center">&#8216;/admin/externallinks&#8217; =&gt; &#8216;/admin/externallinks&#8217;<br>&#8216;/admin/externallinks#&#8217; =&gt; &#8216;/admin/externallinks#&#8217;</td><td class="has-text-align-center" data-align="center">&#8211;</td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>scripts/admin-tickets/index.phtml<br>Controller:    <br>AdminTicketsController.php</td><td class="has-text-align-center" data-align="center">&#8216;/admin-tickets&#8217; =&gt; &#8216;/admin-tickets/tickets&#8217;<br>&#8216;/admin-tickets/faqintern&#8217; =&gt; &#8216;/admin-tickets/faqintern&#8217;<br>&#8216;/admin-tickets/helpdesk&#8217; =&gt; &#8216;/admin-tickets/helpdesk&#8217;</td><td class="has-text-align-center" data-align="center"><a href="https://bookstack.hosttech.eu/books/wonderland-documentation/page/admin-interface" data-type="link" data-id="https://bookstack.hosttech.eu/books/wonderland-documentation/page/admin-interface" target="_blank" rel="noreferrer noopener">Tickets</a></td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>scripts/admin-statistics/general.phtml<br>Controller: <br>AdminStatisticsController.php</td><td class="has-text-align-center" data-align="center">&#8216;/admin-statistics&#8217; =&gt; &#8216;/admin-statistics/general&#8217;<br>&#8216;/admin-statistics/temperaturedatacenter&#8217; =&gt; <br>&#8216;/admin-statistics/temperaturedatacenter&#8217;</td><td class="has-text-align-center" data-align="center">&#8211;</td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>scripts/admin-accounts/addressrequest.phtml<br>Controller: <br>AdminAccountsController.php</td><td class="has-text-align-center" data-align="center">&#8216;/admin-accounts/addressrequests&#8217; =&gt; <br>&#8216;/admin-accounts/addressrequests&#8217;</td><td class="has-text-align-center" data-align="center">&#8211;</td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>scripts/admin-users/search.phtml<br>Controller:<br>AdminAccountsController.php</td><td class="has-text-align-center" data-align="center">&#8216;/admin-users/search&#8217; =&gt; &#8216;/admin-users/search&#8217;</td><td class="has-text-align-center" data-align="center">&#8211;</td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>scripts/admin-domains/overview.phtml<br>Controller:<br>AdminDomainsController.php</td><td class="has-text-align-center" data-align="center">&#8216;/admin-domains/overview&#8217; =&gt; &#8216;/admin-domains/overview&#8217;</td><td class="has-text-align-center" data-align="center"><a href="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/domains" data-type="link" data-id="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/domains" target="_blank" rel="noreferrer noopener">domains</a></td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>scripts/admin-orders/order.phtml<br>Controller:<br>AdminOrdersController.php</td><td class="has-text-align-center" data-align="center">&#8216;/admin-orders&#8217; =&gt; &#8216;/admin-orders/orders&#8217;</td><td class="has-text-align-center" data-align="center"><a href="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/orders" data-type="link" data-id="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/orders" target="_blank" rel="noreferrer noopener">orders </a>&amp; <br><a href="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/order-configurator" data-type="link" data-id="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/order-configurator" target="_blank" rel="noreferrer noopener">order config</a></td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>scripts/admin-servers/index.phtml<br>Controller:<br>AdminServersController.php</td><td class="has-text-align-center" data-align="center">&#8216;/admin-servers&#8217; =&gt; &#8216;/admin-servers&#8217;</td><td class="has-text-align-center" data-align="center"><a href="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/vserverdedicated-server" data-type="link" data-id="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/vserverdedicated-server" target="_blank" rel="noreferrer noopener">server</a></td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>scripts/admin-website/agb.phtml<br>Controller:<br>AdminWebsiteController.php</td><td class="has-text-align-center" data-align="center">&#8216;/admin-website&#8217; =&gt; &#8216;/admin-website/&#8217;<br>&#8216;/admin-website/&#8217; =&gt; &#8216;/admin-website/&#8217;</td><td class="has-text-align-center" data-align="center">&#8211;</td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>scripts/admin-dns/administration.phtml<br>Controller:<br>AdminDnsController.php</td><td class="has-text-align-center" data-align="center">&#8216;/admin-dns&#8217; =&gt; &#8216;/admin-dns&#8217;<br>&#8216;/admin-dns/&#8217; =&gt; &#8216;/admin-dns/&#8217;</td><td class="has-text-align-center" data-align="center">&#8211;</td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>scripts/admin-inventory/search.phtml<br>Controller:<br>AdminInventoryController.php</td><td class="has-text-align-center" data-align="center">&#8216;/admin-inventory&#8217; =&gt; &#8216;/admin-inventory/search&#8217;</td><td class="has-text-align-center" data-align="center"><a href="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/inventory" data-type="link" data-id="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/inventory" target="_blank" rel="noreferrer noopener">inventory</a></td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>scripts/admin-settings/general.phtml<br>Controller:<br>AdminSettingsController.php</td><td class="has-text-align-center" data-align="center">&#8216;/admin-settings&#8217; =&gt; &#8216;/admin-settings/general&#8217;</td><td class="has-text-align-center" data-align="center">&#8211;</td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>scripts/admin-debug/index.phtml<br>Controller:<br>AdminDebugController.php</td><td class="has-text-align-center" data-align="center">&#8216;/admin-debug&#8217; =&gt; &#8216;/admin-debug&#8217;</td><td class="has-text-align-center" data-align="center">&#8211;</td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>scripts/admin-calendar/index.phtml<br>Controller:<br>AdminCalendarController.php</td><td class="has-text-align-center" data-align="center">&#8216;/admin-calendar&#8217; =&gt; &#8216;/admin-calendar&#8217;</td><td class="has-text-align-center" data-align="center">&#8211;</td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>scripts/admin-accounting/index.phtml or <br>paymentsin.phtml<br>Controller:<br>AdminAccountingController.php</td><td class="has-text-align-center" data-align="center">&#8216;/admin-accounting&#8217; =&gt; &#8216;/admin-accounting/paymentsin&#8217;</td><td class="has-text-align-center" data-align="center"><a href="https://bookstack.hosttech.eu/books/wonderland-documentation/page/accounting-statistics" data-type="link" data-id="https://bookstack.hosttech.eu/books/wonderland-documentation/page/accounting-statistics" target="_blank" rel="noreferrer noopener">accounting</a></td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>scripts/auth/<br>Controller:<br>AuthController.php</td><td class="has-text-align-center" data-align="center">&#8216;/auth/logout&#8217; =&gt; &#8216;/auth/logout&#8217;</td><td class="has-text-align-center" data-align="center"><a href="https://bookstack.hosttech.eu/books/wonderland-documentation/page/authentication" data-type="link" data-id="https://bookstack.hosttech.eu/books/wonderland-documentation/page/authentication" target="_blank" rel="noreferrer noopener">auth</a></td></tr></tbody></table></figure>



<p class="wp-block-paragraph">Myhosttech(user):</p>



<p class="has-small-font-size wp-block-paragraph"><strong>View</strong>: resources/views/ (NAME.blade.php)</p>



<figure class="wp-block-table"><table><thead><tr><th class="has-text-align-center" data-align="center">Code</th><th class="has-text-align-center" data-align="center"><strong>Website (URL and / or Image)</strong></th><th class="has-text-align-center" data-align="center">Documentation</th></tr></thead><tbody><tr><td class="has-text-align-center" data-align="center">View:<br>layouts/_user-layout.blade.php</td><td class="has-text-align-center" data-align="center">/user</td><td class="has-text-align-center" data-align="center">&#8211;</td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>layouts/order.blade.php</td><td class="has-text-align-center" data-align="center">/user-products/order</td><td class="has-text-align-center" data-align="center"><a href="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/orders" data-type="link" data-id="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/orders" target="_blank" rel="noreferrer noopener">orders</a></td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>layouts/livewire/domain-search/domain.blade.php</td><td class="has-text-align-center" data-align="center">/user-domains</td><td class="has-text-align-center" data-align="center"><a href="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/domains" data-type="link" data-id="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/domains" target="_blank" rel="noreferrer noopener">domains</a></td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>layouts/livewire/domains/search-gpt/answer.blade.php</td><td class="has-text-align-center" data-align="center">/user/domains/search-gpt</td><td class="has-text-align-center" data-align="center"><a href="https://bookstack.hosttech.eu/books/wonderland-documentation/page/openai" data-type="link" data-id="https://bookstack.hosttech.eu/books/wonderland-documentation/page/openai" target="_blank" rel="noreferrer noopener">gpt</a></td></tr><tr><td class="has-text-align-center" data-align="center">View: maybe<br>components/order-configurator/domains/free-transfer-info.blade.php</td><td class="has-text-align-center" data-align="center">/user-domains/transferinfos</td><td class="has-text-align-center" data-align="center"><a href="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/domains" data-type="link" data-id="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/domains" target="_blank" rel="noreferrer noopener">domains</a></td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>config:<br>config/nameservers.php</td><td class="has-text-align-center" data-align="center">/user-domains/chnameservers</td><td class="has-text-align-center" data-align="center"><a href="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/domains" data-type="link" data-id="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/domains" target="_blank" rel="noreferrer noopener">domains</a></td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>livewire/pages/customer/ticketsystem.blade.php</td><td class="has-text-align-center" data-align="center">/user/ticketsystem</td><td class="has-text-align-center" data-align="center"><a href="https://bookstack.hosttech.eu/books/wonderland-documentation/page/customer-interface" data-type="link" data-id="https://bookstack.hosttech.eu/books/wonderland-documentation/page/customer-interface" target="_blank" rel="noreferrer noopener">tickets</a></td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>livewire/pages/customer/contracts.blade.php</td><td class="has-text-align-center" data-align="center">/user/contracts</td><td class="has-text-align-center" data-align="center">&#8211;</td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>livewire/pages/customer/billing/invoices/all.blade.php</td><td class="has-text-align-center" data-align="center">/user/billing/invoices/all</td><td class="has-text-align-center" data-align="center"><a href="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/billing" data-type="link" data-id="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/billing" target="_blank" rel="noreferrer noopener">Billing</a></td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>livewire/pages/customer/billing/account/history.blade.php</td><td class="has-text-align-center" data-align="center">/user/billing/account/history</td><td class="has-text-align-center" data-align="center"><a href="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/billing" target="_blank" rel="noreferrer noopener">Billing</a></td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>livewire/pages/customer/billing/payment-methods.blade.php</td><td class="has-text-align-center" data-align="center">/user/billing/payment-methods</td><td class="has-text-align-center" data-align="center"><a href="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/billing" target="_blank" rel="noreferrer noopener">Billing</a></td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>livewire/pages/customer/invoice/settings.blade.php</td><td class="has-text-align-center" data-align="center">/user/billing/settings</td><td class="has-text-align-center" data-align="center"><a href="https://bookstack.hosttech.eu/books/wonderland-documentation/chapter/billing" target="_blank" rel="noreferrer noopener">Billing</a></td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>livewire/pages/customer/affiliate/dashboard.blade.php</td><td class="has-text-align-center" data-align="center">/user/affiliate</td><td class="has-text-align-center" data-align="center">&#8211;</td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>livewire/pages/customer/affiliate/promotions.blade.php</td><td class="has-text-align-center" data-align="center">/user/affiliate/promotions</td><td class="has-text-align-center" data-align="center">&#8211;</td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>livewire/pages/customer/affiliate/material.blade.php</td><td class="has-text-align-center" data-align="center">/user/affiliate/material</td><td class="has-text-align-center" data-align="center">&#8211;</td></tr><tr><td class="has-text-align-center" data-align="center">View:<br>livewire/pages/customer/faq.blade.php</td><td class="has-text-align-center" data-align="center">/user/faq</td><td class="has-text-align-center" data-align="center">&#8211;</td></tr></tbody></table></figure>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Glossar / Bergriff erklärung</title>
		<link>https://flurin-lernjournal.hosttech.ch/glossar-bergriff-erklarung/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Mon, 02 Dec 2024 13:12:07 +0000</pubDate>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Erklärungen]]></category>
		<category><![CDATA[hosttech]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Laravel]]></category>
		<category><![CDATA[Lernjournal]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wonderland]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WSC]]></category>
		<guid isPermaLink="false">https://flurin-lernjournal.hosttech.ch/?p=478</guid>

					<description><![CDATA[A Anchor Links What are Anchor Links Anchor links (also known as page jumps or named anchors) are links that take users to a specific section of a webpage instead of the top of the page. They are especially useful for navigating long pages or documents. How Do Anchor Links Work? Common Use Cases: Examples: [&#8230;]]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-flexible-table-block-table is-style-default"><table class="has-fixed-layout" style="width:100%"><tbody><tr><td><a href="#A" data-type="internal" data-id="#A">A</a></td><td><a href="#B" data-type="internal" data-id="#B">B</a></td><td><a href="#C" data-type="internal" data-id="#C">C</a></td><td><a href="#D" data-type="internal" data-id="#D">D</a></td><td><a href="#E" data-type="internal" data-id="#E">E</a></td><td><a href="#F" data-type="internal" data-id="#F">F</a></td><td><a href="#G" data-type="internal" data-id="#G">G</a></td><td><a href="#H" data-type="internal" data-id="#H">H</a></td><td><a href="#I" data-type="internal" data-id="#I">I</a></td><td><a href="#J" data-type="internal" data-id="#J">J</a></td><td><a href="#K" data-type="internal" data-id="#K">K</a></td><td><a href="#L" data-type="internal" data-id="#L">L</a></td><td><a href="#M" data-type="internal" data-id="#M">M</a></td></tr><tr><td><a href="#N" data-type="internal" data-id="#N">N</a></td><td> <a href="#O" data-type="internal" data-id="#O">O</a></td><td><a href="#P" data-type="internal" data-id="#P">P</a></td><td><a href="#Q" data-type="internal" data-id="#Q">Q</a></td><td><a href="#R" data-type="internal" data-id="#R">R</a></td><td><a href="#S" data-type="internal" data-id="#S">S</a></td><td><a href="#T" data-type="internal" data-id="#T">T</a></td><td><a href="#U" data-type="internal" data-id="#U">U</a></td><td><a href="#V" data-type="internal" data-id="#V">V</a></td><td><a href="#W" data-type="internal" data-id="#W">W</a></td><td><a href="#X" data-type="internal" data-id="#X">X</a></td><td><a href="#Y" data-type="internal" data-id="#Y">Y</a></td><td><a href="#Z" data-type="internal" data-id="#Z">Z</a></td></tr></tbody></table></figure>



<h1 id="A" class="wp-block-heading has-x-large-font-size">A</h1>



<h2 class="wp-block-heading has-large-font-size">Anchor Links</h2>



<h3 class="wp-block-heading has-medium-font-size">What are Anchor Links</h3>



<p class="has-small-font-size wp-block-paragraph">Anchor links (also known as page jumps or named anchors) are links that take users to a specific section of a webpage instead of the top of the page. They are especially useful for navigating long pages or documents.</p>



<h3 class="wp-block-heading has-medium-font-size">How Do Anchor Links Work?</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Anchor Target</strong>: You assign an <code><strong>id</strong></code> attribute to the element on your page that you want to link to. This serves as the destination of the anchor link.</li>



<li class="has-small-font-size"><strong>Anchor Link</strong>: You create a link that includes <code><strong>#</strong></code> followed by the <code><strong>id</strong></code> value. When clicked, it scrolls the page to the target.</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Common Use Cases:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><strong>Table of Contents</strong>: On long articles or guides, a list of links at the top allows readers to jump to specific sections.</li>



<li class="has-small-font-size"><strong>FAQs</strong>: Each question in a Frequently Asked Questions section can link directly to its answer below.</li>



<li class="has-small-font-size"><strong>Navigation</strong>: For single-page websites, anchor links are used to navigate between sections instead of loading new pages.</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Examples:</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Navigating Within the Same Page</strong>:
<ul class="wp-block-list">
<li class="has-small-font-size">A link at the top of a page takes you to a &#8220;Contact Us&#8221; section further down.</li>
</ul>
</li>



<li class="has-small-font-size"><strong>Linking Between Pages</strong>:
<ul class="wp-block-list">
<li class="has-small-font-size">A link on one page can direct you to a specific section on another page using the format <code><strong>https://example.com/page.html#target</strong></code>.</li>
</ul>
</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a" target="_blank" rel="noreferrer noopener">Anchor Links Documentation</a></li>
</ul>



<h2 id="Array" class="wp-block-heading has-large-font-size">Arrays</h2>



<p class="has-small-font-size wp-block-paragraph">Here&#8217;s a link to an explanation about arrays with examples: <a href="/php/#phparray" target="_blank" rel="noreferrer noopener">Array explanation</a></p>



<h1 id="B" class="wp-block-heading has-x-large-font-size">B</h1>



<h1 id="C" class="wp-block-heading has-x-large-font-size">C</h1>



<h2 class="wp-block-heading has-large-font-size">Code Editors</h2>



<h3 class="wp-block-heading has-medium-font-size">What Are Code Editors?</h3>



<p class="has-small-font-size wp-block-paragraph">Code editors are tools designed specifically for writing and editing source code. They are essential for programming as they provide features tailored to coding, such as syntax highlighting, auto-completion, and debugging.</p>



<h3 class="wp-block-heading has-medium-font-size">Types of Code Editors</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Simple Text Editors</strong>:
<ul class="wp-block-list">
<li>Examples: Notepad (Windows), TextEdit (Mac).</li>



<li>These are basic and lightweight but for that lack advanced coding features.</li>
</ul>
</li>



<li class="has-small-font-size"><strong>Dedicated Code Editors</strong>:
<ul class="wp-block-list">
<li>Examples: Visual Studio Code, Sublime Text, PHPStorm.</li>



<li>These offer enhanced functionality like language support, plugins, and version control integration.</li>
</ul>
</li>



<li class="has-small-font-size"><strong>Integrated Development Environments (IDEs)</strong>:
<ul class="wp-block-list">
<li>Examples: IntelliJ IDEA, Eclipse.</li>



<li>IDEs are more advanced and include tools like debuggers, compilers, and project management features.</li>
</ul>
</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Key Features of Code Editors</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><strong>Syntax Highlighting</strong>: Makes code easier to read by coloring different parts of the syntax (code).</li>



<li class="has-small-font-size"><strong>Code Autocompletion</strong>: Suggests code as you type, reducing errors and speeding up development.</li>



<li class="has-small-font-size"><strong>Customization</strong>: Allows users to install extensions, themes, or plugins to tailor the editor to their needs / wants.</li>



<li class="has-small-font-size"><strong>Version Control</strong>: Many editors integrate with Git for source code management.</li>



<li class="has-small-font-size"><strong>Cross-platform Compatibility</strong>: Many editors work across Windows, macOS, and Linux.</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Popular Code Editors:</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>PHPStorm</strong>:
<ul class="wp-block-list">
<li>A specialized editor for PHP development, offering deep integration with frameworks, databases, and debugging tools.</li>
</ul>
</li>



<li class="has-small-font-size"><strong>IntelliJ IDEA</strong>:
<ul class="wp-block-list">
<li>Excellent for Java and Kotlin, with robust project management and refactoring capabilities.</li>
</ul>
</li>



<li class="has-small-font-size"><strong>Visual Studio Code (VS Code)</strong>:
<ul class="wp-block-list">
<li>Free, open-source, with extensive extension support for a wide range of languages and tools.</li>
</ul>
</li>



<li class="has-small-font-size"><strong>Sublime Text</strong>:
<ul class="wp-block-list">
<li>Lightweight, fast, and has a powerful package system, ideal for general-purpose editing.</li>
</ul>
</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://www.jetbrains.com/phpstorm/resources" target="_blank" rel="noreferrer noopener">PHPStorm Documentation</a></li>



<li class="has-small-font-size">  <a href="https://www.jetbrains.com/help/idea/getting-started.html" target="_blank" rel="noreferrer noopener">IntelliJ IDEA Documentation</a></li>



<li class="has-small-font-size"><a href="https://code.visualstudio.com/docs" target="_blank" rel="noreferrer noopener">VS Code Documentation</a></li>



<li class="has-small-font-size"><a href="https://www.sublimetext.com/docs/" target="_blank" rel="noreferrer noopener">Sublime Text Documentation</a></li>
</ul>



<h2 class="wp-block-heading has-large-font-size">controllers </h2>



<h3 class="wp-block-heading has-medium-font-size">What are controllers?</h3>



<p class="has-small-font-size wp-block-paragraph">Controllers, in a general sense, can be thought of as components that manage or coordinate specific functionality. They bring together various systems or subsystems to achieve a focused purpose, exposing the necessary controls and functionality in a streamlined way.</p>



<p class="has-small-font-size wp-block-paragraph">For example, a <strong>Character Controller</strong> might coordinate the movement of a character by bringing together inputs, physics forces, and animations. It doesn’t need to handle every detail itself but instead integrates other specialized components (e.g., input handlers or physics systems) to handle those tasks. The controller serves as the central piece that ties everything together to achieve character movement.</p>



<p class="has-small-font-size wp-block-paragraph">Similarly, a <strong>UI Controller</strong> could manage visual transitions for UI elements, such as fading in and out or animating panels. Each UI panel or canvas might have its own controller to handle its specific behavior, ensuring that the functionality is modular and manageable.</p>



<p class="has-small-font-size wp-block-paragraph">In essence, controllers act as the &#8220;brain&#8221; for a particular aspect of a system, orchestrating actions while relying on other components to handle the details.</p>



<p class="has-small-font-size wp-block-paragraph">Controllers are like transporters, they should get a request, ask the core application code to do the logic, and return a response. They shouldn’t have domain logic. Code them thinking in the end result.</p>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://learn.microsoft.com/en-us/aspnet/core/mvc/controllers/actions?view=aspnetcore-7.0" target="_blank" rel="noreferrer noopener">Microsoft controllers Documentation</a></li>



<li class="has-small-font-size"><a href="https://laravel.com/docs/10.x/controllers" target="_blank" rel="noreferrer noopener">Laravel controller Documentation</a></li>
</ul>



<h2 class="wp-block-heading has-large-font-size"><strong>Cron Job</strong></h2>



<h3 class="wp-block-heading has-medium-font-size">What is a Cron Job?</h3>



<p class="has-small-font-size wp-block-paragraph">Cron jobs are scheduled tasks that run automatically at specified times or intervals on Unix-like operating systems. They allow us to automate repetitive tasks like backups, email reports, system maintenance, and more. Instead of having to manually run these tasks, cron jobs execute them according to a predetermined schedule.</p>



<h3 class="wp-block-heading has-medium-font-size">How Do Cron Jobs Work?</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Cron Daemon</strong>: Cron jobs are managed by a service called the <strong>cron daemon</strong>. This is a background process that checks a list of scheduled tasks and executes them when their time comes.</li>



<li class="has-small-font-size"><strong>Cron Syntax</strong>: To create a cron job, you write an entry in the cron table (<code>crontab</code>). The syntax typically includes:
<ul class="wp-block-list">
<li class="has-small-font-size"><strong>Minute</strong>: Which minute of the hour (0-59).</li>



<li class="has-small-font-size"><strong>Hour</strong>: Which hour of the day (0-23).</li>



<li class="has-small-font-size"><strong>Day of the Month</strong>: Which day of the month (1-31).</li>



<li class="has-small-font-size"><strong>Month</strong>: Which month of the year (1-12).</li>



<li class="has-small-font-size"><strong>Day of the Week</strong>: Which day of the week (0-7, where both 0 and 7 represent Sunday).</li>



<li class="has-small-font-size"><strong>Command</strong>: The task or command to run at that time.</li>
</ul>
</li>
</ol>



<p class="has-small-font-size wp-block-paragraph">For example:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">Command Prompt</span><span role="button" tabindex="0" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>30 2 * * * /path/to/script.sh</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #B48EAD">30</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">2</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">*</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">*</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">*</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">path</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">to</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">script.sh</span></span></code></pre></div>



<p class="has-small-font-size wp-block-paragraph">This Cron Job will run the script <code>"<strong>script.sh"</strong></code> at 2:30 AM every day.</p>



<h3 class="wp-block-heading has-medium-font-size">Common Use Cases:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><strong>Backups</strong>: Running system or database backups at night when server load is low.</li>



<li class="has-small-font-size"><strong>Email Reports</strong>: Sending periodic reports via email, e.g., a daily sales summary.</li>



<li class="has-small-font-size"><strong>System Maintenance</strong>: Running cleanup scripts that remove temporary files or logs.</li>



<li class="has-small-font-size"><strong>Web Scraping</strong>: Automatically running a web scraping script at regular intervals.</li>



<li></li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Example:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size">You can think of a cron job like setting a timer for when to take medicine. If the timer is set to ring at 8:00 AM every day, you don’t have to remember to take it each day — the timer (like the cron daemon) will make sure it happens automatically at the scheduled time. Just as you tell the timer when to go off (the cron schedule), you tell the cron job when to run its task.</li>



<li class="has-small-font-size">Lets suppose you want to back up a directory every night at midnight. You could add a cron job like:</li>
</ul>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">Command Prompt</span><span role="button" tabindex="0" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>0 0 * * * cp -r C:/Users/files C:/Users/backup</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #B48EAD">0</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">0</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">*</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">*</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">*</span><span style="color: #D8DEE9FF"> cp </span><span style="color: #81A1C1">-</span><span style="color: #D8DEE9FF">r C:</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">Users</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">files C:</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">Users</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">backup</span></span></code></pre></div>



<p class="has-small-font-size wp-block-paragraph">This would copy your files from &#8220;C:/Users/files&#8221; to &#8220;C:/Users/backup&#8221; every night at 12:00 AM.</p>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://www.hostinger.com/tutorials/cron-job?utm_campaign=Generic-Tutorials-DSA|NT:Se|LO:DE&amp;utm_medium=ppc&amp;gad_source=1&amp;gclid=EAIaIQobChMIjPTdt6SLigMVJZaDBx0bIh_3EAAYASAAEgIPgPD_BwE" target="_blank" rel="noreferrer noopener">Cron Job Documentation / Explanation</a></li>
</ul>



<h2 id="CSS" class="wp-block-heading has-large-font-size"><strong>CSS</strong></h2>



<h3 class="wp-block-heading has-medium-font-size">What is CSS? </h3>



<p class="has-small-font-size wp-block-paragraph">CSS (Cascading Style Sheets) is a basic tool that is used for designing websites. While HTML takes care of the structure of web pages, CSS takes care of the look and layout. Think of HTML as the skeleton of a page, and CSS as the skin and clothing that gives it its final look. Without CSS, any web page would look like a normal text document with no formatting &#8211; it would be difficult to read and unattractive to look at.</p>



<p class="has-small-font-size wp-block-paragraph">CSS helps to make a website beautiful and consistent and easy to use and understand. For example, you can choose a suitable color combination that is pleasant to look at or give several color combinations to choose from (Light &amp; Dark mode).</p>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://developer.mozilla.org/en-US/docs/Web/CSS" target="_blank" rel="noreferrer noopener">CSS Documentation</a></li>



<li class="has-small-font-size"><a href="https://www.w3schools.com/cssref/index.php" target="_blank" rel="noreferrer noopener">List of CSS Properties</a></li>
</ul>



<h1 id="D" class="wp-block-heading has-x-large-font-size">D</h1>



<h1 id="E" class="wp-block-heading has-x-large-font-size">E</h1>



<h1 id="F" class="wp-block-heading has-x-large-font-size">F</h1>



<h1 id="G" class="wp-block-heading has-x-large-font-size">G</h1>



<h2 class="wp-block-heading has-large-font-size">Git</h2>



<h3 class="wp-block-heading has-medium-font-size">What Is Git?</h3>



<p class="has-small-font-size wp-block-paragraph">Git is a distributed version control system (VCS) that allows multiple developers to work on a project simultaneously. It tracks changes in files, allows you to collaborate with others, and makes it easy to revert to previous versions of your code. Git is widely used in software development to manage source code.</p>



<h3 class="wp-block-heading has-medium-font-size">How Does Git Work?</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Repositories</strong>: A Git repository is where your project’s files and their version history are stored. There are two types:
<ul class="wp-block-list">
<li><strong>Local Repository</strong>: On your own computer, where you make changes.</li>



<li><strong>Remote Repository</strong>: On a server (e.g., GitHub, GitLab), where collaborators can push and pull changes.</li>
</ul>
</li>



<li class="has-small-font-size"><strong>Commits</strong>: When you make changes to a file and want to save that state in the version history, you &#8220;commit&#8221; the changes. A commit is like a snapshot of your code at a specific moment in time.</li>



<li class="has-small-font-size"><strong>Branches</strong>: Git allows you to create different branches to work on features or bug fixes separately from the main project. The <strong>main branch</strong> (often called <code>main</code> or <code>master</code>) is the primary branch where the stable code is usually kept.</li>



<li class="has-small-font-size"><strong>Merging</strong>: When you&#8217;re done with a feature or bug fix on your branch, you merge it back into the main branch so others can use it.</li>



<li class="has-small-font-size"><strong>Pushing and Pulling</strong>:
<ul class="wp-block-list">
<li><strong>Push</strong>: Sending your local changes to a remote repository.</li>



<li><strong>Pull</strong>: Retrieving the latest changes from the remote repository to your local one.</li>
</ul>
</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Common Use Cases:</h3>



<ul class="wp-block-list">
<li><strong>Collaborative Development</strong>: Git allows multiple developers to work on the same project without overwriting each other&#8217;s work.</li>



<li><strong>Version History</strong>: Git keeps track of every change made to the project, allowing you to view past versions or revert changes.</li>



<li class="has-small-font-size"><strong>Branching</strong>: Working on multiple features or bug fixes in parallel without affecting the main project.</li>



<li><strong>Code Backup</strong>: Pushing changes to a remote repository acts as a backup for your code.</li>
</ul>



<p class="has-small-font-size wp-block-paragraph"> You can think of Git like a detailed medical chart that tracks all the changes in a patient’s health over time. Each change in the patient&#8217;s condition (like a new symptom or treatment) is recorded as a <strong>commit</strong>. If something goes wrong, you can look back at the history of that patient and even undo or fix the changes (like going back to a previous healthy state). Branching is like creating separate charts for different areas of treatment, and merging is when those treatments come together into one comprehensive chart.</p>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://git-scm.com/doc" target="_blank" rel="noreferrer noopener">Git Documentation</a></li>
</ul>



<h2 class="wp-block-heading has-large-font-size">GitLab</h2>



<h3 class="wp-block-heading has-medium-font-size">What Is GitLab?</h3>



<p class="has-small-font-size wp-block-paragraph">GitLab is a web-based DevOps platform that provides Git repository management, continuous integration/continuous deployment (CI/CD), and other features to help teams collaborate on software projects. It integrates source code management with issue tracking, monitoring, and deployment pipelines, all in one place. GitLab is often used as an alternative to GitHub for hosting and managing Git repositories.</p>



<h3 class="wp-block-heading has-medium-font-size">How Does GitLab Work?</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Git Repositories</strong>: GitLab allows you to create repositories to store your code, just like Git. Each repository can be public or private, and it can have multiple branches to manage different versions of the code.</li>



<li class="has-small-font-size"><strong>CI/CD Pipelines</strong>: GitLab automates your software development workflow using CI/CD. This means it automatically builds, tests, and deploys your code whenever changes are made (e.g., after a commit or push).
<ul class="wp-block-list">
<li><strong>CI (Continuous Integration)</strong>: Automatically integrates code changes and runs tests to ensure they don’t break the project.</li>



<li><strong>CD (Continuous Deployment)</strong>: Automatically deploys code to production once it has passed all tests.</li>
</ul>
</li>



<li class="has-small-font-size"><strong>Merge Requests (MRs)</strong>: In GitLab, <strong>merge requests</strong> are used to propose changes to a project. When you create a new branch and want to merge it back into the main branch, you open a merge request. This allows team members to review your code before it’s merged.</li>



<li class="has-small-font-size"><strong>Issue Tracking</strong>: GitLab includes integrated issue tracking to help manage bugs, feature requests, and other tasks related to a project. Issues can be assigned, prioritized, and linked to specific commits or merge requests.</li>



<li class="has-small-font-size"><strong>GitLab Runners</strong>: GitLab uses runners to execute CI/CD pipelines. These runners can be set up to run on different machines or environments and are used to build and test the code.</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Common Use Cases:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><strong>Version Control and Collaboration</strong>: Like Git, GitLab allows teams to work on code together while tracking changes and keeping the codebase synchronized.</li>



<li class="has-small-font-size"><strong>Continuous Integration/Continuous Deployment (CI/CD)</strong>: Automating the build, test, and deployment processes to ensure smooth, efficient software delivery.</li>



<li class="has-small-font-size"><strong>Code Review and Merge Requests</strong>: Reviewing code changes and ensuring quality control before merging them into the main project.</li>



<li class="has-small-font-size"><strong>Project Management</strong>: With integrated issue tracking, labels, milestones, and boards, GitLab helps teams plan and track progress.</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Example:</h3>



<ul class="wp-block-list has-small-font-size">
<li>Think of GitLab as a hospital that not only keeps a patient&#8217;s medical records (like Git), but also ensures that all treatments (code changes) are reviewed by doctors (merge requests) and automatically applied (CI/CD pipelines). It tracks the patient&#8217;s progress (issues) and helps manage the overall treatment process from beginning to end. Each department (CI/CD, issue tracking, merge requests) works together to improve the patient&#8217;s (project’s) health (quality).</li>



<li>Suppose you&#8217;re developing a web application and want to automate your build and deployment process. You would:
<ol class="wp-block-list">
<li>Push your code to a GitLab repository.</li>



<li>GitLab automatically triggers a CI pipeline that builds your code and runs tests.</li>



<li>If the tests pass, GitLab deploys the new version of the app to production.</li>
</ol>
</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://docs.gitlab.com/" target="_blank" rel="noreferrer noopener">GitLab Documentation</a></li>
</ul>



<h1 id="H" class="wp-block-heading has-x-large-font-size">H</h1>



<h2 class="wp-block-heading has-large-font-size">Herd</h2>



<h3 class="wp-block-heading has-medium-font-size">What Is Herd?</h3>



<p class="has-small-font-size wp-block-paragraph">Herd is a tool designed to simplify and optimize the local development environment, particularly for PHP developers. It acts as an all-in-one solution that helps manage local PHP versions, web servers, databases, and related services. By providing an easy way to install, configure, and switch between different environments, Herd streamlines the setup process for local development, making it ideal for developers working with PHP-based projects, especially those using frameworks like Laravel.</p>



<h3 class="wp-block-heading has-medium-font-size">How Does Herd Work?</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Installation and Setup</strong>: Herd simplifies the installation process for tools like PHP, MySQL, and web servers (e.g., Nginx) on your machine. With Herd, you don&#8217;t need to worry about manually installing each piece of software or managing different versions for different projects.</li>



<li class="has-small-font-size"><strong>PHP Management</strong>: One of the key features of Herd is the ability to manage multiple versions of PHP. It allows you to easily switch between PHP versions based on the requirements of the project you’re working on.</li>



<li class="has-small-font-size"><strong>Service Management</strong>: Herd provides management for various services like databases (MySQL, PostgreSQL), web servers (Nginx), and tools like Composer. These services are essential for web development and can be controlled via the Herd interface.</li>



<li class="has-small-font-size"><strong>Automated Configuration</strong>: Once installed, Herd automatically configures services like Nginx and PHP for you, so you don’t have to manually adjust configuration files. This ensures that your local development environment is consistent and free from errors.</li>



<li class="has-small-font-size"><strong>Simplified Workflow</strong>: Herd helps streamline the workflow by handling repetitive tasks like setting up and configuring PHP environments, managing domain mappings, and ensuring compatibility between different services.</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Common Uses:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><strong>Local PHP Development</strong>: Herd is ideal for managing local environments when working with PHP projects, allowing you to switch between PHP versions easily.</li>



<li class="has-small-font-size"><strong>Web Development Projects</strong>: It integrates with services like MySQL and Nginx, helping developers set up full-fledged local development environments with minimal effort.</li>



<li class="has-small-font-size"><strong>Laravel Development</strong>: Herd is specifically designed to work well with Laravel and other PHP frameworks, simplifying tasks such as dependency management and version control.</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Examples:</h3>



<p class="has-small-font-size wp-block-paragraph">Suppose you&#8217;re working on a Laravel project that requires PHP 7.4 for development but your server uses PHP 8.0. With Herd, you can easily switch to PHP 7.4 locally without affecting other PHP-based projects. This ensures compatibility across different development environments.</p>



<h2 class="wp-block-heading has-large-font-size">HTML</h2>



<h3 class="wp-block-heading has-medium-font-size">What is HTML?</h3>



<p class="has-small-font-size wp-block-paragraph">HTML, or <strong>H</strong>yper<strong>t</strong>ext <strong>M</strong>arkup <strong>L</strong>anguage, is the programming language that is basically used to display content on the Internet. It is the foundation of every website and enables text, images, links and other elements to be structured. By using HTML, you can ensure that the content is presented in a well-structured way.</p>



<h3 class="wp-block-heading has-medium-font-size">Basics of the HTML structure</h3>



<p class="has-small-font-size wp-block-paragraph">HTML documents consist of various elements that are represented by “tags”. A typical HTML document begins with the declaration of the HTML version , followed by the tag, which encloses the entire content. There are two main parts within the tags:</p>



<ul class="wp-block-list">
<li class="has-small-font-size">Header (): Contains information / data about the web page (title, fonts and stylesheets).</li>



<li class="has-small-font-size">Body area (): Contains the visible content of the web page (text, images and links).</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Examples:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size">Wikipedia: Wikipedia, for example, also uses almost only HTML for its website</li>



<li class="has-small-font-size">Amazon: Amazon also mainly uses HTML to display its online store.</li>
</ul>



<p class="has-small-font-size wp-block-paragraph">You can imagine or think of HTML to be the Foundation of a House or well any building or the skeleton of the Human body to help you understand what HTML is in the programming World.</p>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML" target="_blank" rel="noreferrer noopener">HTML Documentation</a></li>
</ul>



<h1 id="I" class="wp-block-heading has-x-large-font-size">I</h1>



<h1 id="J" class="wp-block-heading has-x-large-font-size">J</h1>



<h2 class="wp-block-heading has-large-font-size">JavaScript</h2>



<h3 class="wp-block-heading has-medium-font-size">What Is JavaScript?</h3>



<p class="has-small-font-size wp-block-paragraph">JavaScript is a versatile, high-level programming language that enables dynamic and interactive features on websites. It is one of the core technologies of the web development, alongside HTML and CSS. JavaScript is commonly used for front-end web development, but it is also employed for back-end development, mobile app development, and server-side scripting.</p>



<h3 class="wp-block-heading has-medium-font-size">Common Use Cases:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><strong>Web Development</strong>: JavaScript is the backbone of interactive websites, from simple animations to complex single-page applications.</li>



<li class="has-small-font-size"><strong>API Integration</strong>: JavaScript can be used to fetch data from a server or third-party APIs and display it dynamically on the webpage.</li>



<li class="has-small-font-size"><strong>Server-Side Development</strong>: With environments like Node.js, JavaScript is also used for back-end development, enabling developers to use a single language across the entire development stack.</li>



<li class="has-small-font-size"><strong>Mobile Applications</strong>: JavaScript frameworks like React Native allow developers to create native mobile apps for iOS and Android using JavaScript.</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Example Use Case:</h3>



<p class="has-small-font-size wp-block-paragraph">Consider a website where users submit a form to receive a newsletter. JavaScript can validate the form data on the client-side to ensure all fields are filled out correctly before sending the data to the server. This provides immediate feedback to users without requiring them to wait for the server&#8217;s response.</p>



<p class="has-small-font-size wp-block-paragraph">Think of JavaScript as the <strong>nervous system</strong> of a webpage, reacting to user actions and sending signals to different parts of the page:</p>



<p class="has-small-font-size wp-block-paragraph">For instance, clicking a button is like a stimulus in the body. JavaScript responds by &#8220;moving&#8221; the webpage content, much like how the nervous system sends signals to muscles its more specifically like the subconscious part of the nervous system so it reacts to things that are like rooted so deep that it can just do them and not needing to wait for a response from the brain(server) like for example we do breathing, or emotions like the fight or flight response to fear.</p>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank" rel="noreferrer noopener">JavaScript Documentation</a></li>
</ul>



<h1 id="K" class="wp-block-heading has-x-large-font-size">K</h1>



<h1 id="L" class="wp-block-heading has-x-large-font-size">L</h1>



<h2 class="wp-block-heading has-large-font-size">Laravel</h2>



<h3 class="wp-block-heading has-medium-font-size">What Is Laravel?</h3>



<p class="has-small-font-size wp-block-paragraph">Laravel is a popular open-source PHP web application framework that is designed to make developing web applications easier and faster through built-in tools and features. It follows the <strong>Model-View-Controller (MVC)</strong> architectural pattern, providing a structure for organizing code, and includes many tools for handling common tasks like routing, authentication, and database interactions.</p>



<h3 class="wp-block-heading has-medium-font-size">How Does Laravel Work?</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Routing</strong>: Laravel uses a simple, expressive syntax to define the routes for your application. Routes map URLs to specific controller actions, making it easy to control how different requests are handled.</li>



<li class="has-small-font-size"><strong>Controllers</strong>: Controllers in Laravel are responsible for handling incoming HTTP requests and returning appropriate responses, often by interacting with the model (database) and view (UI).</li>



<li class="has-small-font-size"><strong>Models</strong>: Models represent the data and business logic of the application. They are typically used to interact with the database, retrieving or modifying data based on the application&#8217;s needs.</li>



<li class="has-small-font-size"><strong>Views</strong>: Views are the presentation layer of the application. They typically contain HTML mixed with Blade templating syntax, which allows developers to easily integrate dynamic data into their pages.</li>



<li class="has-small-font-size"><strong>Eloquent ORM</strong>: Laravel uses Eloquent, an Object-Relational Mapping (ORM) system, which provides a simple and intuitive interface for interacting with the database. It allows developers to work with database records as objects.</li>



<li class="has-small-font-size"><strong>Artisan Command Line</strong>: Laravel includes an Artisan CLI, which offers a variety of helpful commands for tasks like database migrations, testing, and running scheduled tasks.</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Common Use Cases:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><strong>Web Application Development</strong>: Laravel is widely used for building everything from small websites to large-scale enterprise applications.</li>



<li class="has-small-font-size"><strong>APIs</strong>: Laravel is commonly used to build RESTful APIs for mobile or single-page web applications (SPAs).</li>



<li class="has-small-font-size"><strong>CRUD Operations</strong>: Laravel’s built-in tools allow you to quickly set up CRUD (Create, Read, Update, Delete) operations for working with database records.</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Example:</h3>



<p class="has-small-font-size wp-block-paragraph">Suppose you&#8217;re building a blog application with Laravel. You would create a model to handle blog posts, a controller to manage post-related requests (like showing a post or creating a new one), and views to display the posts to users.</p>



<h3 class="wp-block-heading has-medium-font-size">Documantation:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://laravel.com/docs/11.x" target="_blank" rel="noreferrer noopener">Laravel Documentation</a></li>
</ul>



<h2 class="wp-block-heading has-large-font-size">Laracasts</h2>



<h3 class="wp-block-heading has-medium-font-size">What is Laracasts?</h3>



<p class="has-small-font-size wp-block-paragraph">&#8220;Laracasts is a subscription-based service for learning web development. It&#8217;s like Netflix for your career.&#8221; It provides a bunch of free Videos that you can watch without needing a Subscription but if you want to unlock all the Content there are a few options: pay 25$ a month, 149$ a year for the Individual Plan or you can just buy the Forever Plan for 399$ giving you access to everything forever (on that account).</p>



<p class="has-small-font-size wp-block-paragraph">Jeffrey Way the creator of Laracasts he and a bunch of other people create tutorial and explanation videos on his platform. Because he and the other people aswell know how it would&#8217;ve helped them if they had access to something like this especially Jeffrey that&#8217;s why he created / founded Laracasts.<br>He purposely made it only or mainly for PHP and Laravel so you can find almost everything here and get all the knowledge and not just part of it. </p>



<h3 class="wp-block-heading has-medium-font-size">How does Laracasts work?</h3>



<p class="has-small-font-size wp-block-paragraph">Laracasts works like any other programming learning site, there&#8217;s Videos some are free some aren&#8217;t since running a big site and paying people and such costs Money so he &#8220;needs&#8221; to get a bit of money so Laracasts can keep growing and functioning in general.</p>



<h3 class="wp-block-heading has-medium-font-size">Example:</h3>



<p class="has-small-font-size wp-block-paragraph">Like Laracasts has in der Linkedin description:<br>&#8220;<strong>Laracasts is a subscription-based service for learning web development. It&#8217;s like Netflix for your career&#8221;.</strong></p>



<h3 class="wp-block-heading has-medium-font-size">Documentation (doesn&#8217;t really exist):</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://laracasts.com/series/building-laracasts" target="_blank" rel="noreferrer noopener">Jeffrey works on Laracasts code</a></li>
</ul>



<h1 id="M" class="wp-block-heading has-x-large-font-size">M</h1>



<h2 class="wp-block-heading has-large-font-size">MySQL</h2>



<h3 class="wp-block-heading has-medium-font-size">What Is MySQL?</h3>



<p class="has-small-font-size wp-block-paragraph">MySQL is an open-source relational database management system (RDBMS) widely used for storing, organizing, and retrieving data. It is based on <strong>Structured Query Language (SQL)</strong>, which is a standard programming language for interacting with databases. MySQL is commonly used in web applications and is a key component of the popular LAMP stack (Linux, Apache, MySQL, PHP/Python/Perl).</p>



<h3 class="wp-block-heading has-medium-font-size">How Does MySQL Work?</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Storage</strong>: MySQL organizes data into <strong>tables</strong> made up of rows and columns, similar to an Excel spreadsheet. Each table represents a specific type of data, such as user profiles, products, or orders.</li>



<li class="has-small-font-size"><strong>Querying</strong>: Using SQL commands, developers can <strong>retrieve</strong>, <strong>insert</strong>, <strong>update</strong>, or <strong>delete</strong> data stored in these tables. MySQL processes these commands and returns the requested results.</li>



<li class="has-small-font-size"><strong>Relationships</strong>: MySQL supports relational data by allowing tables to be connected through <strong>keys</strong> (primary and foreign keys). This structure ensures data integrity and reduces redundancy.</li>



<li class="has-small-font-size"><strong>Scalability and Performance</strong>: MySQL can handle small projects, like blogs, as well as large-scale applications with millions of records. Features like indexing, partitioning, and replication enhance its performance.</li>



<li class="has-small-font-size"><strong>User Management</strong>: MySQL includes robust user authentication and access control features, ensuring secure database operations.</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Common Use Cases:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><strong>Web Applications</strong>: Powering websites like WordPress, Joomla, and Drupal.</li>



<li class="has-small-font-size"><strong>E-commerce Platforms</strong>: Managing products, orders, and customers.</li>



<li class="has-small-font-size"><strong>Data Analytics</strong>: Storing and querying large datasets for analysis.</li>



<li class="has-small-font-size"><strong>API Backends</strong>: Supporting dynamic applications that need to fetch and modify data in real time.</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Example Use Case:</h3>



<p class="has-small-font-size wp-block-paragraph">Consider an online bookstore. MySQL could be used to:</p>



<ul class="wp-block-list">
<li class="has-small-font-size">Store books in a table with columns for title, author, price, and stock quantity.</li>



<li class="has-small-font-size">Manage user accounts and purchase histories in separate tables.</li>



<li class="has-small-font-size">Relate tables (e.g., users with orders) using foreign keys.</li>
</ul>



<p class="wp-block-paragraph">For a bit more relatable / understandable version, think of <strong>MySQL</strong> as the <strong>digestive system</strong> of a web application. Its job is to <strong>process</strong> and <strong>manage data</strong>, just as the digestive system processes and manages nutrients for the body.</p>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://dev.mysql.com/doc/" target="_blank" rel="noreferrer noopener">MySQL Documentation</a></li>
</ul>



<h1 id="N" class="wp-block-heading has-x-large-font-size">N</h1>



<h1 id="O" class="wp-block-heading has-x-large-font-size">O</h1>



<h1 id="P" class="wp-block-heading has-x-large-font-size">P</h1>



<h2 class="wp-block-heading has-large-font-size">partials</h2>



<h3 class="wp-block-heading has-medium-font-size">What are partials?</h3>



<p class="has-small-font-size wp-block-paragraph">Partials are reusable components or sections of code within a web development context. They allow you to break down your HTML (or other templating language) files into smaller, more manageable pieces. These smaller pieces can then be included or inserted into multiple pages or templates.</p>



<h3 class="wp-block-heading has-medium-font-size">Example:</h3>



<p class="has-small-font-size wp-block-paragraph">Partials are as the name suggests, they are part of something bigger for example the are a partial of a page. To make it easier to understand, its like if you have a multi layered cake each layer is a partial so the top layer is the header, the second layer from the top is the navigation then comes the &#8220;main&#8221; part the body so the layer that contains the information of the page and then at the bottom is the base layer so it all holds nicely together (the footer). And the head partial can be thought of as the decoration on top of the cake. </p>



<p class="has-small-font-size wp-block-paragraph">So in programming web development partials are usually:<br>&#8211; head (decoration on top)<br>&#8211; banner (top layer)<br>&#8211; nav (second layer from the top)<br>(the main page so the 2nd layer from the bottom or the 3rd from the top)<br>&#8211; footer (base layer)</p>



<h3 class="wp-block-heading has-medium-font-size">Documentation (different explanations):</h3>



<ul class="wp-block-list">
<li><a href="https://www.linkedin.com/advice/1/how-can-you-use-partials-layouts-improve-html-epwif#:~:text=Partials%20are%20reusable%20components%20or,into%20multiple%20pages%20or%20templates." target="_blank" rel="noreferrer noopener">Explanation 1 (LinkedIn)</a></li>



<li><a href="https://stacksbasecamp.com/blog/partial-power-understanding-the-power-of-partials-in-web-development" target="_blank" rel="noreferrer noopener">Explanation 2 (Stacks Basecamp)</a></li>
</ul>



<h2 id="phpexplanation" class="wp-block-heading has-large-font-size">PHP</h2>



<h3 class="wp-block-heading has-medium-font-size">What Is PHP?</h3>



<p class="has-small-font-size wp-block-paragraph">PHP (Hypertext Preprocessor) is a widely-used, open-source scripting language designed for web development. It is primarily executed on the server side, enabling dynamic content generation and seamless interaction between web applications and databases. PHP is embedded within HTML, making it an ideal tool for creating interactive, data-driven websites.</p>



<h3 class="wp-block-heading has-medium-font-size">How Does PHP Work?</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Server-Side Execution</strong>: PHP scripts run on the server before the webpage is sent to the user&#8217;s browser. The server processes PHP code and generates HTML, which is then sent to the client.</li>



<li class="has-small-font-size"><strong>Dynamic Content Generation</strong>: PHP can retrieve data from a database, process it, and display it dynamically on a webpage. For example, a blog might use PHP to display posts stored in a database.</li>



<li class="has-small-font-size"><strong>Integration</strong>: PHP seamlessly integrates with various databases (like MySQL), frameworks (like Laravel), and web servers (like Apache or Nginx).</li>



<li class="has-small-font-size"><strong>Flexibility</strong>: PHP supports multiple programming paradigms, including procedural and object-oriented programming, allowing developers to choose the style that best fits their needs.</li>



<li class="has-small-font-size"><strong>Extensibility</strong>: Through built-in functions and third-party libraries, PHP supports functionalities like image manipulation, data encryption, and interaction with APIs.</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Common Use Cases:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><strong>Dynamic Websites</strong>: Creating pages that adapt to user input, like login systems or e-commerce product listings.</li>



<li class="has-small-font-size"><strong>Content Management Systems (CMS)</strong>: Powering platforms like WordPress, Joomla, and Drupal.</li>



<li class="has-small-font-size"><strong>RESTful APIs</strong>: Serving as the backend for APIs used in mobile or web apps.</li>



<li class="has-small-font-size"><strong>E-commerce</strong>: Managing shopping carts, product catalogs, and order processing.</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Example:</h3>



<p class="has-small-font-size wp-block-paragraph">Consider an online food delivery platform. PHP can handle:</p>



<ul class="wp-block-list">
<li class="has-small-font-size">Retrieving restaurant menus from a database.</li>



<li class="has-small-font-size">Processing user orders.</li>



<li class="has-small-font-size">Displaying personalized recommendations based on user preferences.</li>
</ul>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li><a href="https://www.php.net/docs.php" target="_blank" rel="noreferrer noopener">PHP Documentation</a></li>
</ul>



<h1 id="Q" class="wp-block-heading has-x-large-font-size">Q</h1>



<h1 id="R" class="wp-block-heading has-x-large-font-size">R</h1>



<h1 id="S" class="wp-block-heading has-x-large-font-size">S</h1>



<h2 class="wp-block-heading has-large-font-size">SSH Key</h2>



<h3 class="wp-block-heading has-medium-font-size">What Are SSH Keys?</h3>



<p class="has-small-font-size wp-block-paragraph">SSH Keys are a pair of cryptographic keys used to authenticate secure connections between a client and a server, typically via the Secure Shell (SSH) protocol. They provide a highly secure and convenient alternative to password-based authentication.</p>



<p class="has-small-font-size wp-block-paragraph">An SSH Key isn&#8217;t really singular it is a pair. An SSH Key pair consists of:</p>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Public Key</strong>: This is placed on the server and acts as the &#8220;lock.&#8221;</li>



<li class="has-small-font-size"><strong>Private Key</strong>: This is stored on the client and acts as the &#8220;key.&#8221; It must remain confidential.</li>
</ol>



<p class="has-small-font-size wp-block-paragraph">When you attempt to connect to a server, the server uses the public key to verify the private key, enabling secure access without requiring a password.</p>



<h3 class="wp-block-heading has-medium-font-size">How do SSH Keys work?</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Key Generation</strong>: SSH keys are generated as a pair using tools like <code>ssh-keygen</code>.</li>



<li class="has-small-font-size"><strong>Key Distribution</strong>: The public key is added to the <code>~/.ssh/authorized_keys</code> file on the server you wish to access.</li>



<li class="has-small-font-size"><strong>Authentication</strong>: During connection, the private key on your local machine is matched against the server’s public key. If they match, access is granted.</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Example:</h3>



<p class="has-small-font-size wp-block-paragraph">Like we learned an SSH Key consists of a Public Key and a Private Key. You can imagine the Public Key to be like a normal Lock that you can find everywhere (Doors, Cabinets, Lockers, etc.) and the Private Key is well the literal Key to open the Lock and gain access to the server usually but well anything really.</p>



<h3 class="wp-block-heading has-medium-font-size">Managing Multiple SSH Keys</h3>



<p class="has-small-font-size wp-block-paragraph">You can store and use multiple SSH keys by specifying which key to use for each host in the SSH configuration file (<code>C:\Users\.ssh\config</code>).</p>



<h3 class="wp-block-heading has-medium-font-size">Example Configuration:</h3>



<p class="has-small-font-size wp-block-paragraph">Here’s how you can configure multiple SSH keys for different servers or services:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">PowerShell</span><span role="button" tabindex="0" data-code="# Default key
Host *
    IdentityFile ~/.ssh/id_rsa
# Specific key for GitHub
Host github.com
    HostName github.com
    User git
    IdentityFile ~/.ssh/id_rsa_github
# Specific key for another server
Host myserver
    HostName myserver.example.com
    User myuser
    IdentityFile ~/.ssh/id_rsa_myserver" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #616E88"># Default key</span></span>
<span class="line"><span style="color: #D8DEE9FF">Host </span><span style="color: #81A1C1">*</span></span>
<span class="line"><span style="color: #D8DEE9FF">    IdentityFile ~</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">.ssh</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">id_rsa</span></span>
<span class="line"></span>
<span class="line"><span style="color: #616E88"># Specific key for GitHub</span></span>
<span class="line"><span style="color: #D8DEE9FF">Host </span><span style="color: #88C0D0">github.com</span></span>
<span class="line"><span style="color: #D8DEE9FF">    HostName </span><span style="color: #88C0D0">github.com</span></span>
<span class="line"><span style="color: #D8DEE9FF">    User git</span></span>
<span class="line"><span style="color: #D8DEE9FF">    IdentityFile ~</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">.ssh</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">id_rsa_github</span></span>
<span class="line"></span>
<span class="line"><span style="color: #616E88"># Specific key for another server</span></span>
<span class="line"><span style="color: #D8DEE9FF">Host myserver</span></span>
<span class="line"><span style="color: #D8DEE9FF">    HostName </span><span style="color: #88C0D0">myserver.example.com</span></span>
<span class="line"><span style="color: #D8DEE9FF">    User myuser</span></span>
<span class="line"><span style="color: #D8DEE9FF">    IdentityFile ~</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">.ssh</span><span style="color: #81A1C1">/</span><span style="color: #D8DEE9FF">id_rsa_myserver</span></span></code></pre></div>



<p class="has-small-font-size wp-block-paragraph">Each <code>Host</code> entry maps a key to a particular server or domain, ensuring that the correct key is used automatically during connection.</p>



<h3 class="wp-block-heading has-medium-font-size">Documentation:</h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://docs.github.com/en/authentication/connecting-to-github-with-ssh" target="_blank" rel="noreferrer noopener">GitHub SSH Key Documentation</a></li>



<li class="has-small-font-size"><a href="https://docs.gitlab.com/ee/user/ssh.html" target="_blank" rel="noreferrer noopener">GitLab SSH Key Documentation</a></li>



<li class="has-small-font-size"><a href="https://www.ssh.com/academy/ssh/keygen" target="_blank" rel="noreferrer noopener">SSH Key(gen) Documentation</a></li>
</ul>



<h1 id="T" class="wp-block-heading has-x-large-font-size">T</h1>



<h2 class="wp-block-heading has-large-font-size">Tailwind</h2>



<h3 class="wp-block-heading has-medium-font-size">What is Tailwind?</h3>



<p class="has-small-font-size wp-block-paragraph"><strong>Tailwind CSS</strong> is a utility-first CSS framework that simplifies the process of building modern, responsive web designs. Unlike traditional CSS frameworks (like Bootstrap) that come with predefined components, Tailwind provides a vast collection of utility classes that developers use directly in their HTML. This approach allows for precise, custom designs without needing to write much custom CSS.</p>



<h3 class="wp-block-heading has-medium-font-size">How does Tailwind work?</h3>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Utility-First Classes</strong>: Tailwind provides low-level utility classes (e.g., <code>text-center</code>, <code>bg-blue-500</code>, <code>p-4</code>) that map directly to CSS properties. These classes are combined to style elements directly in the HTML.</li>



<li class="has-small-font-size"><strong>Customization</strong>: Tailwind includes an extensive configuration file (<code>tailwind.config.js</code>) where developers can customize colors, spacing, breakpoints, and more to match the project’s design system.</li>



<li class="has-small-font-size"><strong>Responsive Design</strong>: Built-in responsive utilities (like <code>sm:</code>, <code>md:</code>, <code>lg:</code> prefixes) make creating designs for different screen sizes straightforward.</li>



<li class="has-small-font-size"><strong>CSS Purging</strong>: Tailwind automatically removes unused CSS classes in production builds, ensuring minimal file size and optimal performance.</li>
</ol>



<h3 class="wp-block-heading has-medium-font-size">Example:</h3>



<p class="has-small-font-size wp-block-paragraph">It&#8217;s basically just like <a href="#CSS" data-type="internal" data-id="#CSS">CSS</a> the only difference is that everything is pre styled and fixed under certain classes so you don&#8217;t have to code the design yourself, instead you can just add the specific classes. So just familiarize yourself with the CSS explanation if needed and the example is pretty much the same you could just change it up a bit and say that its like a Skin that exists and you can just call it whenever and not a unique created design (skin).
<div style="height: 0px; width: 0px; overflow: hidden;"><a href="https://antibiotika-de.com/amoxil-rezeptfrei.html">amoxicillin ohne rezept</a></div>
</p>



<h3 class="wp-block-heading has-medium-font-size">Documentation: </h3>



<ul class="wp-block-list">
<li class="has-small-font-size"><a href="https://tailwindcss.com/docs/installation" target="_blank" rel="noreferrer noopener">Tailwind Documentation</a></li>
</ul>



<h1 id="U" class="wp-block-heading has-x-large-font-size">U</h1>



<h1 id="V" class="wp-block-heading has-x-large-font-size">V</h1>



<h2 class="wp-block-heading has-large-font-size">view</h2>



<h3 class="wp-block-heading has-medium-font-size">What can one understand under view?</h3>



<p class="has-small-font-size wp-block-paragraph">It differs what a view is but in this area of expertise (web-programming) its in part of code management. A <strong>view</strong> is a component that handles the presentation layer of an application. It is responsible for displaying data to users and interacting with the logic of the application (typically handled by controllers or scripts) to reflect dynamic content. Here&#8217;s a short explanation on what views do or better said display:</p>



<ol class="wp-block-list">
<li class="has-small-font-size"><strong>Receives Data</strong>: Views are provided with data, often from a controller or a backend API.</li>



<li class="has-small-font-size"><strong>Formats Data</strong>: They format and display the data as HTML, JSON, or other content types that users can interpret.</li>



<li class="has-small-font-size"><strong>Interacts with Users</strong>: Views also provide interactive elements, such as forms or buttons, for user input and feedback.</li>
</ol>



<p class="has-small-font-size wp-block-paragraph">For example, a &#8220;profile page&#8221; view might display user data like name, email, and profile picture, while dynamically updating when the user edits their information.</p>



<p class="has-small-font-size wp-block-paragraph">So the type of files that belong in the views directory are, all types of Files that the User will see or get displayed for example:</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="574" src="https://flurin-lernjournal.hosttech.ch/wp-content/uploads/2024/12/view-1-1024x574.png" alt="" class="wp-image-498" srcset="https://flurin-lernjournal.hosttech.ch/wp-content/uploads/2024/12/view-1-1024x574.png 1024w, https://flurin-lernjournal.hosttech.ch/wp-content/uploads/2024/12/view-1-300x168.png 300w, https://flurin-lernjournal.hosttech.ch/wp-content/uploads/2024/12/view-1-768x431.png 768w, https://flurin-lernjournal.hosttech.ch/wp-content/uploads/2024/12/view-1-1536x861.png 1536w, https://flurin-lernjournal.hosttech.ch/wp-content/uploads/2024/12/view-1-2048x1149.png 2048w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="has-small-font-size wp-block-paragraph">For the image above the files in the view directory would be: <strong><code>index.view.php</code></strong> (Home Page), <strong><code>about.view.php</code></strong> (About Page) and <strong><code>contact.view.php</code></strong> (Contact Page).</p>



<h1 id="W" class="wp-block-heading has-x-large-font-size">W</h1>



<h2 class="wp-block-heading has-large-font-size">WinSCP</h2>



<h2 class="wp-block-heading has-large-font-size">Wonderland</h2>



<h2 class="wp-block-heading has-large-font-size">WordPress</h2>



<h2 class="wp-block-heading has-large-font-size">WSC </h2>



<h1 id="Q" class="wp-block-heading has-x-large-font-size">Q</h1>



<h1 id="Y" class="wp-block-heading has-x-large-font-size">Y</h1>



<h1 id="Z" class="wp-block-heading has-x-large-font-size">Z</h1>



<h2 class="wp-block-heading has-large-font-size">Zeplin</h2>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>CSS</title>
		<link>https://flurin-lernjournal.hosttech.ch/css/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Tue, 05 Nov 2024 11:00:07 +0000</pubDate>
				<category><![CDATA[Befehle]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Erklärungen]]></category>
		<category><![CDATA[hosttech]]></category>
		<category><![CDATA[Lernjournal]]></category>
		<guid isPermaLink="false">https://flurin-lernjournal.hosttech.ch/?p=391</guid>

					<description><![CDATA[CSS provides styling rules for HTML elements, defining colors, layouts, spacing, fonts, and more to control how a web page looks. CSS is organized into rulesets that select specific HTML elements and apply properties and values to define their appearance. CSS Syntax CSS code consists of selectors, properties, and values: For example: Ways to Apply [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="has-small-font-size wp-block-paragraph">CSS provides <strong>styling rules</strong> for HTML elements, defining <strong>colors, layouts, spacing, fonts, and more</strong> to control how a web page looks. CSS is organized into <strong>rulesets</strong> that select specific HTML elements and apply <strong>properties and values</strong> to define their appearance.</p>



<h4 class="wp-block-heading">CSS Syntax</h4>



<p class="has-small-font-size wp-block-paragraph">CSS code consists of <strong>selectors</strong>, <strong>properties</strong>, and <strong>values</strong>:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">CSS</span><span role="button" tabindex="0" data-code="selector {
   property: value;
}" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #D8DEE9FF">selector </span><span style="color: #ECEFF4">{</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #D8DEE9">property</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #88C0D0">value</span><span style="color: #81A1C1">;</span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span></code></pre></div>



<p class="has-small-font-size wp-block-paragraph">For example:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">CSS</span><span role="button" tabindex="0" data-code="h1 {
   color: blue;
   font-size: 24px;
}" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #81A1C1">h1</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #D8DEE9">color</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">blue;</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #D8DEE9">font-size</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">24</span><span style="color: #81A1C1">px;</span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span></code></pre></div>



<ul class="wp-block-list">
<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">selector</mark></code>: Targets the element (e.g., <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">h1</mark></code>).</li>



<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">property</mark></code>: The style attribute (e.g., <mark style="background-color:#000" class="has-inline-color has-custom-color-1-color"><code>color</code></mark>, <mark style="background-color:#000" class="has-inline-color has-custom-color-1-color"><code>font-size</code></mark>).</li>



<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">value</mark></code>: Specifies the style (e.g., <mark style="background-color:#000" class="has-inline-color has-custom-color-1-color"><code>blue</code></mark>, <mark style="background-color:#000" class="has-inline-color has-custom-color-1-color"><code>24px</code></mark>).</li>
</ul>



<h3 class="wp-block-heading has-large-font-size">Ways to Apply CSS</h3>



<p class="has-small-font-size wp-block-paragraph">There are three primary ways to add CSS to a webpage:

</p>



<p class="has-small-font-size wp-block-paragraph">1. <strong>Inline CSS</strong>:</p>



<ul class="wp-block-list">
<li class="has-small-font-size">Style is applied directly within <strong>HTML</strong> elements using the <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">style</mark></code> attribute. </li>



<li class="has-small-font-size">This is discouraged for maintainability and separation of content and style.</li>
</ul>



<ol class="wp-block-list"></ol>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">HTML</span><span role="button" tabindex="0" data-code="&lt;p style=&quot;color: red; font-size: 16px;&quot;&gt;This is inline styled text.&lt;/p&gt;" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #81A1C1">&lt;p</span><span style="color: #D8DEE9FF"> </span><span style="color: #8FBCBB">style</span><span style="color: #ECEFF4">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">color: red; font-size: 16px;</span><span style="color: #ECEFF4">&quot;</span><span style="color: #81A1C1">&gt;</span><span style="color: #D8DEE9FF">This is inline styled text.</span><span style="color: #81A1C1">&lt;/p&gt;</span></span></code></pre></div>



<p class="has-small-font-size wp-block-paragraph">2. <strong>Internal CSS</strong>:<ul><li>Placed inside a <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">&lt;style></mark></code> tag within the <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">&lt;head></mark></code> of the <strong>HTML</strong> document, internal <strong>CSS</strong> applies styles to that specific <strong>HTML</strong> file.</li></ul></p>



<ol class="wp-block-list"></ol>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">HTML</span><span role="button" tabindex="0" data-code="&lt;head&gt; 
  &lt;style&gt; 
    p { 
      color: blue; 
      font-size: 18px; 
    } 
  &lt;/style&gt; 
&lt;/head&gt;" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #81A1C1">&lt;head&gt;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #ECEFF4">  </span><span style="color: #81A1C1">&lt;style&gt;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">    </span><span style="color: #81A1C1">p</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">      </span><span style="color: #D8DEE9">color</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">blue;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">      </span><span style="color: #D8DEE9">font-size</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">18</span><span style="color: #81A1C1">px;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">    </span><span style="color: #ECEFF4">}</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #81A1C1">&lt;/style&gt;</span><span style="color: #ECEFF4"> </span></span>
<span class="line"><span style="color: #81A1C1">&lt;/head&gt;</span></span></code></pre></div>



<p class="has-small-font-size wp-block-paragraph">3. <strong>External CSS</strong>:<ul><li>Stored in an external <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">.css</mark></code> file, this is the preferred method, especially for large or multi-page websites, as it keeps the styling organized and reusable across multiple pages.</li></ul></p>



<ol class="wp-block-list"></ol>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">HTML</span><span role="button" tabindex="0" data-code="&lt;link rel=&quot;stylesheet&quot; href=&quot;styles.css&quot;&gt;" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #81A1C1">&lt;link</span><span style="color: #D8DEE9FF"> </span><span style="color: #8FBCBB">rel</span><span style="color: #ECEFF4">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">stylesheet</span><span style="color: #ECEFF4">&quot;</span><span style="color: #D8DEE9FF"> </span><span style="color: #8FBCBB">href</span><span style="color: #ECEFF4">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">styles.css</span><span style="color: #ECEFF4">&quot;</span><span style="color: #81A1C1">&gt;</span></span></code></pre></div>



<h3 class="wp-block-heading has-large-font-size">CSS Selectors</h3>



<p class="has-small-font-size wp-block-paragraph">Selectors in <strong>CSS</strong> allow you to target specific <strong>HTML</strong> elements. Let’s look at some of the most common types.</p>



<p class="has-small-font-size wp-block-paragraph">1. <strong>Element Selector</strong>:<ul><li>Targets all instances of a specific <strong>HTML</strong> tag.</li></ul></p>



<ol class="wp-block-list"></ol>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">CSS</span><span role="button" tabindex="0" data-code="p { 
  color: gray; 
}" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #81A1C1">p</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">color</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">gray;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span></code></pre></div>



<p class="has-small-font-size wp-block-paragraph">2. <strong>Class Selector</strong>:<ul><li>Targets elements with a specific <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">class</mark></code> attribute. Classes are reusable, making them useful for styling groups of elements.</li></ul></p>



<ol class="wp-block-list"></ol>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">CSS</span><span role="button" tabindex="0" data-code=".highlight { 
  background-color: yellow; 
} " style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #ECEFF4">.</span><span style="color: #8FBCBB">highlight</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">background-color</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">yellow;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #ECEFF4">}</span><span style="color: #D8DEE9FF"> </span></span></code></pre></div>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">HTML</span><span role="button" tabindex="0" data-code="&lt;p class=&quot;highlight&quot;&gt;This text is highlighted.&lt;/p&gt;" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #81A1C1">&lt;p</span><span style="color: #D8DEE9FF"> </span><span style="color: #8FBCBB">class</span><span style="color: #ECEFF4">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">highlight</span><span style="color: #ECEFF4">&quot;</span><span style="color: #81A1C1">&gt;</span><span style="color: #D8DEE9FF">This text is highlighted.</span><span style="color: #81A1C1">&lt;/p&gt;</span></span></code></pre></div>



<p class="has-small-font-size wp-block-paragraph">3. <strong>ID Selector</strong>:<ul><li>Targets an element with a unique <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">id</mark></code> attribute. IDs should be unique on each page, meaning they are usually only applied to a single element.</li></ul></p>



<ol class="wp-block-list"></ol>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">CSS</span><span role="button" tabindex="0" data-code="#header { 
  font-weight: bold; 
} " style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #ECEFF4">#</span><span style="color: #8FBCBB">header</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">font-weight</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">bold;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #ECEFF4">}</span><span style="color: #D8DEE9FF"> </span></span></code></pre></div>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">HTML</span><span role="button" tabindex="0" data-code="&lt;h1 id=&quot;header&quot;&gt;Main Header&lt;/h1&gt;" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #81A1C1">&lt;h1</span><span style="color: #D8DEE9FF"> </span><span style="color: #8FBCBB">id</span><span style="color: #ECEFF4">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">header</span><span style="color: #ECEFF4">&quot;</span><span style="color: #81A1C1">&gt;</span><span style="color: #D8DEE9FF">Main Header</span><span style="color: #81A1C1">&lt;/h1&gt;</span></span></code></pre></div>



<p class="has-small-font-size wp-block-paragraph">4. <strong>Attribute Selector</strong>:<ul><li>Targets elements with a specific attribute, useful for styling elements with attributes like <mark style="background-color:#000" class="has-inline-color has-custom-color-1-color"><code>type</code></mark>, <mark style="background-color:#000" class="has-inline-color has-custom-color-1-color"><code>href</code></mark>, or <mark style="background-color:#000" class="has-inline-color has-custom-color-1-color"><code>target</code></mark>.</li></ul></p>



<ol class="wp-block-list"></ol>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">CSS</span><span role="button" tabindex="0" data-code="input[type=&quot;text&quot;] { 
  border: 1px solid gray; 
}" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #81A1C1">input</span><span style="color: #ECEFF4">[</span><span style="color: #8FBCBB">type</span><span style="color: #81A1C1">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">text</span><span style="color: #ECEFF4">&quot;</span><span style="color: #ECEFF4">]</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">border</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">1</span><span style="color: #81A1C1">px</span><span style="color: #88C0D0"> </span><span style="color: #81A1C1">solid</span><span style="color: #88C0D0"> </span><span style="color: #81A1C1">gray;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span></code></pre></div>



<p class="wp-block-paragraph">5. <strong>Combinators</strong>:</p>



<ul class="wp-block-list">
<li class="has-small-font-size">Used to target elements based on their relationship to other elements.
<ul class="wp-block-list">
<li><strong>Descendant Selector</strong> (<code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">div p</mark></code>): Selects <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">&lt;p></mark></code> elements within <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">&lt;div></mark></code> elements.</li>



<li><strong>Child Selector</strong> (<code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">ul > li</mark></code>): Selects direct child <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">&lt;li></mark></code> elements inside <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">&lt;ul></mark></code>.</li>



<li><strong>Adjacent Sibling Selector</strong> (<code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">h1 + p</mark></code>): Selects the first <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">&lt;p></mark></code> immediately following an <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">&lt;h1></mark></code>.</li>
</ul>
</li>
</ul>



<ol class="wp-block-list"></ol>



<h3 class="wp-block-heading">Common CSS Properties</h3>



<p class="has-small-font-size wp-block-paragraph">1. <strong>Text Styling</strong>:</p>



<ul class="wp-block-list">
<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">color</mark></code>: Text color.</li>



<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">font-size</mark></code>: Size of the text (can use units like <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">px</mark></code>, <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">em</mark></code>, or <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">%</mark></code>).</li>



<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">font-family</mark></code>: Specifies the typeface.</li>



<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">font-weight</mark></code>: Sets thickness, such as <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">normal</mark></code>, <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">bold</mark></code>, or numerical values (<code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">100–900</mark></code>).</li>



<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">text-align</mark></code>: Aligns text within its container (e.g., <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">left</mark></code>, <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">center</mark></code>, <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">right</mark></code>).</li>
</ul>



<ol class="wp-block-list"></ol>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">CSS</span><span role="button" tabindex="0" data-code="h1 { 
  color: darkblue; 
  font-size: 28px; 
  text-align: center; 
}" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #81A1C1">h1</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">color</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">darkblue;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">font-size</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">28</span><span style="color: #81A1C1">px;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">text-align</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">center;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span></code></pre></div>



<p class="has-small-font-size wp-block-paragraph">2. <strong>Color and Background</strong>:</p>



<ul class="wp-block-list">
<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">background-color</mark></code>: Sets the background color.</li>



<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">background-image</mark></code>: Adds a background image.</li>



<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">background-size</mark></code>: Controls the background image’s size, commonly set to <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">cover</mark></code> or <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">contain</mark></code>.</li>



<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">opacity</mark></code>: Controls transparency (values between <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">0</mark></code> and <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">1</mark></code>).</li>
</ul>



<ol class="wp-block-list"></ol>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">CSS</span><span role="button" tabindex="0" data-code="body { 
  background-color: #f0f0f0; 
  background-image: url(&quot;background.jpg&quot;); 
  background-size: cover; 
}" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #81A1C1">body</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">background-color</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">#</span><span style="color: #B48EAD">f0f0f0</span><span style="color: #81A1C1">;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">background-image</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #88C0D0">url</span><span style="color: #ECEFF4">(</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">background.jpg</span><span style="color: #ECEFF4">&quot;</span><span style="color: #ECEFF4">)</span><span style="color: #81A1C1">;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">background-size</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">cover;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span></code></pre></div>



<p class="has-small-font-size wp-block-paragraph">3. <strong>Box Model Properties</strong>: <strong>CSS </strong>uses a <strong>box model</strong> for each element, consisting of <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">margin</mark></code>, <mark style="background-color:#000" class="has-inline-color has-custom-color-1-color"><code>border</code></mark>, <mark style="background-color:#000" class="has-inline-color has-custom-color-1-color"><code>padding</code></mark>, and <mark style="background-color:#000" class="has-inline-color has-custom-color-1-color"><code>content</code></mark>.</p>



<ul class="wp-block-list">
<li class="has-small-font-size"><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color"><code>margin</code></mark>: Space outside the border, creating space between elements.</li>



<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">border</mark></code>: Defines the element’s border, including <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">width</mark></code>, <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">style</mark></code>, and <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">color</mark></code>.</li>



<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">padding</mark></code>: Space between content and border, within the element.</li>



<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">width</mark></code> and <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">height</mark></code>: Set the element’s dimensions.</li>
</ul>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">CSS</span><span role="button" tabindex="0" data-code=".box { 
  width: 200px; 
  height: 150px; 
  padding: 10px; 
  border: 2px solid black; 
  margin: 20px; 
}" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #ECEFF4">.</span><span style="color: #8FBCBB">box</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">width</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">200</span><span style="color: #81A1C1">px;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">height</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">150</span><span style="color: #81A1C1">px;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">padding</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">10</span><span style="color: #81A1C1">px;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">border</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">2</span><span style="color: #81A1C1">px</span><span style="color: #88C0D0"> </span><span style="color: #81A1C1">solid</span><span style="color: #88C0D0"> </span><span style="color: #81A1C1">black;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">margin</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">20</span><span style="color: #81A1C1">px;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span></code></pre></div>



<p class="has-small-font-size wp-block-paragraph">4. <strong>Layout Properties</strong>: <strong>CSS </strong>controls layout through various display and positioning methods.</p>



<ul class="wp-block-list">
<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">display</mark></code>: Defines how an element is displayed.
<ul class="wp-block-list">
<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">block</mark></code>: Element takes up full width.</li>



<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">inline</mark></code>: Element takes up only as much space as needed.</li>



<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">inline-block</mark></code>: Combines inline and block properties.</li>



<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">flex</mark></code>: Makes an element a flex container.</li>
</ul>
</li>



<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">position</mark></code>: Controls an element&#8217;s position relative to its container.
<ul class="wp-block-list">
<li class="has-small-font-size"><code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">static</mark></code>, <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">relative</mark></code>, <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">absolute</mark></code>, <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">fixed</mark></code>, <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">sticky.</mark></code></li>
</ul>
</li>
</ul>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">CSS</span><span role="button" tabindex="0" data-code=".container { 
  display: flex; 
  justify-content: space-around; 
}" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #ECEFF4">.</span><span style="color: #8FBCBB">container</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">display</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">flex;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">justify-content</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">space-around;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span></code></pre></div>



<p class="has-small-font-size wp-block-paragraph">5. <strong>Flexbox and Grid</strong>: Modern layout systems like <strong>Flexbox</strong> and <strong>CSS Grid</strong> simplify complex layouts.</p>



<ul class="wp-block-list">
<li class="has-small-font-size"><strong>Flexbox</strong>: Great for one-dimensional layouts.</li>
</ul>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">CSS</span><span role="button" tabindex="0" data-code=".flex-container { 
  display: flex; 
  flex-direction: row; 
  justify-content: space-between; 
}" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #ECEFF4">.</span><span style="color: #8FBCBB">flex-container</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">display</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">flex;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">flex-direction</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">row;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">justify-content</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">space-between;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span></code></pre></div>



<ul class="wp-block-list">
<li class="has-small-font-size"><strong>CSS Grid</strong>: Best for two-dimensional layouts.</li>
</ul>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">CSS</span><span role="button" tabindex="0" data-code=".grid-container { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 10px; 
}" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #ECEFF4">.</span><span style="color: #8FBCBB">grid-container</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">display</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">grid;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">grid-template-columns</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #88C0D0">repeat</span><span style="color: #ECEFF4">(</span><span style="color: #B48EAD">3</span><span style="color: #ECEFF4">,</span><span style="color: #88C0D0"> </span><span style="color: #B48EAD">1</span><span style="color: #81A1C1">fr</span><span style="color: #ECEFF4">)</span><span style="color: #81A1C1">;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">gap</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">10</span><span style="color: #81A1C1">px;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span></code></pre></div>



<h3 class="wp-block-heading has-large-font-size">Pseudo-classes and Pseudo-elements</h3>



<p class="has-small-font-size wp-block-paragraph"><strong>CSS </strong>offers <strong>pseudo-classes</strong> and <strong>pseudo-elements</strong> to target specific states or parts of elements.</p>



<p class="has-small-font-size wp-block-paragraph">1. <strong>Pseudo-classes</strong>:<ul><li>Target states of elements, like when a link is hovered, visited, or active.</li></ul></p>



<ol class="wp-block-list"></ol>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">CSS</span><span role="button" tabindex="0" data-code="a:hover { 
  color: green; 
}" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #81A1C1">a</span><span style="color: #ECEFF4">:</span><span style="color: #8FBCBB">hover</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">color</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">green;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span></code></pre></div>



<p class="has-small-font-size wp-block-paragraph">2. <strong>Pseudo-elements</strong>:<ul><li>Target and style a part of an element, like the first letter or line.</li></ul></p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">CSS</span><span role="button" tabindex="0" data-code="p::first-line { 
  font-weight: bold; 
} 
p::first-letter { 
  font-size: 200%; 
}" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #81A1C1">p</span><span style="color: #ECEFF4">::</span><span style="color: #8FBCBB">first-line</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">font-weight</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">bold;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #ECEFF4">}</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #81A1C1">p</span><span style="color: #ECEFF4">::</span><span style="color: #8FBCBB">first-letter</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">font-size</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">200</span><span style="color: #81A1C1">%;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span></code></pre></div>



<h3 class="wp-block-heading">CSS Units and Measurements</h3>



<p class="wp-block-paragraph">CSS uses different units to define dimensions, positioning, and spacing. Some common units are:</p>



<ul class="wp-block-list">
<li><strong>Absolute units</strong>: Pixels (<code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">px</mark></code>), centimeters (<code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">cm</mark></code>) – fixed sizes.</li>



<li><strong>Relative units</strong>: <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">em</mark></code>, <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">rem</mark></code> – scale based on parent or root element’s size.</li>



<li><strong>Percentages</strong> (<code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">%</mark></code>): Relative to the containing element.</li>
</ul>



<p class="wp-block-paragraph">For example:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">CSS</span><span role="button" tabindex="0" data-code="body {
   font-size: 16px;
}

p {
   font-size: 1.5em; /* 1.5 times the body font-size (16px) */
}" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #81A1C1">body</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #D8DEE9">font-size</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">16</span><span style="color: #81A1C1">px;</span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #81A1C1">p</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #D8DEE9">font-size</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">1.5</span><span style="color: #81A1C1">em;</span><span style="color: #D8DEE9FF"> </span><span style="color: #616E88">/* 1.5 times the body font-size (16px) */</span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span></code></pre></div>



<h3 class="wp-block-heading has-large-font-size">Responsive Design with CSS</h3>



<p class="has-small-font-size wp-block-paragraph">Responsive design allows web pages to adjust layout and styling based on the screen size. Common techniques include:</p>



<p class="has-small-font-size wp-block-paragraph">1. <strong>Media Queries</strong>:<ul><li>Allow different CSS rules based on screen size, orientation, and resolution.</li></ul></p>



<ol class="wp-block-list"></ol>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">CSS</span><span role="button" tabindex="0" data-code="@media (max-width: 750px) { 
  .container { 
    flex-direction: column; 
  } 
}" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #D08770">@media</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">(</span><span style="color: #D8DEE9">max-width</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">750</span><span style="color: #81A1C1">px</span><span style="color: #ECEFF4">)</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #ECEFF4">.</span><span style="color: #8FBCBB">container</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">    </span><span style="color: #D8DEE9">flex-direction</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">column;</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #ECEFF4">}</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span></code></pre></div>



<p class="has-small-font-size wp-block-paragraph">2. <strong>Responsive Units</strong>:<ul><li>Use relative units (<code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">%</mark></code>, <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">vw</mark></code>, <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">vh</mark></code>, <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">em</mark></code>) instead of fixed units like <code><mark style="background-color:#000" class="has-inline-color has-custom-color-1-color">px</mark></code> to create flexible designs.</li></ul></p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">CSS</span><span role="button" tabindex="0" data-code=".responsive-box { 
  width: 50vw; /* 50% of the viewport width */ 
}" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #ECEFF4">.</span><span style="color: #8FBCBB">responsive-box</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #D8DEE9FF">  </span><span style="color: #D8DEE9">width</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">50</span><span style="color: #81A1C1">vw;</span><span style="color: #D8DEE9FF"> </span><span style="color: #616E88">/* 50% of the viewport width */</span><span style="color: #D8DEE9FF"> </span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span></code></pre></div>



<p class="wp-block-paragraph">Example mini start website with <strong>CSS</strong><br>Code:</p>



<div class="wp-block-kevinbatdorf-code-block-pro cbp-has-line-numbers" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-color:#d8dee9ff;--cbp-line-number-width:calc(2 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#39404f;color:#c8d0e0">HTML</span><span role="button" tabindex="0" data-code="&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
   &lt;meta charset=&quot;UTF-8&quot;&gt;
   &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;
   &lt;title&gt;Styled Page&lt;/title&gt;
   
&lt;style&gt;
body {
   font-family: Arial, sans-serif;
   margin: 0;
   background-color: #dbd3d3;
}

.header {
   background-color: #333;
   color: #fff;
   padding: 20px;
   text-align: center;
}

.nav-link {
   color: white;
   margin: 0 10px;
}

.nav-link:hover {
   color: #c800ff;
}


.main-content {
   padding: 20px;
}

.section {
   margin-top: 20px;
}

.paragraph {
   color: #555;
   font-size: 1.1em;
   line-height: 1.6;
}
&lt;/style&gt;

&lt;/head&gt;
&lt;body&gt;
   &lt;header class=&quot;header&quot;&gt;
       &lt;h1&gt;Welcome to My Page&lt;/h1&gt;
       &lt;nav&gt;
           &lt;a href=&quot;#home&quot; class=&quot;nav-link&quot;&gt;Home&lt;/a&gt;
           &lt;a href=&quot;#about&quot; class=&quot;nav-link&quot;&gt;About&lt;/a&gt;
       &lt;/nav&gt;
   &lt;/header&gt;

   &lt;main class=&quot;main-content&quot;&gt;
       &lt;section class=&quot;section&quot;&gt;
           &lt;h2&gt;About Us&lt;/h2&gt;
           &lt;p class=&quot;paragraph&quot;&gt;We can create beautiful websites with CSS.&lt;/p&gt;
       &lt;/section&gt;
   &lt;/main&gt;
&lt;/body&gt;
&lt;/html&gt;" style="color:#d8dee9ff;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M4.5 12.75l6 6 9-13.5"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6"></path></svg></span><pre class="shiki nord" style="background-color: #2e3440ff" tabindex="0"><code><span class="line"><span style="color: #81A1C1">&lt;!DOCTYPE</span><span style="color: #D8DEE9FF"> </span><span style="color: #8FBCBB">html</span><span style="color: #81A1C1">&gt;</span></span>
<span class="line"><span style="color: #81A1C1">&lt;html</span><span style="color: #D8DEE9FF"> </span><span style="color: #8FBCBB">lang</span><span style="color: #ECEFF4">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">en</span><span style="color: #ECEFF4">&quot;</span><span style="color: #81A1C1">&gt;</span></span>
<span class="line"><span style="color: #81A1C1">&lt;head&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #81A1C1">&lt;meta</span><span style="color: #D8DEE9FF"> </span><span style="color: #8FBCBB">charset</span><span style="color: #ECEFF4">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">UTF-8</span><span style="color: #ECEFF4">&quot;</span><span style="color: #81A1C1">&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #81A1C1">&lt;meta</span><span style="color: #D8DEE9FF"> </span><span style="color: #8FBCBB">name</span><span style="color: #ECEFF4">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">viewport</span><span style="color: #ECEFF4">&quot;</span><span style="color: #D8DEE9FF"> </span><span style="color: #8FBCBB">content</span><span style="color: #ECEFF4">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">width=device-width, initial-scale=1.0</span><span style="color: #ECEFF4">&quot;</span><span style="color: #81A1C1">&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #81A1C1">&lt;title&gt;</span><span style="color: #D8DEE9FF">Styled Page</span><span style="color: #81A1C1">&lt;/title&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span></span>
<span class="line"><span style="color: #81A1C1">&lt;style&gt;</span></span>
<span class="line"><span style="color: #81A1C1">body</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #D8DEE9">font-family</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">Arial</span><span style="color: #ECEFF4">,</span><span style="color: #88C0D0"> </span><span style="color: #81A1C1">sans-serif;</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #D8DEE9">margin</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">0</span><span style="color: #81A1C1">;</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #D8DEE9">background-color</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">#</span><span style="color: #B48EAD">dbd3d3</span><span style="color: #81A1C1">;</span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #81A1C1">.</span><span style="color: #8FBCBB">header</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #D8DEE9">background-color</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">#</span><span style="color: #B48EAD">333</span><span style="color: #81A1C1">;</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #D8DEE9">color</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">#</span><span style="color: #B48EAD">fff</span><span style="color: #81A1C1">;</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #D8DEE9">padding</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">20</span><span style="color: #81A1C1">px;</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #D8DEE9">text-align</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">center;</span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #81A1C1">.</span><span style="color: #8FBCBB">nav-link</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #D8DEE9">color</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #81A1C1">white;</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #D8DEE9">margin</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">0</span><span style="color: #88C0D0"> </span><span style="color: #B48EAD">10</span><span style="color: #81A1C1">px;</span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #81A1C1">.</span><span style="color: #8FBCBB">nav-link</span><span style="color: #81A1C1">:</span><span style="color: #8FBCBB">hover</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #D8DEE9">color</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">#</span><span style="color: #B48EAD">c800ff</span><span style="color: #81A1C1">;</span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"><span style="color: #81A1C1">.</span><span style="color: #8FBCBB">main-content</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #D8DEE9">padding</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">20</span><span style="color: #81A1C1">px;</span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #81A1C1">.</span><span style="color: #8FBCBB">section</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #D8DEE9">margin-top</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">20</span><span style="color: #81A1C1">px;</span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span>
<span class="line"></span>
<span class="line"><span style="color: #81A1C1">.</span><span style="color: #8FBCBB">paragraph</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">{</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #D8DEE9">color</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #ECEFF4">#</span><span style="color: #B48EAD">555</span><span style="color: #81A1C1">;</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #D8DEE9">font-size</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">1.1</span><span style="color: #81A1C1">em;</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #D8DEE9">line-height</span><span style="color: #ECEFF4">:</span><span style="color: #D8DEE9FF"> </span><span style="color: #B48EAD">1.6</span><span style="color: #81A1C1">;</span></span>
<span class="line"><span style="color: #ECEFF4">}</span></span>
<span class="line"><span style="color: #81A1C1">&lt;/style&gt;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #81A1C1">&lt;/head&gt;</span></span>
<span class="line"><span style="color: #81A1C1">&lt;body&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #81A1C1">&lt;header</span><span style="color: #D8DEE9FF"> </span><span style="color: #8FBCBB">class</span><span style="color: #ECEFF4">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">header</span><span style="color: #ECEFF4">&quot;</span><span style="color: #81A1C1">&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">       </span><span style="color: #81A1C1">&lt;h1&gt;</span><span style="color: #D8DEE9FF">Welcome to My Page</span><span style="color: #81A1C1">&lt;/h1&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">       </span><span style="color: #81A1C1">&lt;nav&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">           </span><span style="color: #81A1C1">&lt;a</span><span style="color: #D8DEE9FF"> </span><span style="color: #8FBCBB">href</span><span style="color: #ECEFF4">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">#home</span><span style="color: #ECEFF4">&quot;</span><span style="color: #D8DEE9FF"> </span><span style="color: #8FBCBB">class</span><span style="color: #ECEFF4">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">nav-link</span><span style="color: #ECEFF4">&quot;</span><span style="color: #81A1C1">&gt;</span><span style="color: #D8DEE9FF">Home</span><span style="color: #81A1C1">&lt;/a&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">           </span><span style="color: #81A1C1">&lt;a</span><span style="color: #D8DEE9FF"> </span><span style="color: #8FBCBB">href</span><span style="color: #ECEFF4">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">#about</span><span style="color: #ECEFF4">&quot;</span><span style="color: #D8DEE9FF"> </span><span style="color: #8FBCBB">class</span><span style="color: #ECEFF4">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">nav-link</span><span style="color: #ECEFF4">&quot;</span><span style="color: #81A1C1">&gt;</span><span style="color: #D8DEE9FF">About</span><span style="color: #81A1C1">&lt;/a&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">       </span><span style="color: #81A1C1">&lt;/nav&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #81A1C1">&lt;/header&gt;</span></span>
<span class="line"></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #81A1C1">&lt;main</span><span style="color: #D8DEE9FF"> </span><span style="color: #8FBCBB">class</span><span style="color: #ECEFF4">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">main-content</span><span style="color: #ECEFF4">&quot;</span><span style="color: #81A1C1">&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">       </span><span style="color: #81A1C1">&lt;section</span><span style="color: #D8DEE9FF"> </span><span style="color: #8FBCBB">class</span><span style="color: #ECEFF4">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">section</span><span style="color: #ECEFF4">&quot;</span><span style="color: #81A1C1">&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">           </span><span style="color: #81A1C1">&lt;h2&gt;</span><span style="color: #D8DEE9FF">About Us</span><span style="color: #81A1C1">&lt;/h2&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">           </span><span style="color: #81A1C1">&lt;p</span><span style="color: #D8DEE9FF"> </span><span style="color: #8FBCBB">class</span><span style="color: #ECEFF4">=</span><span style="color: #ECEFF4">&quot;</span><span style="color: #A3BE8C">paragraph</span><span style="color: #ECEFF4">&quot;</span><span style="color: #81A1C1">&gt;</span><span style="color: #D8DEE9FF">We can create beautiful websites with CSS.</span><span style="color: #81A1C1">&lt;/p&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">       </span><span style="color: #81A1C1">&lt;/section&gt;</span></span>
<span class="line"><span style="color: #D8DEE9FF">   </span><span style="color: #81A1C1">&lt;/main&gt;</span></span>
<span class="line"><span style="color: #81A1C1">&lt;/body&gt;</span></span>
<span class="line"><span style="color: #81A1C1">&lt;/html&gt;</span></span></code></pre></div>



<p class="wp-block-paragraph">Output:</p>



<ol class="wp-block-list"></ol>



<ol class="wp-block-list"></ol>



<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <meta name="viewport" content="width=device-width  , initial-scale=1.0">
   <title>Styled Page</title>
   
<style>
  body {
   font-family: Arial, sans-serif;
   margin: 0;
   background-color: #dbd3d3;
}

.header {
   background-color: #333;
   color: #fff;
   padding: 20px;
   text-align: center;
}

.nav-link {
   color: white;
   margin: 0 10px;
}

.nav-link:hover {
   color: #c800ff;
}


.main-content {
   padding: 20px;
}

.section {
   margin-top: 20px;
}

.paragraph {
   color: #555;
   font-size: 1.1em;
   line-height: 1.6;
}
</style>

</head>
<body>
   <header class="header">
       <h1>Welcome to My Page</h1>
       <nav>
           <a href="#home" class="nav-link">Home</a>
           <a href="#about" class="nav-link">About</a>
       </nav>
   </header>

   <main class="main-content">
       <section class="section">
           <h2>About Us</h2>
           <p class="paragraph">We create beautiful web pages with CSS!</p>
       </section>
   </main>
</body>
</html>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
