<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vasanthakumari N</title>
    <description>The latest articles on DEV Community by Vasanthakumari N (@vasanthakumari_n).</description>
    <link>https://dev.to/vasanthakumari_n</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4039955%2F13dedbc6-a844-4867-ad13-b86e0f5c9d10.jpg</url>
      <title>DEV Community: Vasanthakumari N</title>
      <link>https://dev.to/vasanthakumari_n</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vasanthakumari_n"/>
    <language>en</language>
    <item>
      <title>Git Commands – Step-by-Step Guide</title>
      <dc:creator>Vasanthakumari N</dc:creator>
      <pubDate>Thu, 12 Nov 2026 11:57:36 +0000</pubDate>
      <link>https://dev.to/vasanthakumari_n/git-commands-step-by-step-guide-13a5</link>
      <guid>https://dev.to/vasanthakumari_n/git-commands-step-by-step-guide-13a5</guid>
      <description>&lt;p&gt;Git is a version control system used to track changes in files and manage project code. It helps developers save their work and upload code to platforms like GitLab and GitHub.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Check Git Status
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git status
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Purpose: Checks the current status of your project.&lt;/p&gt;

&lt;p&gt;It shows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Modified files&lt;/li&gt;
&lt;li&gt;New untracked files&lt;/li&gt;
&lt;li&gt;Staged files&lt;/li&gt;
&lt;li&gt;Current branch name&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 2: Add Files to Staging Area
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git add.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Purpose: Adds all modified and new files to the staging area.&lt;/p&gt;

&lt;p&gt;The . represents all files and folders in the current project.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Remove a File from the Staging Area
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git restore --staged resume.html
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Purpose: Removes resume.html from the staging area without deleting the actual file or its changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 4: Commit Changes
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git commit -m &lt;span class="s2"&gt;"to learn git"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Purpose: Saves the staged changes in the local Git repository.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;commit – Saves changes.&lt;/li&gt;
&lt;li&gt;-m – Adds a message describing the changes.&lt;/li&gt;
&lt;li&gt;"to learn git" – Commit message.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 5: Configure Git Username and Email
&lt;/h2&gt;

&lt;p&gt;If Git asks you to configure your identity, execute:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git config --global user.name &lt;span class="s2"&gt;"Your Name"&lt;/span&gt;
git config --global user.email &lt;span class="s2"&gt;"your-email@gmail.com"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Purpose: Sets your username and email address globally for Git commits.&lt;/p&gt;

&lt;p&gt;To check the configured details:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git config --global user_email
git config --global user_name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After configuring, commit your changes:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git commit -m &lt;span class="s2"&gt;"to learn git"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 6: View Commit History
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git log
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Purpose: Displays the commit history of the repository.&lt;/p&gt;

&lt;p&gt;It shows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Commit ID (SHA)&lt;/li&gt;
&lt;li&gt;Author name&lt;/li&gt;
&lt;li&gt;Date and time&lt;/li&gt;
&lt;li&gt;Commit message&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 7: Check File Differences
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;git diff
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Purpose: Displays the differences between your modified files and the last committed version.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Lines starting with - indicate removed content.&lt;/li&gt;
&lt;li&gt;Lines starting with + indicate added content.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 8: Push Code to GitLab
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git push
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Purpose: Uploads your committed changes from the local repository to the remote GitLab repository.&lt;br&gt;
If this is the first push to a branch, use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git push -u origin main
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;origin – Remote repository name.&lt;/li&gt;
&lt;li&gt;main – Branch name.&lt;/li&gt;
&lt;li&gt;-u – Sets the upstream branch for future pushes.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Step 9: Fix Access Denied / Authentication Error
&lt;/h2&gt;

