<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by İlhan Bal on Medium]]></title>
        <description><![CDATA[Stories by İlhan Bal on Medium]]></description>
        <link>https://medium.com/@ilhanbal577?source=rss-7596f02cf962------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WkBpPYlgl9oQpyHuh8KMxQ.jpeg</url>
            <title>Stories by İlhan Bal on Medium</title>
            <link>https://medium.com/@ilhanbal577?source=rss-7596f02cf962------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 16:43:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ilhanbal577/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Why Do Most JWT Tokens Start with eyJ?]]></title>
            <link>https://medium.com/@ilhanbal577/why-do-most-jwt-tokens-start-with-eyj-1a99e8444d68?source=rss-7596f02cf962------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a99e8444d68</guid>
            <category><![CDATA[jwt]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[token]]></category>
            <dc:creator><![CDATA[İlhan Bal]]></dc:creator>
            <pubDate>Sun, 28 Jun 2026 19:51:10 GMT</pubDate>
            <atom:updated>2026-06-28T19:51:45.180Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hHtUfp_hlE6wRxYKwfTMXA.png" /></figure><p>If you have ever worked with authentication or authorization in modern web applications, you have probably seen a token that looks like this:</p><pre>eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...</pre><p>At first glance, it looks random. But one small detail is very common:</p><pre>eyJ</pre><p>So, why do most JWT tokens start with eyJ?</p><p>The answer is simple: <strong>because JWTs usually start with a JSON header, and that JSON header is Base64URL encoded.</strong></p><h3>What Is a JWT?</h3><p>JWT stands for <strong>JSON Web Token</strong>. It is a compact and URL-safe way to represent information between two parties.</p><p>A JWT usually has three parts:</p><pre>header.payload.signature</pre><p>For example:</p><pre>xxxxx.yyyyy.zzzzz</pre><p>Each part is Base64URL encoded.</p><p>The first part is the <strong>header</strong>. The second part is the <strong>payload</strong>. The third part is the <strong>signature</strong>.</p><h3>The JWT Header</h3><p>A typical JWT header looks like this before encoding:</p><pre>{<br>  &quot;alg&quot;: &quot;HS256&quot;,<br>  &quot;typ&quot;: &quot;JWT&quot;<br>}</pre><p>This header tells us two important things:</p><p>FieldMeaningalgThe algorithm used to sign the tokentypThe type of token, usually JWT</p><p>Now here is the key point:</p><p>This JSON object starts with:</p><pre>{</pre><p>And usually, after that, the first key starts with a double quote:</p><pre>{&quot;alg&quot;: ...</pre><p>So the beginning of the raw JSON is usually:</p><pre>{&quot;</pre><p>When this is encoded with Base64URL, it becomes:</p><pre>eyJ</pre><p>That is why most JWTs start with eyJ.</p><h3>Breaking Down eyJ</h3><p>Let’s decode the idea step by step.</p><p>The beginning of a JWT header is usually:</p><pre>{&quot;alg&quot;</pre><p>When Base64URL encoded, it becomes something like:</p><pre>eyJhbGci</pre><p>So when you see this:</p><pre>eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9</pre><p>It is not random text. It is just the encoded version of a JSON header like this:</p><pre>{<br>  &quot;alg&quot;: &quot;HS256&quot;,<br>  &quot;typ&quot;: &quot;JWT&quot;<br>}</pre><p>In other words:</p><pre>eyJ = encoded form of the beginning of a JSON object</pre><h3>Does Every JWT Start with eyJ?</h3><p>Not always, but most commonly yes.</p><p>A JWT usually starts with eyJ because the header is usually a JSON object that begins with:</p><pre>{&quot;</pre><p>However, if the header structure changes, if whitespace is added, or if the token uses a different format, the beginning may be different.</p><p>For example, this compact JSON:</p><pre>{&quot;alg&quot;:&quot;HS256&quot;,&quot;typ&quot;:&quot;JWT&quot;}</pre><p>commonly starts with eyJ after encoding.</p><p>But this JSON with whitespace:</p><pre>{<br>  &quot;alg&quot;: &quot;HS256&quot;,<br>  &quot;typ&quot;: &quot;JWT&quot;<br>}</pre><p>may produce a different encoded beginning, because Base64URL encoding depends on the exact bytes.</p><p>So eyJ is not a magic JWT prefix. It is just a side effect of encoding JSON.</p><h3>Important Security Note</h3><p>Seeing eyJ does not mean the token is secure.</p><p>It only means that the token probably contains Base64URL-encoded JSON.</p><p>JWT content can usually be decoded easily. The important part is not whether the token can be decoded, but whether the signature can be verified.</p><p>A JWT should always be validated properly on the server side. Never trust a JWT just because it looks valid.</p><h3>Simple Summary</h3><p>Most JWT tokens start with eyJ because:</p><ol><li>JWT headers are JSON objects.</li><li>JSON objects usually start with {.</li><li>The first key usually starts with &quot;.</li><li>The characters {&quot; become eyJ when Base64URL encoded.</li></ol><p>So the next time you see a JWT starting with:</p><pre>eyJ...</pre><p>remember: it is not random. It is simply encoded JSON.</p><h3>References</h3><ul><li>RFC 7519 JSON Web Token</li><li>RFC 7515 JSON Web Signature</li><li>jwt.io JSON Web Token Introduction</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a99e8444d68" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Boot Process Explained Simply CompTIA Linux+ XK0–006 Notes]]></title>
            <link>https://medium.com/@ilhanbal577/linux-boot-process-explained-simply-comptia-linux-xk0-006-notes-fd12284d92b3?source=rss-7596f02cf962------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd12284d92b3</guid>
            <category><![CDATA[xk0-006]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[reboot]]></category>
            <category><![CDATA[linux-kernel]]></category>
            <category><![CDATA[comptia]]></category>
            <dc:creator><![CDATA[İlhan Bal]]></dc:creator>
            <pubDate>Fri, 19 Jun 2026 22:52:48 GMT</pubDate>
            <atom:updated>2026-06-19T22:52:48.924Z</atom:updated>
            <content:encoded><![CDATA[<p>While preparing for the CompTIA Linux+ XK0–006 exam, one of the first topics under System Management is the Linux boot process.</p><p>At first, terms like BIOS, UEFI, GRUB2, kernel, initramfs, and systemd may sound confusing. But the main idea is simple:</p><blockquote><em>The Linux boot process is everything that happens between pressing the power button and reaching a login screen.</em></blockquote><p>In this article, I will explain the Linux boot process in 6 beginner-friendly steps.</p><h3>Quick Overview</h3><p>The boot process can be summarized like this:</p><pre>Power On<br>→ BIOS / UEFI<br>→ GRUB2 Bootloader<br>→ Linux Kernel<br>→ initramfs<br>→ Hardware and drivers<br>→ systemd and services<br>→ Login screen</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uq1aE2cAsMnCSbpXSg2kYg.png" /></figure><h3>1. BIOS / UEFI: The First Stage</h3><p>When you press the power button, Linux does not start immediately.</p><p>First, the system firmware starts. This firmware is usually BIOS or UEFI.</p><p>Its job is to:</p><ul><li>Check the hardware</li><li>Find a bootable device</li><li>Start the bootloader</li></ul><p>This hardware check is called POST, which means Power-On Self-Test.</p><p>BIOS is the older boot method. It usually works with MBR disks.</p><p>UEFI is the modern boot method. It usually works with GPT disks and uses a special partition called the EFI System Partition.</p><p>In Linux, the EFI System Partition is usually mounted at:</p><pre>/boot/efi</pre><p>Simple idea:</p><pre>BIOS / UEFI does not start Linux directly.<br>It finds and starts the bootloader.</pre><p>Useful command:</p><pre>ls /boot/efi</pre><h3>2. GRUB2: The Bootloader</h3><p>After BIOS or UEFI finishes its job, it passes control to the bootloader.</p><p>On most Linux systems, the bootloader is GRUB2.</p><p>GRUB2 is responsible for loading the Linux kernel.</p><p>It also allows you to choose between:</p><ul><li>Different kernel versions</li><li>Recovery mode</li><li>Another operating system</li><li>Custom boot options</li></ul><p>The main GRUB configuration file is usually:</p><pre>/boot/grub/grub.cfg</pre><p>or:</p><pre>/boot/grub2/grub.cfg</pre><p>But this file should not be edited directly.</p><p>The safer file to edit is:</p><pre>/etc/default/grub</pre><p>After changing this file, you regenerate the GRUB configuration.</p><p>On Ubuntu/Debian:</p><pre>sudo update-grub</pre><p>On RHEL/Fedora/Rocky Linux:</p><pre>sudo grub2-mkconfig -o /boot/grub2/grub.cfg</pre><p>Simple idea:</p><pre>GRUB2 loads the kernel and passes boot options to it.</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wP0PVY4oeeFUlt5P3B5KHg.png" /></figure><h3>3. Kernel: The Core of Linux</h3><p>After GRUB2 loads the selected boot entry, the Linux kernel starts.</p><p>The kernel is the core of the operating system.</p><p>It manages:</p><ul><li>CPU</li><li>Memory</li><li>Processes</li><li>Hardware</li><li>Filesystems</li><li>Networking</li></ul><p>The kernel file is usually stored under /boot and is named something like:</p><pre>vmlinuz-6.x.x</pre><p>You can check your running kernel version with:</p><pre>uname -r</pre><p>During boot, GRUB2 can also pass parameters to the kernel.</p><p>You can see the current kernel boot parameters with:</p><pre>cat /proc/cmdline</pre><p>Common kernel parameters include:</p><pre>root=      tells the kernel where the root filesystem is<br>quiet      hides detailed boot messages<br>splash     shows graphical boot screen<br>ro         mounts root filesystem as read-only at first</pre><p>Simple idea:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ToGrweEPQa_5adRt8bYg6w.png" /></figure><pre>The kernel is the main part of Linux.<br>It controls the system after being loaded by GRUB2.</pre><h3>4. initramfs: The Temporary Boot Environment</h3><p>After the kernel starts, it needs to access the real root filesystem.</p><p>But sometimes the kernel needs extra drivers before it can access the disk.</p><p>For example, the system may use:</p><ul><li>LVM</li><li>RAID</li><li>Disk encryption</li><li>NVMe storage</li><li>Special storage drivers</li></ul><p>This is where initramfs comes in.</p><p>initramfs means Initial RAM Filesystem.</p><p>It is a small temporary filesystem loaded into memory during early boot.</p><p>Its job is to help the kernel access the real root filesystem.</p><p>You can usually find initramfs files under /boot:</p><pre>ls /boot</pre><p>Typical files look like:</p><pre>initrd.img-6.x.x<br>initramfs-6.x.x.img</pre><p>If initramfs is broken or missing important drivers, the system may fail to boot.</p><p>On Ubuntu/Debian, initramfs can be rebuilt with:</p><pre>sudo update-initramfs -u</pre><p>On RHEL-based systems:</p><pre>sudo dracut --force</pre><p>Simple idea:</p><pre>initramfs is a temporary helper system.<br>It helps the kernel find and mount the real root filesystem.</pre><h3>5. Hardware Detection and Kernel Modules</h3><p>After the real root filesystem is available, Linux continues detecting hardware.</p><p>Linux uses kernel modules for many drivers.</p><p>A kernel module is basically a driver that can be loaded into the kernel when needed.</p><p>Loaded modules can be listed with:</p><pre>lsmod</pre><p>You can see details about a module with:</p><pre>modinfo &lt;module_name&gt;</pre><p>To load a module, use:</p><pre>sudo modprobe &lt;module_name&gt;</pre><p>To remove a module:</p><pre>sudo modprobe -r &lt;module_name&gt;</pre><p>Linux also uses udev to create device files under /dev.</p><p>Examples:</p><pre>/dev/sda<br>/dev/nvme0n1<br>/dev/tty</pre><p>Simple idea:</p><pre>Kernel modules are Linux drivers.<br>udev creates device files for detected hardware.</pre><p><strong>Image suggestion:</strong> Add a terminal screenshot showing lsmod | head.</p><h3>6. systemd: Services and Final Boot Mode</h3><p>After the kernel finishes the early boot process, it starts the first user-space process.</p><p>On modern Linux systems, this process is usually systemd.</p><p>systemd has PID 1.</p><p>You can check it with:</p><pre>ps -p 1 -o pid,comm,args</pre><p>systemd starts and manages:</p><ul><li>Services</li><li>Background processes</li><li>Mount points</li><li>Sockets</li><li>Timers</li><li>Boot targets</li></ul><p>A service can be managed with systemctl.</p><p>Check a service:</p><pre>systemctl status ssh</pre><p>Start a service:</p><pre>sudo systemctl start ssh</pre><p>Enable a service at boot:</p><pre>sudo systemctl enable ssh</pre><p>Important difference:</p><pre>start = starts the service now<br>enable = starts the service automatically on future boots</pre><p>If you want both:</p><pre>sudo systemctl enable --now ssh</pre><p>systemd also uses targets to decide the final boot mode.</p><p>Common targets:</p><pre>multi-user.target   CLI/server mode<br>graphical.target    GUI/desktop mode<br>rescue.target       rescue mode</pre><p>Check the default target:</p><pre>systemctl get-default</pre><p>Change the default target:</p><pre>sudo systemctl set-default multi-user.target</pre><p>Simple idea:</p><pre>systemd starts services and brings the system to its final working state.</pre><h3>What About PXE Boot?</h3><p>PXE stands for Preboot Execution Environment.</p><p>PXE allows a computer to boot from the network instead of a local disk.</p><p>It is commonly used in companies and data centers to install Linux on many machines automatically.</p><p>PXE mainly uses:</p><pre>DHCP = gives IP address and boot server information<br>TFTP = downloads boot files from the network</pre><p>TFTP is lightweight and uses:</p><pre>UDP port 69</pre><p>Simple idea:</p><pre>PXE means network boot.<br>The machine downloads boot files from another server.</pre><h3>Final Summary</h3><p>The Linux boot process can be remembered in 6 steps:</p><pre>1. BIOS / UEFI checks hardware and finds the bootloader.<br>2. GRUB2 loads the Linux kernel.<br>3. The kernel starts and receives boot parameters.<br>4. initramfs helps the kernel mount the real root filesystem.<br>5. Kernel modules and udev detect hardware.<br>6. systemd starts services and reaches the final boot target.</pre><p>The most important commands to practice are:</p><pre>uname -r<br>cat /proc/cmdline<br>ls /boot<br>cat /etc/default/grub<br>lsmod<br>modinfo &lt;module_name&gt;<br>ps -p 1 -o pid,comm,args<br>systemctl status &lt;service_name&gt;<br>systemctl get-default<br>journalctl -b</pre><p>For the Linux+ XK0–006 exam, you do not need to memorize every internal detail at the beginning. First, understand the flow:</p><pre>Firmware → Bootloader → Kernel → initramfs → Drivers → systemd → Login</pre><p>Once this flow makes sense, troubleshooting boot problems becomes much easier.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd12284d92b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Middleware]]></title>
            <link>https://medium.com/@ilhanbal577/middleware-3d396334155b?source=rss-7596f02cf962------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d396334155b</guid>
            <category><![CDATA[c]]></category>
            <category><![CDATA[middleware]]></category>
            <category><![CDATA[extension-method]]></category>
            <dc:creator><![CDATA[İlhan Bal]]></dc:creator>
            <pubDate>Sat, 11 Jan 2025 14:29:01 GMT</pubDate>
            <atom:updated>2025-01-11T14:29:01.873Z</atom:updated>
            <content:encoded><![CDATA[<p>Middleware is a component that is assembled into the application pipeline to handle requests and responses.</p><p>Middlewares are chained one-after-other and execute in the same sequence how they’re added.</p><h4>Middleware — Run</h4><p><strong>app.Run( )</strong></p><pre>app.Run(async (HttpContext context) =&gt;<br>{<br>//code<br>});</pre><p>The extension method called “Run” is used to execute a terminating / short-circuiting middleware that doesn’t forward the request to the next middleware.</p><h4>Middleware Chain</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EWRAgf9XGxpXDAYu.png" /></figure><p><strong>app.Use( )</strong></p><pre>app.Use(async (HttpContext context, RequestDelegate next) =&gt;<br>{<br>  //before logic<br>  await next(context);<br>  //after logic<br>});</pre><p>The extension method called “Use” is used to execute a non-terminating / short-circuiting middleware that may / may not forward the request to the next middleware.</p><h4>Middleware Class</h4><p>Middleware class is used to separate the middleware logic from a lambda expression to a separate / reusable class.</p><pre>class MiddlewareClassName : IMiddleware<br>{<br>  public async Task InvokeAsync(HttpContext context, RequestDelegate next)<br>  {<br>    //before logic<br>    await next(context);<br>    //after logic<br>  }<br>}</pre><h4>Middleware Extensions</h4><pre>class MiddlewareClassName : IMiddleware<br>{<br>  public async Task InvokeAsync(HttpContext context,RequestDelegate next)<br>  {<br>    //before logic<br>    await next(context);<br>    //after logic<br>  }<br>});</pre><p>Middleware extension method is used to invoke the middleware with a single method call.</p><h4>Conventional Middleware</h4><pre>class MiddlewareClassName<br>{<br>  private readonly RequestDelegate _next;<br> <br>  public MiddlewareClassName(RequestDelegate next)<br>  {<br>    _next = next;<br>  }<br> <br>  public async Task InvokeAsync(HttpContext context)<br>  {<br>   //before logic<br>   await _next(context);<br>   //after logic<br>  }<br>});<br><br><br>static class ClassName<br>{<br>  public static IApplicationBuilder ExtensionMethodName(this IApplicationBuilder app)<br>  {<br>   return app.UseMiddleware&lt;MiddlewareClassName&gt;();<br>  }<br>}</pre><h4>The Right Order of Middleware</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ui9MoDLlOE9-0LAg.png" /></figure><h4>Middleware — UseWhen</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DfrX-n-8V_NcInMz.png" /></figure><p><strong>app.UseWhen( )</strong></p><pre>app.UseWhen(<br>  context =&gt; { return boolean; },<br>  app =&gt;<br>  {<br>    //add your middlewares<br>  }<br>);</pre><p>The extension method called “UseWhen” is used to execute a branch of middleware only when the specified condition is true.</p><p>Thank You For Reading !</p><p>Follow : <a href="https://medium.com/@ilhanbal577">@ilhanbal577</a></p><p>Written By : İlhan Bal</p><p>Code By : İlhan Bal</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d396334155b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ASP .NET CORE’DA VERİ TAŞIMA KONTROLLERİ NELERDİR ?]]></title>
            <link>https://medium.com/@ilhanbal577/asp-net-coreda-veri%CC%87-ta%C5%9Fima-kontrolleri%CC%87-nelerdi%CC%87r-660892567c81?source=rss-7596f02cf962------2</link>
            <guid isPermaLink="false">https://medium.com/p/660892567c81</guid>
            <category><![CDATA[full-stack]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[mvc]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[aspnetcore]]></category>
            <dc:creator><![CDATA[İlhan Bal]]></dc:creator>
            <pubDate>Mon, 09 Dec 2024 20:29:09 GMT</pubDate>
            <atom:updated>2024-12-09T20:30:26.220Z</atom:updated>
            <content:encoded><![CDATA[<h3>ASP .NET CORE’DA VERİ TAŞIMA KONTROLLERİ NELERDİR ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*igvzQut8zt9-F355F7HklQ.png" /></figure><p>Veri taşıma kontrolleri, bir uygulamada veri akışını düzenlemek için kullanılan yöntemlerdir.</p><h4>ViewBag</h4><p>View’e gönderilecek olan datanın <strong><em>dinamik </em></strong>bir değişkenle taşımamızı sağlayan bir veri taşıma kontrolüdür. Kullanımı gayet basittir.</p><pre>ViewBag.Message = &quot;Merhaba&quot;;</pre><h4>ViewData</h4><p>ViewBag’de olduğu gibi actiondaki datayı view’e taşımamızı sağlayan farklı bir veri taşıma kontrolüdür. Viewbag’den farkı ise , ViewData veriyi boxing ederek gönderir bu da veriyi tekrar kullanabilmek için unboxing yapmamızı koşul kılar. Yani tip dönüşümü yapmak zorundayız.</p><pre>// veriyi gönderme aşaması<br>ViewData[&quot;Message&quot;] = &quot;Merhaba&quot;;<br>// tip dönüşümü <br>string message = ViewData[&quot;Message&quot;] as string;</pre><h4>TempData</h4><p>ViewData’da olduğu gibi actiondaki datayı viewe taşımamızı sağlar ve yine kullabilmek için unboxing edilmesi gerekir. Diğer veri taşıma kontrollerinden farkı ise TempData veriyi farklı actionlara taşıyabilir. Bunu da <strong><em>cookie </em></strong>özelliği ile yapmaktadır.</p><pre>TempData[&quot;Message&quot;] = &quot;İşlem başarılı&quot;</pre><p>Thank You For Reading !</p><p>Follow : <a href="https://medium.com/@ilhanbal577">@ilhanbal577</a></p><p>Written By : İlhan Bal</p><p>Code By : İlhan Bal</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=660892567c81" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[You can find numerous Microsoft technologies in the development domain for curating applications…]]></title>
            <link>https://medium.com/@ilhanbal577/you-can-find-numerous-microsoft-technologies-in-the-development-domain-for-curating-applications-8d22fe9cd6ea?source=rss-7596f02cf962------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d22fe9cd6ea</guid>
            <category><![CDATA[web-programming]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[aspnetcore]]></category>
            <category><![CDATA[model-view-controller]]></category>
            <category><![CDATA[net-core]]></category>
            <dc:creator><![CDATA[İlhan Bal]]></dc:creator>
            <pubDate>Fri, 25 Oct 2024 20:26:28 GMT</pubDate>
            <atom:updated>2024-10-25T20:28:34.447Z</atom:updated>
            <content:encoded><![CDATA[<h3>ASP .NET CORE</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*OIJzsqtx5fTSR4iAYcVmzw.png" /></figure><p>You can find numerous Microsoft technologies in the development domain for curating applications, such as .NET, <a href="https://positiwise.com/blog/what-is-net-core">.NET Core</a>, ASP.NET, and more. ASP.NET Core MVC is also one of the technologies from Microsoft’s stack.</p><p>Every company providing .NET development services prefers ASP .NET Core MVC due to its lightweight and high-performing benefits. But there are many more things that you must know about it.</p><p>So, let’s get started to understand ASP.NET Core MVC by gaining a brief about MVC in ASP.NET Core.</p><h3>What is MVC in ASP.NET Core?</h3><p>Before we dive into the explanation, advantages, core functions, and components of ASP.NET Core MVC, it’s essential to understand what is MVC Core. Once you know about MVC, the aim of understanding the development technology will be super easy.</p><p><strong>Let’s understand MVC or Model-View-Controller.</strong></p><p>MVC is an architecture that is followed to develop applications in a layered structure. For instance, whenever you use ASP.NET Core MVC to curate your business app, the complete software will be divided into three layers: Model, View, and Controllers. All these three components or layers are dependent on each other to process data and provide results to the end-user.</p><p>Further, the working of the MVC model is quite seamless. Whenever the app receives a request, it directly gets transmitted to the controller, which works in coordination with a model to process and retrieve the appropriate results. Following the output generation, the controller coordinates with the View to display data on the screen.</p><p><strong>In addition, the primary functions of all three MVC components are:</strong></p><ul><li>Functions of Models</li><li>Functions of View</li><li>Functions of Controller</li></ul><p><strong>Functions of Model (M):</strong> It handles the logic and provides details about the current application state. You can find both implementation and business logic encapsulated within the Model.</p><p><strong>Functions of View (V):</strong> As the name defines, View is used for showcasing the data on the end-user’s device. In the background, it used the Razor View Engine to present the information.</p><p><strong>Functions of Controller ©: </strong>Controllers handle everything, from coordinating with models to using correct logic and views to display the right content. Therefore, they manage the complete user interaction.</p><h3>An Overview: What is ASP.NET MVC Core?</h3><p>ASP.NET MVC Core is another <a href="https://positiwise.com/services/web-application-development">web application development</a> framework from Microsoft based on the MVC architecture to ease desktop, mobile, and web-based app building. Primarily, it’s a framework, lightweight among all other Microsoft development technologies, and it’s also open-source for better customization.</p><p>In addition, several startups, small, medium, and large-scale organizations, prefer ASP.NET MVC Core to build their business solutions. It helps them avail of top-notch software that uses fewer resources and is maintained within an affordable budget. Moreover, it seamlessly embeds with ASP.NET Core, aiding in streamlining all core operations.</p><p>Furthermore, the top reasons to consider it for development include the following:</p><ul><li>Helps in reliable app testing, leading to eliminating vulnerabilities, errors, bugs, and glitches.</li><li>It provides cross-platform compatibility, aiding to run software on Windows, iOS, and Linux.</li><li>It can be used to build APIs, help connect with third-party systems, and perform <a href="https://positiwise.com/blog/web-api-for-crud-operations-in-net-6">CRUD operations</a>.</li><li>The lightweight architecture helps in saving deployment and maintenance costs.</li><li>It supports TDD-friendly support.</li><li>The ASP.NET MVC Core development resources are easily available, and organizations can effortlessly outsource the developers.</li><li>You can avail of <a href="https://positiwise.com/technologies/dot-net-development">.NET development services</a> from reputed firms, ensuring solutions within business constraints.</li></ul><h3>The Core Components of ASP.NET Core MVC</h3><p>Now, you know that ASP .NET Core MVC is a framework you can use to create applications. However, to gain a deeper knowledge of the technology, you must know about its core features/functionalities.</p><ul><li>Routing</li><li>Model Validation</li><li>Model Binding</li><li>Dependency Injection</li><li>Filters</li><li>Areas</li><li>Testability</li></ul><h3>Routing</h3><p>To make ASP.NET Core MVC efficient, its routing mechanism is purely based on the routing of ASP.NET Core. The primary function of routing is to embed searchable URL functionality for better search engine optimization. In addition, you can also leverage its link generation facility, regardless of the file structure/organization on the server.</p><p>Furthermore, its routing is categorized into Convention-based and attribute-based routing. One helps with global URL definition while accepting a request, and the other helps to associate the controller, actions, and route.</p><h3>Model Validation</h3><p>ASP.NET Core MVC model binding aims to convert user requests into objects, leading the controller to process them effectively. Mainly, it converts the following types of requests:</p><ul><li>Values entered through forms</li><li>Data associated with routing</li><li>HTTP headers</li><li>Parameters associated with query string</li></ul><p>The benefits of this feature are that it saves the controller time to understand the request and process it. Therefore, the controller receives data in the defined parameter form, due to which the user receives accurate output within a minimal time.</p><h3>Dependency Injection</h3><p>The reason to provide <a href="https://positiwise.com/blog/dependency-injection-in-net-core-with-example">dependency injection in the ASP.NET Core</a> MVC is to avail of IoC (inversion of control) among the classes and associated dependencies. In addition, it also leverages the application to follow the Explicit Dependency Principle. Due to this, your app can request needed/additional services and resources.</p><p>Additionally, you can use the dependency injection to view files through inject variables. You need to call the @inject variable before you start writing HTML code, and your solution will start following the required principle.</p><h3>Filters</h3><p>Filters are a crucial component of the ASP.NET Core MVC framework. It aids in providing the following prime functionalities:</p><ul><li>It helps in the encapsulation of cross-cutting concerns, such as exception handling.</li><li>It supports the seamless running of pre-processing and post-processing logic.</li><li>It can be set to run at a specific scenario. Hence, you can define a condition to trigger it during an individual procedure.</li></ul><p>Additionally, you can apply a filter to actions and controllers. For instance, the Authorize filter can be used for generating MVC-based authorization files.</p><h3>Areas</h3><p>In ASP.NET MVC Core, areas refer to a part of an application. Areas help to divide software into different small parts, helping development teams to build, deploy, maintain, and upgrade efficiently.</p><p>Whenever a large application, such as an eCommerce store or an enterprise management system, gets developed, areas come into action. Due to this, developers work independently on every component and test it thoroughly to ensure its functionality as per client requirements. Also, it’s one of the main reasons behind the popularity and high usage of the ASP.NET Core MVC framework.</p><h3>Testability</h3><p>When it comes to testing an ASP.NET MVC Core application, you can be ensuring of removing maximum loopholes, handling exceptions, and eliminating errors. As a result of the features of the area, testers can easily look into every component, test it, and find where it lacks. Thus, the team receives a deep insight into the code that needs to be reconfigured, upgraded, or revamped.</p><p>Further, it also leverages developers with <a href="https://positiwise.com/blog/unit-testing-in-net-core-using-nunit">unit testing</a> by offering dependency injection, interfaces, and other functionalities, such as:</p><ul><li>TestHost</li><li>InMemory Provider</li></ul><h3>Configuration Process of ASP.NET MVC Core</h3><p>Now, you know about MVC as well as ASP.NET Core MVC. So, let’s undergo the process of configuring it on your system to start developing top-notch applications and gain some hands-on experience.</p><p>To start with the ASP.NET Core MVC configuration, install Visual Studio 2022 on your computer. If you are using an earlier Visual Studio version, install <a href="https://www.nuget.org/">NuGet Package Manager</a> and use it for installing the ASP.NET Core MVC package.</p><p><strong>Step 1:</strong> Access the Visual Studio on your desktop and select the “<strong><em>Create a new project</em></strong>” option, available on the right side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*4IjT5qTCtlRqkvw7oaf9Zw.png" /></figure><p><strong>Step 2:</strong> Visual Studio will provide numerous framework options once you start creating a new project. You need to select the <strong><em>ASP.NET Core Web App (Model-View-Controller)</em></strong> option as highlighted. Further, click on the <strong><em>Next</em></strong> button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*wHHJQNQ0Xlfr-UV_8Lm5sQ.png" /></figure><p><strong>Step 3:</strong> <strong><em>Enter the project details</em></strong>, such as name, location, where you want to save it, and the solution name. Again, click on the <strong><em>Next</em></strong> button to move to the next step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*ArmneVpO1sFm1DW9M-WLnw.png" /></figure><p><strong>Step 4:</strong> Now, input some <strong><em>Additional information</em></strong>, such as framework, <a href="https://positiwise.com/blog/asp-net-mvc-google-authentication-guide">authentication</a> type, and Docker OS. Select the <strong><em>.NET framework</em></strong>; the rest are optional and depend on your personal preferences. Lastly, click on the Create button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*lgFvBpKT4wYlgBzlbIf_Fw.png" /></figure><p><strong>Step 5:</strong> After project creation, you will see all the associated files in the right window, named <strong><em>Solutions Explorer</em></strong>. You can select the files and edit them as per your project requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*vGKczZrNSYntFD7gKLuOQw.png" /></figure><p><strong>Step 6:</strong> You need to <strong><em>run the application</em></strong> to test its functionality. As you add your source code, the application will get updated simultaneously.</p><p>Thank You For Reading !</p><p>Follow : <a href="https://medium.com/@ilhanbal577">@ilhanbal577</a></p><p>Written By : İlhan Bal</p><p>Code By : İlhan Bal</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d22fe9cd6ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript DOM (Document Object Model)]]></title>
            <link>https://medium.com/@ilhanbal577/javascript-dom-document-object-model-3285d23af14e?source=rss-7596f02cf962------2</link>
            <guid isPermaLink="false">https://medium.com/p/3285d23af14e</guid>
            <category><![CDATA[dom]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[document-object-model]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[İlhan Bal]]></dc:creator>
            <pubDate>Thu, 18 Jul 2024 07:22:07 GMT</pubDate>
            <atom:updated>2024-07-18T07:22:07.251Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yu25k8X7SUv6fpE92G_DVw.jpeg" /></figure><p>JavaScript DOM (Document Object Model) is a model that makes the structures and content of web pages programmatically accessible and modifiable. The DOM is a tree structure that represents the content of HTML or XML documents, where each element or piece of content is considered a node in this tree.</p><p>With the DOM, you can use JavaScript to change, add, or delete elements on web pages. This is a very powerful method for adding dynamic content to web pages, responding to user interactions, and making in-page updates.</p><h3>DOM Structure</h3><p>The DOM starts with a document object representing the root of the document, and each HTML element is a node (a part of this tree). For example, a simple HTML document is represented as follows:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>  &lt;head&gt;<br>    &lt;title&gt;My Document&lt;/title&gt;<br>  &lt;/head&gt;<br>  &lt;body&gt;<br>    &lt;h1&gt;Hello, World!&lt;/h1&gt;<br>    &lt;p&gt;This is a paragraph.&lt;/p&gt;<br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><p>This document is represented in the DOM like this:</p><pre>document<br>├── html<br>│   ├── head<br>│   │   └── title<br>│   └── body<br>│       ├── h1<br>│       └── p</pre><h3>Working with the DOM</h3><p>There are various methods and properties used to interact with the DOM using JavaScript:</p><h4>1. Element Selection</h4><p>There are several methods for selecting elements in the DOM:</p><ul><li>getElementById(id): Selects the element with a specific id.</li><li>getElementsByClassName(className): Selects all elements with a specific class.</li><li>getElementsByTagName(tagName): Selects all elements with a specific tag name.</li><li>querySelector(selector): Selects the first element that matches a specific CSS selector.</li><li>querySelectorAll(selector): Selects all elements that match a specific CSS selector.</li></ul><p>Example:</p><pre>const header = document.getElementById(&#39;header&#39;);<br>const paragraphs = document.getElementsByClassName(&#39;text&#39;);<br>const divs = document.getElementsByTagName(&#39;div&#39;);<br>const firstParagraph = document.querySelector(&#39;p&#39;);<br>const allParagraphs = document.querySelectorAll(&#39;p&#39;);</pre><h4>2. Modifying Content</h4><p>You can change an element’s content using the innerHTML or textContent properties:</p><pre>const header = document.getElementById(&#39;header&#39;);<br>header.innerHTML = &#39;New Header Content&#39;; // Change HTML content<br>header.textContent = &#39;New Header Content&#39;; // Change text content</pre><h4>3. Adding New Elements</h4><p>To create and add new elements, use the createElement and appendChild methods:</p><pre>const newParagraph = document.createElement(&#39;p&#39;);<br>newParagraph.textContent = &#39;This is a new paragraph.&#39;;<br>document.body.appendChild(newParagraph);</pre><h4>4. Responding to Events</h4><p>To respond to DOM events, use the addEventListener method:</p><pre>const button = document.getElementById(&#39;myButton&#39;);<br>button.addEventListener(&#39;click&#39;, function() {<br>  alert(&#39;Button was clicked!&#39;);<br>});</pre><h3>Summary</h3><p>JavaScript DOM is a powerful tool for making web pages dynamic and interactive. With the DOM, you can select, modify, add, or delete elements and respond to user interactions. This is a fundamental skill for modern web development and forms the basis of many applications and websites.</p><p>Thank You For Reading !</p><p>Follow : <a href="https://medium.com/@ilhanbal577">@ilhanbal577</a></p><p>Written By : İlhan Bal</p><p>Code By : İlhan Bal</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3285d23af14e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Install VMware Tools in Kali Linux? (exact solution)]]></title>
            <link>https://medium.com/@ilhanbal577/how-to-install-vmware-tools-in-kali-linux-exact-solution-811c2e0c21f2?source=rss-7596f02cf962------2</link>
            <guid isPermaLink="false">https://medium.com/p/811c2e0c21f2</guid>
            <category><![CDATA[oracle-virtual-box]]></category>
            <category><![CDATA[vmware]]></category>
            <category><![CDATA[kali-linux]]></category>
            <dc:creator><![CDATA[İlhan Bal]]></dc:creator>
            <pubDate>Sat, 22 Jun 2024 19:55:48 GMT</pubDate>
            <atom:updated>2024-06-22T20:00:22.204Z</atom:updated>
            <content:encoded><![CDATA[<h3>How To Install VMware Tools in Kali Linux?(exact solution)</h3><p>Hello friends, in this article, I will explain how to install VM tools on Kali Linux.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*X_rq4t6MuNpvLApP4Qe_xQ.jpeg" /></figure><p><strong><em>First of all i will explain why should we install VM tools ? Why is it important ?</em></strong></p><h3>Why we should install VM tools ?</h3><p>VMware Tools are utilities that make it easier to use the guest OS on the host machine. With features like clipboard copy, drag and drop, Unity mode, and many more, it simplifies the control of the virtual machine. Additionally, it automatically adjusts the resolution to ensure that the virtual machine does not overflow.</p><h3>Install</h3><p><em>Enter the following commands in the terminal sequentially.</em></p><blockquote><strong>Step 1 : Check the sources list.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*8rbqyMLBXSOV4C03MX0EIg.png" /></figure><p>You need to perform an update based on the output.</p><blockquote><strong>Step 2 : Updating</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/966/1*z2Suw-umwIyAaY_Ua6_qoQ.png" /></figure><p>In the output, the terminal will ask for your password. Please enter your password.</p><blockquote><strong>Step 3</strong> : <strong>Saving</strong></blockquote><p>In the output we have to do these steps one by one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*GeiqSbHVOxhbivqiV4-bhQ.png" /><figcaption>FOR SAVING THE FILE</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*h2s1zt5APWvmKXRqbYpYJg.png" /><figcaption>FOR EXIT</figcaption></figure><blockquote><strong>Step 4 : Updating Kali Linux</strong></blockquote><p>After above steps we have to update again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/902/1*5ehyZtIJFFIgipeQHAKMAw.png" /></figure><blockquote><strong>Step 5 : Installing VM Tools</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*spzqeHyM7kfl7_f6R3_0Zw.png" /></figure><p>In this step terminal will ask you a question. Type Y (for yes).</p><p>That is it for this tutorial, I hope that you find it useful . We hope you understood the project , If you any doubt feel free to comment!!</p><p>Thank You For Reading !</p><p>follow : <a href="https://medium.com/@ilhanbal577">@ilhanbal577</a></p><p>Written By : İlhan Bal</p><p>Video Sources : <a href="https://www.youtube.com/watch?v=P0cnLkn6Qfk&amp;list=WL&amp;index=1&amp;t=1s">https://www.youtube.com/watch?v=P0cnLkn6Qfk&amp;list=WL&amp;index=1&amp;t=1s</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FP0cnLkn6Qfk%3Fstart%3D1%26feature%3Doembed%26start%3D1&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DP0cnLkn6Qfk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FP0cnLkn6Qfk%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/fa7e124a3a83f512954bdd36a0c16e52/href">https://medium.com/media/fa7e124a3a83f512954bdd36a0c16e52/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=811c2e0c21f2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to create a ‘header’ using HTML and CSS ?]]></title>
            <link>https://medium.com/@ilhanbal577/how-to-create-a-responsive-header-using-html-and-css-929b087e38d0?source=rss-7596f02cf962------2</link>
            <guid isPermaLink="false">https://medium.com/p/929b087e38d0</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[İlhan Bal]]></dc:creator>
            <pubDate>Wed, 19 Jun 2024 11:19:55 GMT</pubDate>
            <atom:updated>2024-06-21T08:34:59.564Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to create a ‘header’ using HTML and CSS ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W43MZiZa3GfqLjj1KYt5-A.png" /></figure><p>Hello, in this article I will talk about how to create a responsive header, which is one of the essentials for building a website. You can find all the codes and details in this article.</p><blockquote><strong>Step 1 : Adding Basic HTML.</strong></blockquote><pre>&lt;div class=&quot;hero&quot;&gt;<br>      &lt;nav&gt;<br>        &lt;nav&gt;<br>          &lt;h2 class=&quot;logo&quot;&gt;İlhan &lt;span&gt;Bal&lt;/span&gt;&lt;/h2&gt;<br>        &lt;/nav&gt;<br>    &lt;/nav&gt;<br>    &lt;/div&gt;</pre><p>Firts of all , we write our code to between the <strong>body</strong> tag. In the first step, we create a <strong><em>div</em></strong> tag with a unique class name. Inside this <strong><em>div</em></strong> tag, we open 2 <strong><em>nav</em></strong> tags. Within the second <strong><em>nav</em></strong> tag, we create a subtitle tag which is <strong><em>h2</em></strong> with a unique class name to add a logo. I used the <strong><em>h2 </em></strong>tag here, but you can use<strong><em> h1, h3</em></strong>, etc., if you prefer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*vorpWSJIzxONDIEZN0FmoA.png" /></figure><p>Our output should appear like this.</p><p>In the next step, we need to include our elements in the code block. For this, we will use the unordered list tag, <strong><em>ul</em></strong>.</p><pre>  &lt;div class=&quot;hero&quot;&gt;<br>      &lt;nav&gt;<br>        &lt;nav&gt;<br>          &lt;h2 class=&quot;logo&quot;&gt;İlhan &lt;span&gt;Bal&lt;/span&gt;&lt;/h2&gt;<br>        &lt;/nav&gt;<br>      &lt;ul&gt;<br>        &lt;li class&gt;&lt;a href=&quot;yeni.html&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;<br>        &lt;li class&gt;&lt;a href=&quot;about.html&quot;&gt;About&lt;/a&gt;&lt;/li&gt;<br>        &lt;li class&gt;&lt;a href=&quot;contact.html&quot;&gt;Contact&lt;/a&gt;&lt;/li&gt;<br>        &lt;li class&gt;&lt;a href=&quot;galeri.html&quot;&gt;Gallery&lt;/a&gt;&lt;/li&gt;<br>      &lt;/ul&gt;<br>        &lt;/nav&gt;<br>        &lt;/div&gt;</pre><p>As you can see in the code block above, we created our <strong><em>ul</em></strong> class and added our elements to it. Our elements are home, about, contact, and gallery. To navigate to these pages when clicking on them with the mouse, we create as many HTML copies as we have elements and name them after our element names. We then provide their links as <strong><em>href=”about.html”.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0yp4SuYltoBeXZgPDblaYA.png" /></figure><p>Our output should appear like this.</p><p>To create a button like the one in the top right corner of our page, we create a button with the class name “button”.</p><pre> &lt;div class=&quot;hero&quot;&gt;<br>      &lt;nav&gt;<br>        &lt;nav&gt;<br>          &lt;h2 class=&quot;logo&quot;&gt;İlhan &lt;span&gt;Bal&lt;/span&gt;&lt;/h2&gt;<br>        &lt;/nav&gt;<br>      &lt;ul&gt;<br>        &lt;li class&gt;&lt;a href=&quot;yeni.html&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;<br>        &lt;li class&gt;&lt;a href=&quot;about.html&quot;&gt;About&lt;/a&gt;&lt;/li&gt;<br>        &lt;li class&gt;&lt;a href=&quot;contact.html&quot;&gt;Contact&lt;/a&gt;&lt;/li&gt;<br>        &lt;li class&gt;&lt;a href=&quot;galeri.html&quot;&gt;Gallery&lt;/a&gt;&lt;/li&gt;<br>      &lt;/ul&gt;<br>      &lt;button type=&quot;button&quot; &gt;Subscribe&lt;/button&gt;<br>    &lt;/nav&gt;<br>    &lt;/div&gt;</pre><p>Our HTML code block is completed. Now we can use CSS to enhance the appearance of our page.</p><blockquote><strong>Step 2: CSS</strong></blockquote><p>In the second step we create file that has .css extension. To link our existing HTML file with the CSS file we created, we place the following code block between the <strong><em>head</em></strong> tags of our HTML page.</p><pre>&lt;head&gt;<br><br>    &lt;meta charset=&quot;UTF-8&quot;&gt;<br>    &lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>    &lt;title&gt;İlhan Bal&lt;/title&gt;<br><br>    &lt;link rel=&quot;stylesheet&quot; href=&quot;app.css&quot;&gt; <br> <br>&lt;/head&gt;</pre><p>This way, we will be able to see the updates from our CSS file reflected on our page.</p><pre>*{<br>    margin: 0;<br>    padding:0;<br>    box-sizing: border-box;<br>    font-family: &#39;Poppins&#39; , sans-serif;<br>}<br>.hero{<br>    height: 100vh;<br>    width: 100%;<br>    padding-right: 111px;<br>}<br>nav{<br>    margin-top: 20px;<br>    display: flex;<br>    align-items: center;<br>    justify-content: space-between;<br>    padding-top: 20px;<br>    padding-left: 5%;<br>    padding-right: 10%;<br>}<br>.logo{<br>    color: white;<br>    font-size: 32px;<br>    margin-top: 0px;<br>}<br>span{<br>    color: #4070f4;<br>}<br>nav ul li{<br>    margin-top: 32px;<br>    display:inline-block;<br>    list-style-type: none;<br>    padding: 10px 20px;<br>}<br>nav ul li a{<br>    color: white;<br>    text-decoration: none;<br>    font-weight: bold;<br>    align-items: center;<br>}<br><br>button{<br>    margin-top: 32px;  <br>    border: none;<br>    background: #4070f4;<br>    padding: 2px 30px;<br>    border-radius: 30px;<br>    color: white;<br>    font-weight: bold;<br>    font-size: 15px;<br>    transition: .4s;<br>}</pre><p>When the mouse hovers over the elements home, about, contact, and gallery, we need to apply additional steps to change the text color and cursor, and when hovering over the subscribe button, to make it grow and shrink.</p><pre>nav ul li a:hover{<br>    color: #4070f4;<br>    transition: .3s;<br>}<br><br>button:hover{<br>    transform: scale(1.1);<br>    cursor: pointer;<br>}</pre><p>The project is now finished, we have completed Responsive Header using HTML and CSS. Now look at the live preview.</p><p>That is it for this tutorial, I hope that you find it useful.</p><p>Now We have Successfully <a href="https://www.codewithrandom.com/2022/10/10/header-using-html-css/"><strong>Responsive Header</strong></a> using HTML and CSS<strong>.</strong> You can use this project directly by copying into your IDE. WE hope you understood the project , If you any doubt feel free to comment!!</p><p>Thank You For Reading !</p><p>follow : <a href="https://medium.com/@ilhanbal577">@ilhanbal577</a></p><p>Written By : İlhan Bal</p><p>Code by : İlhan Bal</p><h3>What are the advantages of a header section inside the website?</h3><ol><li>The header can be used to move across different sections of the website.<br>2. Header container different section Links<br>3. Provides Ease of use.<br>4. Saves Time.</li></ol><h3>What is the purpose of header inside the website?</h3><p>The header promotes user interaction and offers a comfortable environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=929b087e38d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>