&lt;p&gt;Sometimes, when executing git push, you may get errors such as:&lt;br&gt;
if getting error like access denied&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open your GitLab account.&lt;/li&gt;
&lt;li&gt;Click your profile picture.&lt;/li&gt;
&lt;li&gt;Select Edit profile / Preferences.&lt;/li&gt;
&lt;li&gt;Open Access → Personal Access Tokens.&lt;/li&gt;
&lt;li&gt;Click Add new token.&lt;/li&gt;
&lt;li&gt;Enter a token name.&lt;/li&gt;
&lt;li&gt;Select an expiry date.&lt;/li&gt;
&lt;li&gt;Select the required permission:

&lt;ul&gt;
&lt;li&gt;write_repository&lt;/li&gt;
&lt;li&gt;read_repository&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Generate the token.&lt;/li&gt;
&lt;li&gt;Copy and save the token securely.
Important
Never share your personal access token with anyone.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git remote set-url origin https://&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;userName&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;:&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;token&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;@&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;project path&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 11: Push Using Personal Access Token
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git push
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>beginners</category>
      <category>git</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>HTML &amp; CSS</title>
      <dc:creator>Vasanthakumari N</dc:creator>
      <pubDate>Thu, 12 Nov 2026 11:29:58 +0000</pubDate>
      <link>https://dev.to/vasanthakumari_n/html-css-20np</link>
      <guid>https://dev.to/vasanthakumari_n/html-css-20np</guid>
      <description>&lt;h2&gt;
  
  
  Difference between tag and element?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;HTML Tags are the starting and ending parts of an HTML element. They begin with &amp;lt; symbol and end with &amp;gt; symbol. Whatever is written inside &amp;lt; and &amp;gt; are called tags.&lt;/li&gt;
&lt;li&gt;Example:  In this example &lt;b&gt; is the starting tag and &lt;/b&gt; is the ending tag
&lt;code&gt;&amp;lt;b&amp;gt; &amp;lt;/b&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The HTML element consists of both the opening and closing tags as well as what’s inside those tags. It normally consists of some structure that’s used to define the respective tags.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Example: In this example &lt;b&gt; is the starting tag and &lt;/b&gt; is the ending tag but with content inside it.&lt;br&gt;
&lt;code&gt;&amp;lt;b&amp;gt;This is the content.&amp;lt;/b&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Semantic Tags
&lt;/h2&gt;

&lt;p&gt;Html5 semantic tags provide meaningful tags that clearly describe their purpose, improving  readability ,accessibility ans SEO for both humans and browsers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Attributes
&lt;/h2&gt;

&lt;p&gt;The HTML element consists of both the opening and closing tags as well as what’s inside those tags. It normally consists of some structure that’s used to define the respective tags.&lt;/p&gt;

&lt;p&gt;Example: In this example &lt;b&gt; is the starting tag and &lt;/b&gt; is the ending tag but with content inside it.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&amp;lt;b&amp;gt;This is the content.&amp;lt;/b&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Ex: header,nav,section,article,main,footer&lt;/p&gt;

&lt;h2&gt;
  
  
  Difference between px,%,vh/vw?
&lt;/h2&gt;

&lt;p&gt;Pixel&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fixed length&lt;/li&gt;
&lt;li&gt;best for borders and icons.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Percentage(%)&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Relative to parent element&lt;/li&gt;
&lt;li&gt;Good for Responsive layouts&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;vh/vw&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;relative to viewport's height&lt;/li&gt;
&lt;li&gt;Good for Full screen backgrounds&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Self Closing tags
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Self-closing tags are HTML elements that do not require a separate closing tag because they cannot contain child elements.&lt;/li&gt;
&lt;li&gt;They are also called void elements in HTML.&lt;/li&gt;
&lt;li&gt;Ex:&lt;code&gt;&amp;lt;img&amp;gt;,&amp;lt;br&amp;gt;,&amp;lt;input&amp;gt;,&amp;lt;link&amp;gt;,&amp;lt;hr&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://www.geeksforgeeks.org/html/tags-vs-elements-vs-attributes-in-html/" rel="noopener noreferrer"&gt;References&lt;/a&gt;&lt;/p&gt;

</description>
      <category>css</category>
      <category>frontend</category>
      <category>html</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Html &amp; Css</title>
      <dc:creator>Vasanthakumari N</dc:creator>
      <pubDate>Thu, 12 Nov 2026 11:10:38 +0000</pubDate>
      <link>https://dev.to/vasanthakumari_n/html-css-4k7l</link>
      <guid>https://dev.to/vasanthakumari_n/html-css-4k7l</guid>
      <description>&lt;h2&gt;
  
  
  What is Markup Language?
&lt;/h2&gt;

&lt;p&gt;A markup language is one that is designed for defining and presenting text. HTML (HyperText Markup Language), is an example of a markup language.&lt;/p&gt;

&lt;p&gt;Within a text file such as an HTML file, elements are marked up using tags which explain the purpose of that part of the content.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;Pootfolio&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Payilagam&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Types of markup language
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;HTML&lt;/li&gt;
&lt;li&gt;XHTML&lt;/li&gt;
&lt;li&gt;XML&lt;/li&gt;
&lt;li&gt;SVG&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  latest version of html and css
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Latest HTML: HTML Living Standard (WHATWG)&lt;/li&gt;
&lt;li&gt;Latest CSS: CSS Snapshot 2026&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Types of Css
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Inline CSS
CSS is written directly inside an HTML element using the style attribute.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;h1&lt;/span&gt; &lt;span class="na"&gt;style&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"color: red;"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Hello World&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2.Internal CSS&lt;br&gt;
CSS is written inside the &lt;code&gt;&amp;lt;style&amp;gt;&lt;/code&gt; tag in the HTML document's &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt;section.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;style&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;h1&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
            &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;blue&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/style&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Hello World&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;3.External CSS&lt;br&gt;
CSS is written in a separate .css file and linked to the HTML file.&lt;/p&gt;

&lt;p&gt;index.html&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"stylesheet"&lt;/span&gt; &lt;span class="na"&gt;href&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"style.css"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Hello World&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;style.css&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nt"&gt;h1&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;green&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Box Sizing?
&lt;/h2&gt;

&lt;p&gt;The CSS box-sizing property defines how the total width and height of an element are calculated, specifically whether padding and borders are added to or included inside the dimensions.&lt;/p&gt;

&lt;p&gt;There are two commonly used values:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;content-box (Default)&lt;/li&gt;
&lt;li&gt;Width and height apply only to the content.&lt;/li&gt;
&lt;li&gt;Padding and border are added to the total size.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.box&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;200px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;20px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;border&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5px&lt;/span&gt; &lt;span class="n"&gt;solid&lt;/span&gt; &lt;span class="n"&gt;black&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;box-sizing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;content-box&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Total width: 200 + 40 + 10 = 250px.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;border-box&lt;/li&gt;
&lt;li&gt;Width and height include content, padding, and border.&lt;/li&gt;
&lt;li&gt;The total width remains 200px.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.box&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;200px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;height&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;20px&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;border&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5px&lt;/span&gt; &lt;span class="n"&gt;solid&lt;/span&gt; &lt;span class="n"&gt;black&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;box-sizing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;border-box&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Total width: 200px&lt;/p&gt;

&lt;h2&gt;
  
  
  CSS Global Selector (*)
&lt;/h2&gt;

&lt;p&gt;The Global Selector, also called the Universal Selector, is represented by an asterisk (*).&lt;/p&gt;

&lt;p&gt;It selects all HTML elements on a webpage and applies the specified CSS styles.&lt;br&gt;
Syntax&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;margin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;padding&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Glossary/Markup" rel="noopener noreferrer"&gt;References&lt;/a&gt;&lt;/p&gt;

</description>
      <category>css</category>
      <category>frontend</category>
      <category>html</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
