<?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: Surendrababuvunnam</title>
    <description>The latest articles on DEV Community by Surendrababuvunnam (@i_am_surendra_).</description>
    <link>https://dev.to/i_am_surendra_</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F457558%2Fbb451816-2406-4acb-a828-c8be0cbbb195.jpg</url>
      <title>DEV Community: Surendrababuvunnam</title>
      <link>https://dev.to/i_am_surendra_</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/i_am_surendra_"/>
    <language>en</language>
    <item>
      <title>proto and prototype chaining</title>
      <dc:creator>Surendrababuvunnam</dc:creator>
      <pubDate>Sat, 14 Jan 2023 08:13:54 +0000</pubDate>
      <link>https://dev.to/i_am_surendra_/proto-and-prototype-chaining-13je</link>
      <guid>https://dev.to/i_am_surendra_/proto-and-prototype-chaining-13je</guid>
      <description>&lt;p&gt;hey guys today I am writing about prototype chaining or inheritance chaining &lt;/p&gt;

&lt;p&gt;before going into the the topic it should be noted that nearly every-thing is an object or an instance(copy) of an object other than primitive variable (except string which is some kind of object).&lt;/p&gt;

&lt;p&gt;let's us see how the prototype works. &lt;/p&gt;

&lt;p&gt;all the methods(nothing but functions which are associated with only objects) of the properties are available in the prototype of the object . If any thing other than primitive variable is created this will get inherited the objects with predetermined methods which is present in the prototype.&lt;/p&gt;

&lt;p&gt;let us see how check the above statement&lt;/p&gt;

&lt;p&gt;example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let myHeros = ["thor", "spiderman"]
let dcHeros = ["batman", "black adam", "superman"]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fumk7dgrcqkgrped7v78s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fumk7dgrcqkgrped7v78s.png" alt="Image description" width="409" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;as seen from the above example when an array is created it being inherited by the object by the help of the prototype because of this it can be said that mostly everything is object in JavaScript.&lt;/p&gt;

&lt;p&gt;this prototype can be manipulated as per the coders desires, this ability to manipulate the JavaScript's object's prototype which gives the object it's characteristic which is in turn the main and defining characteristic of JavaScript programing language.&lt;/p&gt;

&lt;p&gt;this ability to manipulate object's prototype has given rise to the different frame works of the JavaScript.&lt;/p&gt;

&lt;p&gt;let us see how we can manipulate the prototype of the JavaScript.&lt;/p&gt;

&lt;p&gt;prototype of object can be manipulated by the following example&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;object.prototype.surendra = function() {
    console.log(`hey surendra babu`);
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;as seen in the above example a method of surendra which is prints a console of a string is created in object.prototype . let us see the result  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy2prylbkq2844onimtli.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fy2prylbkq2844onimtli.png" alt="Image description" width="673" height="261"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;as seen in the above image a method of surendra is injected in the prototype. &lt;/p&gt;

&lt;p&gt;one of the other main features of prototypes exchange of properties from one object to other object via the injection in the prototype from source object to recipient object. it can be done by following ways.&lt;/p&gt;

&lt;p&gt;1)(way one) by using proto directly in the recipient object .&lt;/p&gt;

&lt;p&gt;2)(way two) by using the following syntax&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;objectName.__proto__ ===object
 Let us see the using the following example.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;3 (way three (modren way)) by using method shown in the following syntax&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Object.setPrototypeOf(User, TSAssistant)

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;const User = {&lt;br&gt;
    name: "top name",&lt;br&gt;
    email: "&lt;a href="mailto:topuser@gmail.com"&gt;topuser@gmail.com&lt;/a&gt;"&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;const Teacher = {&lt;br&gt;
    makeVideos: true&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;const TeachingSupport = {&lt;br&gt;
    isAvailable: false&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;const TSAssistant = {&lt;br&gt;
    makeAssignment: 'JS assigment',&lt;br&gt;
    fullTime: true,&lt;br&gt;
    // way one&lt;br&gt;
    &lt;strong&gt;proto&lt;/strong&gt;: TeachingSupport&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;//  way two&lt;/p&gt;

&lt;p&gt;Teacher.&lt;strong&gt;proto&lt;/strong&gt; = User&lt;/p&gt;

&lt;p&gt;// way three&lt;/p&gt;

&lt;p&gt;Object.setPrototypeOf(User, TSAssistant)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
result considering only way one portion:


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1eb1n69cvxwy88gxxov1.png)

result considering only way two portion:


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ihtypmydwfjs6by16rnl.png)

result considering only way three portion:


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sser5rwda7mqkxgkaz9a.png)

There is one more important thing if object-A is protoed (__proto__) with object-B and protoed-C then A gets the properties of C also this is known as inheritance or chaining


let us see how the frameworks are created with simple string example.

let us say you want to create string method that trims the spaces in the given string and gives you the trimmed length of string. You want to name the method as truelength lets see the example:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;String.prototype.trueLength = function (){&lt;br&gt;
    console.log(&lt;code&gt;the actual length is ${this.length}&lt;/code&gt;);&lt;br&gt;
    console.log(&lt;code&gt;the true length is ${this.trim().length}&lt;/code&gt; );&lt;br&gt;
}&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
this above code creates a method of truelength for a string only because it is created specifically for string only.

let us see if this method is created.

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;let my_name ="vunnam"&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;result:


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9td69jwrcxvimsifpcn7.png)

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;let my_name ="vunnam        "&lt;/p&gt;



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


result :

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/moul7n7rg5jckx1jbtqv.png)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>watercooler</category>
    </item>
    <item>
      <title>Date and math</title>
      <dc:creator>Surendrababuvunnam</dc:creator>
      <pubDate>Thu, 12 Jan 2023 10:15:04 +0000</pubDate>
      <link>https://dev.to/i_am_surendra_/date-and-math-1829</link>
      <guid>https://dev.to/i_am_surendra_/date-and-math-1829</guid>
      <description>&lt;p&gt;hey friends today we are gonna learn about date math array and array methods&lt;/p&gt;

&lt;h2&gt;
  
  
  Dates
&lt;/h2&gt;

&lt;p&gt;it is a built in JavaScript function to get a date so that it could be used in day to day operations. The most general syntax is shown below&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; console.log(Date()); 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6xbz51ga5u90hlnmbryq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6xbz51ga5u90hlnmbryq.png" alt="Image description" width="524" height="65"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;but it is better to use new Date() because it returns a date object which can be used for various operations.&lt;/p&gt;

&lt;p&gt;there are four ways of creating a date they are :&lt;/p&gt;

&lt;p&gt;new Date(): this is similar to shown in above example&lt;/p&gt;

&lt;p&gt;new Date(milliseconds): this give no of milliseconds from Jan 1, 1970 &lt;/p&gt;

&lt;p&gt;example :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(new Date(10000000000))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;output :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe66ach93szxj86hzjrnu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe66ach93szxj86hzjrnu.png" alt="Image description" width="521" height="58"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;new Date(dateString):  When one string argument is passed, it is a string representation of a date.&lt;/p&gt;

&lt;p&gt;example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(new Date("2015-03-25"));
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu514x2c382h7c98cy875.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu514x2c382h7c98cy875.png" alt="Image description" width="513" height="58"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;new Date(DateObject):&lt;br&gt;
this creates a date object with the specified date and time.&lt;/p&gt;

&lt;p&gt;example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(new Date(2023, 1, 10, 16, 33, 30, 0));
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhjhog5wyed5eys59z4du.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhjhog5wyed5eys59z4du.png" alt="Image description" width="521" height="61"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  date methods getting dates
&lt;/h2&gt;

&lt;h3&gt;
  
  
  getDate()
&lt;/h3&gt;

&lt;p&gt;Returns the day of the month (from 1-31)&lt;/p&gt;

&lt;p&gt;example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const d = new Date();
console.log(d.getDate());
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frik65uha0zq4kt1osku4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frik65uha0zq4kt1osku4.png" alt="Image description" width="518" height="60"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;other examples include getYear() getMonth() etc.&lt;/p&gt;

&lt;h2&gt;
  
  
  math
&lt;/h2&gt;

&lt;p&gt;it is a built-in object whose purpose is to give user mathematical constants and operations by help of built in functions.&lt;/p&gt;

&lt;h2&gt;
  
  
  math properties
&lt;/h2&gt;

&lt;p&gt;all the properties and methods of math are static hence they are called as static properties and static methods.&lt;/p&gt;

&lt;p&gt;based on browser and operating systems these values can sometimes vary a little bit.&lt;/p&gt;

&lt;h3&gt;
  
  
  static properties
&lt;/h3&gt;

&lt;p&gt;these are the properites that give you the values of constants. The examples can be seen below.&lt;/p&gt;

&lt;p&gt;example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const mat = Math.PI;
console.log(mat);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5n3ejkmzxjoq1928cb63.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5n3ejkmzxjoq1928cb63.png" alt="Image description" width="521" height="66"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;as seen in the above example the above code gets you the value of constant pi.&lt;/p&gt;

&lt;h3&gt;
  
  
  static methods
&lt;/h3&gt;

&lt;p&gt;these are the methods that return you the value based on the method applied which is seen in the bellow example &lt;/p&gt;

&lt;p&gt;example :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const random = Math.random() * 10 ;
console.log(random);

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;math.random() method gives you the number randomly between 0-1.&lt;/p&gt;

&lt;p&gt;output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0cxvx9w9xazgvlwiwcow.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0cxvx9w9xazgvlwiwcow.png" alt="Image description" width="520" height="67"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;more properties and methods of math can be seen in mdn docs .&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Date and math</title>
      <dc:creator>Surendrababuvunnam</dc:creator>
      <pubDate>Thu, 12 Jan 2023 10:11:57 +0000</pubDate>
      <link>https://dev.to/i_am_surendra_/date-math-array-and-array-methods-2emn</link>
      <guid>https://dev.to/i_am_surendra_/date-math-array-and-array-methods-2emn</guid>
      <description>&lt;p&gt;hey friends today we are gonna learn about date math array and array methods.&lt;/p&gt;

&lt;h2&gt;
  
  
  Dates
&lt;/h2&gt;

&lt;p&gt;it is a built in JavaScript function to get a date so that it could be used in day to day operations. The most general syntax is shown below&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; console.log(Date()); 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6xbz51ga5u90hlnmbryq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6xbz51ga5u90hlnmbryq.png" alt="Image description" width="524" height="65"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;but it is better to use new Date() because it returns a date object which can be used for various operations.&lt;/p&gt;

&lt;p&gt;there are four ways of creating a date they are :&lt;/p&gt;

&lt;p&gt;new Date(): this is similar to shown in above example&lt;/p&gt;

&lt;p&gt;new Date(milliseconds): this give no of milliseconds from Jan 1, 1970 &lt;/p&gt;

&lt;p&gt;example :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(new Date(10000000000))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;output :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe66ach93szxj86hzjrnu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fe66ach93szxj86hzjrnu.png" alt="Image description" width="521" height="58"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;new Date(dateString):  When one string argument is passed, it is a string representation of a date.&lt;/p&gt;

&lt;p&gt;example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(new Date("2015-03-25"));
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu514x2c382h7c98cy875.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu514x2c382h7c98cy875.png" alt="Image description" width="513" height="58"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;new Date(DateObject):&lt;br&gt;
this creates a date object with the specified date and time.&lt;/p&gt;

&lt;p&gt;example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(new Date(2023, 1, 10, 16, 33, 30, 0));
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhjhog5wyed5eys59z4du.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhjhog5wyed5eys59z4du.png" alt="Image description" width="521" height="61"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  date methods getting dates
&lt;/h2&gt;

&lt;h3&gt;
  
  
  getDate()
&lt;/h3&gt;

&lt;p&gt;Returns the day of the month (from 1-31)&lt;/p&gt;

&lt;p&gt;example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const d = new Date();
console.log(d.getDate());
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frik65uha0zq4kt1osku4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frik65uha0zq4kt1osku4.png" alt="Image description" width="518" height="60"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;other examples include getYear() getMonth() etc.&lt;/p&gt;

&lt;h2&gt;
  
  
  math
&lt;/h2&gt;

&lt;p&gt;it is a built-in object whose purpose is to give user mathematical constants and operations by help of built in functions.&lt;/p&gt;

&lt;h2&gt;
  
  
  math properties
&lt;/h2&gt;

&lt;p&gt;all the properties and methods of math are static hence they are called as static properties and static methods.&lt;/p&gt;

&lt;p&gt;based on browser and operating systems these values can sometimes vary a little bit.&lt;/p&gt;

&lt;h3&gt;
  
  
  static properties
&lt;/h3&gt;

&lt;p&gt;these are the properites that give you the values of constants. The examples can be seen below.&lt;/p&gt;

&lt;p&gt;example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const mat = Math.PI;
console.log(mat);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5n3ejkmzxjoq1928cb63.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5n3ejkmzxjoq1928cb63.png" alt="Image description" width="521" height="66"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;as seen in the above example the above code gets you the value of constant pi.&lt;/p&gt;

&lt;h3&gt;
  
  
  static methods
&lt;/h3&gt;

&lt;p&gt;these are the methods that return you the value based on the method applied which is seen in the bellow example &lt;/p&gt;

&lt;p&gt;example :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const random = Math.random() * 10 ;
console.log(random);

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;math.random() method gives you the number randomly between 0-1.&lt;/p&gt;

&lt;p&gt;output:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0cxvx9w9xazgvlwiwcow.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0cxvx9w9xazgvlwiwcow.png" alt="Image description" width="520" height="67"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;more properties and methods of math can be seen in mdn docs .&lt;/p&gt;

</description>
      <category>web3</category>
      <category>blockchain</category>
      <category>discuss</category>
      <category>security</category>
    </item>
    <item>
      <title>JavaScript: variables, datatypes and operators and loops</title>
      <dc:creator>Surendrababuvunnam</dc:creator>
      <pubDate>Sat, 07 Jan 2023 01:43:37 +0000</pubDate>
      <link>https://dev.to/i_am_surendra_/javascript-variables-datatypes-and-operators-2f6h</link>
      <guid>https://dev.to/i_am_surendra_/javascript-variables-datatypes-and-operators-2f6h</guid>
      <description>&lt;p&gt;Hey guys today I am going to talk about my first learnings about JavaScript.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;values and variable&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;value&lt;/em&gt;&lt;/strong&gt;: a value in JavaScript is nothing but a piece of data there are two types of values 1) The Primitive values 2) Non-primitive values&lt;/p&gt;

&lt;p&gt;1) &lt;strong&gt;&lt;em&gt;The primitive values or primitive datatype&lt;/em&gt;&lt;/strong&gt;: this is where a single variable can store a single type of value . The different types of variables are :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;numbers(both integers and decimal numbers)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;strings which are collections of alphanumeric and symbols.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Booleans (true or false)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;undefined data type means that the variable has been created, but has never been given a value.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Null is similar to undefined, except it has to be set by coder intentionally &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;em&gt;_ Non-primitive values or non-primitive data types_&lt;/em&gt;: these are the data types which are made up of primitive data types (or primitive values). There are two types of non-primitives they are arrays and objects. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;variables&lt;/strong&gt;: the are nothing but the place holder for the values. there are three types of variables 1)var 2)let 3)const.&lt;br&gt;
the most used types of variables are let and const.&lt;/p&gt;

&lt;p&gt;It is to be noted that const should be given a value immediately after using it for a variable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;template literals&lt;/strong&gt; : Template literals (template strings) allow you to use strings or embedded expressions in the form of a string.&lt;/p&gt;

&lt;p&gt;eg:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;console.log(&lt;/code&gt;My Current First Name is ${firstname} ${lastname} ${mobileno}&lt;code&gt;);&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;operators&lt;/strong&gt;: the are special symbols to perform mathematical operations on the variables with data containing in them.&lt;/p&gt;

&lt;p&gt;the major types of operators are shown in below :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Arithmetic Operators:&lt;br&gt;
As the name suggests, these operators perform arithmetic operations like addition(+), subtraction(-), multiplication(*), division(/), remainder(%), increment(++) and decrement(--).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Assignment Operators:&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Assignment operators(=) are binary operators that are used to assign values to variables.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Comparison Operators
The comparison operators in JavaScript are binary operators. This means that it compares the two given operands and returns a Boolean value as the result. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;the comparison operators available in JavaScript are: 1)equal(==) 2) not equal(!=) 3) strict equal(===) 4)Strict not equal(!==) 5)Greater than(&amp;gt;) 6) Greater than or equal to(&amp;gt;=) 7) less than (&amp;lt;) 8) less than or equal to (&amp;lt;=)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;conditionals&lt;/strong&gt;: conditional statements are those statements that determine the flow of the program based on the pre-determined requirements that are required to be performed by the program. the different types of conditionals are :&lt;/p&gt;

&lt;p&gt;1) if : this condition is used to check if the specified is true.&lt;/p&gt;

&lt;p&gt;2) elseif: this condition is used to check if the next specified condition is true if the previous condition is false.&lt;/p&gt;

&lt;p&gt;3) else: this is a condition where a all the above condition is false. &lt;/p&gt;

&lt;p&gt;eg: &lt;br&gt;
&lt;code&gt;if (false) {&lt;br&gt;
      let outcome = "if block";&lt;br&gt;
} else if (true) {&lt;br&gt;
      let outcome = "else if block";&lt;br&gt;
} else {&lt;br&gt;
      let outcome = "else block";&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;switch case&lt;/strong&gt;: let us see the switch case with an example&lt;/p&gt;

&lt;p&gt;`let expression = "expression-1"; &lt;/p&gt;

&lt;p&gt;switch (expression) {&lt;br&gt;
    case "expression-1":&lt;br&gt;
        console.log("expression-1");&lt;br&gt;
        break;&lt;br&gt;
    case "expression-2":&lt;br&gt;
        console.log("expression-2");&lt;br&gt;
        break;&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;default:
    console.log("no expression-3")
    break;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;}` &lt;/p&gt;

&lt;p&gt;as seen in the above example switch like if compares the expression with all the pre-determined cases and executes the block of code as per the required case.&lt;/p&gt;

&lt;p&gt;note: when dealing with the conditionals especially with switch cases there are things such as breaking i.e. to break the program after meeting the conditions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;loops&lt;/strong&gt;: it is a piece of code which performs a task sequentially until a certain condition is reached.&lt;/p&gt;

&lt;p&gt;the most widely used loops in JavaScript are 1)for 2)while 3)do-while &lt;/p&gt;

&lt;p&gt;while loop is used when you don't know how many times does a loop need to run while for the for-loop it is opposite in case.&lt;/p&gt;

&lt;p&gt;do-while is used when you want to run when the program needs to run at least once even if the condition is false&lt;/p&gt;

&lt;p&gt;syntax of for loop &lt;br&gt;
&lt;code&gt;for ([initialExpression]; [conditionExpression]; [incrementExpression]){&lt;br&gt;
  statement}&lt;/code&gt; &lt;/p&gt;

&lt;p&gt;syntax of do-while loop:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;do {&lt;br&gt;
    statement&lt;br&gt;
} while (condition);&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;syntax of while loop:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;while (condition){&lt;br&gt;
  statement}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;there are other loops like for-of and for-each but these are built for arrays and objects.&lt;/p&gt;

&lt;p&gt;the end and happy learning&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>help</category>
      <category>aws</category>
      <category>cloudcomputing</category>
    </item>
    <item>
      <title>CSS grid</title>
      <dc:creator>Surendrababuvunnam</dc:creator>
      <pubDate>Wed, 04 Jan 2023 07:36:45 +0000</pubDate>
      <link>https://dev.to/i_am_surendra_/css-grid-3p3i</link>
      <guid>https://dev.to/i_am_surendra_/css-grid-3p3i</guid>
      <description>&lt;p&gt;hello friend today we are going to learn about CSS grid.&lt;/p&gt;

&lt;p&gt;CSS grid is a methodology of laying out the elements of a web page in two dimensional manner.&lt;/p&gt;

&lt;p&gt;in order to get started with the grid we have to set display of the parent element of the item to which we want to apply the properties of the grid into grid.&lt;/p&gt;

&lt;p&gt;there are two main categories of grid properties which can be applied to grid they are parent-properties and child-properties.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The parent-properties&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;grid-template&lt;/em&gt;&lt;/strong&gt;: grid template defines the rows and columns of the grid . &lt;/p&gt;

&lt;p&gt;example: grid-template-columns: 1fr 1fr 1fr;&lt;br&gt;
         grid-template-rows: 1fr 1fr 1fr;&lt;br&gt;
             or&lt;br&gt;
grid-template: 1fr 1fr 1fr(grid-template-columns)/1fr 1fr &lt;br&gt;
                      1fr(vice-versa)&lt;/p&gt;

&lt;p&gt;as seen in the above example it creates a grid of 3 rows and 3 columns.&lt;/p&gt;

&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr3nm4b6qfkbm6pj5b693.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fr3nm4b6qfkbm6pj5b693.png" alt="Image description" width="800" height="241"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;align-content&lt;/em&gt;&lt;/strong&gt;: justifies all the contents of the grid to column axis if the total grid size is smaller than container.&lt;/p&gt;

&lt;p&gt;code:&lt;br&gt;
        .container{&lt;br&gt;
            display: grid;&lt;br&gt;
            border: 2px solid red;&lt;br&gt;
            height: 600px;&lt;br&gt;
            grid-template: 150px 150px 150px/ 150px  150px  150px ;&lt;br&gt;&lt;br&gt;
            align-content: center; &lt;br&gt;
        }&lt;br&gt;
        .box{&lt;br&gt;
            height: 100px;&lt;br&gt;
            width: 100px;&lt;br&gt;
            margin: 10px;&lt;br&gt;
            border: 2px solid black;&lt;br&gt;
        }&lt;/p&gt;

&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F09f6bv53ae0iki10ajgn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F09f6bv53ae0iki10ajgn.png" alt="Image description" width="800" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;the other values of the align-content are start, end, space-between, space-evenly and space-around&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;justify-content&lt;/em&gt;&lt;/strong&gt;:justifies all the contents of the grid to row axis if the total grid size is smaller than container.&lt;/p&gt;

&lt;p&gt;code: &lt;br&gt;
        .container{&lt;br&gt;
            display: grid;&lt;br&gt;
            border: 2px solid red;&lt;br&gt;
            height: 600px;&lt;br&gt;
            grid-template: 150px 150px 150px/ 150px 150px 150px ;&lt;br&gt;
            justify-content: end;&lt;br&gt;
        }&lt;br&gt;
        .box{&lt;br&gt;
            height: 100px;&lt;br&gt;
            width: 100px;&lt;br&gt;
            margin: 10px;&lt;br&gt;
            border: 2px solid black;&lt;br&gt;
        }&lt;/p&gt;

&lt;p&gt;result: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flswl4si9u6lj5i1tulha.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flswl4si9u6lj5i1tulha.png" alt="Image description" width="800" height="363"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;other values of justify-content includes start, center, space-evenly, space-around, space-between.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;align-items&lt;/em&gt;&lt;/strong&gt;: defines alignment of grid items along the column axis.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;justify-items&lt;/em&gt;&lt;/strong&gt;: defines alignment of grid items along the row axis.&lt;/p&gt;

&lt;p&gt;code:&lt;br&gt;
        .container{&lt;br&gt;
            display: grid;&lt;br&gt;
            height: 600px;&lt;br&gt;
            grid-template: 150px 150px 150px/ 150px 150px 150px ;&lt;br&gt;&lt;br&gt;
            align-items: center;&lt;br&gt;
            justify-items: center;&lt;br&gt;
            gap: 10px; &lt;br&gt;
        }&lt;/p&gt;

&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc2ceix0p0fksy3dnjo9n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fc2ceix0p0fksy3dnjo9n.png" alt="Image description" width="511" height="503"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;other values include end, start and stretch align-items includes an additional property of baseline&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;the child-properties&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;align-self&lt;/em&gt;&lt;/strong&gt;: aligns the item of a single-cell along column axis &lt;br&gt;
&lt;strong&gt;&lt;em&gt;justify-self&lt;/em&gt;&lt;/strong&gt;: aligns the item of a single cell along row axis&lt;/p&gt;

&lt;p&gt;code:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    .container{
        display: grid;
        height: 600px;
        grid-template: 150px 150px 150px/ 150px 150px 150px ;  
        gap: 10px; 
    }
    .box{
        height: 100px;
        width: 100px;
        margin: 10px;
        border: 2px solid black;
    }

    #box-2{
      align-self: end;
      justify-self: center;
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;result: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl4lmyxml02jovlc9h6jr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fl4lmyxml02jovlc9h6jr.png" alt="Image description" width="525" height="512"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;the other value include start also.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;grid-column&lt;/em&gt;&lt;/strong&gt;: determines the item's location based on a start and an end column lines (or a span).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;grid-row&lt;/em&gt;&lt;/strong&gt;:same but for rows.&lt;/p&gt;

&lt;p&gt;code:&lt;br&gt;
        #box-2{&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;      grid-column-start: 2;
      grid-column-end: 4;
      /* or */
      /* grid-column: 2/4; */
      grid-row-start: 1;
      grid-row-end: 3;
      /* or */
      /* grid-row: 1/3 ; */
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0b2xdbbhztbcgrj6nwrr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0b2xdbbhztbcgrj6nwrr.png" alt="Image description" width="511" height="638"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>css</category>
      <category>webdev</category>
    </item>
    <item>
      <title>CSS media queries</title>
      <dc:creator>Surendrababuvunnam</dc:creator>
      <pubDate>Mon, 02 Jan 2023 07:40:20 +0000</pubDate>
      <link>https://dev.to/i_am_surendra_/css-media-queries-2lh1</link>
      <guid>https://dev.to/i_am_surendra_/css-media-queries-2lh1</guid>
      <description>&lt;p&gt;hi friends today I am going to write about CSS media queries. &lt;/p&gt;

&lt;p&gt;CSS media queries are a way of to target browser and change certain styling or run other code when certain required conditions are met.&lt;/p&gt;

&lt;p&gt;media queries are mainly used to create websites which are responsive i.e. that change with respect to the screen.&lt;/p&gt;

&lt;p&gt;the typical syntax of media queries are:&lt;/p&gt;

&lt;p&gt;`&lt;a class="mentioned-user" href="https://dev.to/media"&gt;@media&lt;/a&gt; mediatype operator(mostly and) media-feature operator media-feature {&lt;br&gt;
 .element {&lt;br&gt;
    /* Apply some styles */&lt;/p&gt;

&lt;p&gt;}&lt;br&gt;
} &lt;br&gt;
`&lt;/p&gt;

&lt;p&gt;let us break down the syntax &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a class="mentioned-user" href="https://dev.to/media"&gt;@media&lt;/a&gt;&lt;/strong&gt; must be compulsorily used to write media queries it is a rule to include a block of CSS properties only if a certain condition is true. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;media-type&lt;/strong&gt;: the name chosen for the media type decides which type of device the queries are targeted the main type of media-types are in modern times the situations to write media types are rare :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;all: suitable all devices &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;print: Matches documents that are viewed in a print preview or any media that breaks the content up into pages intended to print.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;screen:  Intended primarily for color computer screens.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;speech: Matches devices that read the content audibly, such as a screen reader. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;media-feature&lt;/strong&gt;: describes the features of the devices such as size of screen, type of screen etc. but the mostly used features are max-width, min- width and may be sometimes orientation(landscape or portrait).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;operator&lt;/strong&gt;: Media queries support logical operators like many programming languages so that we can match media types based on certain conditions. most widely used operator is &lt;code&gt;and&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;let us see media queries in action via the following example.&lt;/p&gt;

&lt;p&gt;code:&lt;br&gt;
&lt;code&gt;.item{&lt;br&gt;
            height: 100px;&lt;br&gt;
            width: 100px;&lt;br&gt;
            border: 2px solid black;&lt;br&gt;
            margin: 10px ;&lt;br&gt;
        }&lt;br&gt;
        @media screen and (max-width: 600px) and (min-width: 500px) {&lt;br&gt;
            body{&lt;br&gt;
                background-color: aqua;&lt;br&gt;
            }&lt;br&gt;
            .container{&lt;br&gt;
                display: flex;&lt;br&gt;
                flex-wrap: wrap;&lt;br&gt;
            }&lt;br&gt;
        }&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;result(between 500px and 600px):&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F882bckvmuqhpghs53kjh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F882bckvmuqhpghs53kjh.png" alt="Image description" width="800" height="390"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;as seen in the above image all the media query properties will be applied at the range of screen sizes of 500px and 600px&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>learning</category>
    </item>
    <item>
      <title>CSS FLEXBOX</title>
      <dc:creator>Surendrababuvunnam</dc:creator>
      <pubDate>Sat, 31 Dec 2022 16:46:08 +0000</pubDate>
      <link>https://dev.to/i_am_surendra_/css-flexbox-2300</link>
      <guid>https://dev.to/i_am_surendra_/css-flexbox-2300</guid>
      <description>&lt;p&gt;hi friends today we are going to learn about flexbox .&lt;/p&gt;

&lt;p&gt;Flexbox is a way or methodology of arranging the elements of the web page. &lt;/p&gt;

&lt;p&gt;when dealing with the flexbox there are two things that should be kept in mind the two axes of the flexbox and whether the property is being applied to the flex-container or flex-item&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;two axes of the flexbox&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;While working with Flexbox, we deal with 2 axes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Main Axis: By default, the main axis runs from left to right.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Cross Axis: By default, Cross Axis runs perpendicular to the Main Axis i.e. from top to bottom.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;main Axis can be changed by the property of flex-direction and it is to be noted that all the flexbox properties can be applied only to the parent element of whose elements to be arranged is given a display property of flex&lt;/p&gt;

&lt;p&gt;left to right:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;flex-direction: row;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;right to left:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;flex-direction: row-reverse;&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
top to bottom:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;flex-direction: column;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;bottom to top:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;flex-direction: column-reverse;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;flex container&lt;/strong&gt;: Flex containers are responsible for aligning and distributing the space available to their child elements&lt;/p&gt;

&lt;p&gt;Flex containers have a number of properties that can be used to control the alignment and distribution of flex items, such as &lt;code&gt;justify-content&lt;/code&gt;, &lt;code&gt;align-items&lt;/code&gt;, and &lt;code&gt;align-content&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;flex items&lt;/strong&gt;: Flex items are aligned and distributed within the flex container along the main axis.&lt;/p&gt;

&lt;p&gt;Flex items have a number of properties that can be used to control their size, alignment, and order within the flex container, such as &lt;code&gt;flex-grow&lt;/code&gt;, &lt;code&gt;flex-shrink&lt;/code&gt;, &lt;code&gt;flex-basis&lt;/code&gt;, &lt;code&gt;align-self&lt;/code&gt;, and &lt;code&gt;order&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;flex container properties&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. justify-content&lt;/strong&gt;: the justify-content property is used to align flex items along the main axis of a flex container.&lt;/p&gt;

&lt;p&gt;The justify-content property takes one of several values that specify the alignment of flex items within the flex container:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;flex-start&lt;/strong&gt;: Flex items are aligned to the start of the main axis. It is the default  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;flex-end&lt;/strong&gt;: Flex items are aligned to the end of the main axis.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;code:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;.container {&lt;br&gt;
  display: flex;&lt;br&gt;
  justify-content: flex-end;&lt;br&gt;
  border :2px solid red;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw3h5yz96n8bf57oei6j8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw3h5yz96n8bf57oei6j8.png" alt="Image description" width="800" height="86"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;center&lt;/strong&gt;: Flex items are centered along the main axis.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;code:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;.container {&lt;br&gt;
  display: flex;&lt;br&gt;
  justify-content: center;&lt;br&gt;
  border :2px solid red;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw04n2okzt91w15200lhc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw04n2okzt91w15200lhc.png" alt="Image description" width="800" height="82"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;space-between&lt;/strong&gt;: Flex items are evenly distributed along the main axis, with the first flex item aligned to the start of the main axis and the last flex item aligned to the end.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;code:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;.container {&lt;br&gt;
  display: flex;&lt;br&gt;
  justify-content: space-between;&lt;br&gt;
  border :2px solid red;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgqpxy6wzxdw71uh2kpwd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgqpxy6wzxdw71uh2kpwd.png" alt="Image description" width="800" height="212"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;space-around&lt;/strong&gt;: Flex items are evenly distributed along the main axis, with equal space around each flex item.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;code:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;.container {&lt;br&gt;
  display: flex;&lt;br&gt;
  justify-content: space-around;&lt;br&gt;
  border :2px solid red;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqj9wk9gb622uofc3vhae.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqj9wk9gb622uofc3vhae.png" alt="Image description" width="800" height="93"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;space-evenly&lt;/strong&gt;:items are distributed so that the spacing between any two adjacent alignment subjects, before the first alignment subject, and after the last alignment subject is the same.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;code:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;.container {&lt;br&gt;
  display: flex;&lt;br&gt;
  justify-content: space-evenly;&lt;br&gt;
  border :2px solid red;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnxifm8nf8fni8ahablkl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnxifm8nf8fni8ahablkl.png" alt="Image description" width="800" height="93"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;align-items&lt;/strong&gt;: the align-items property is used to align flex items along the cross axis of a flex container.&lt;/p&gt;

&lt;p&gt;The align-items property takes one of several values that specify the alignment of flex items within the flex container:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;flex-start: Flex items are aligned to the start of the cross axis. This is default value&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;flex-end: Flex items are aligned to the end of the cross axis.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;code:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;.container {&lt;br&gt;
  display: flex;&lt;br&gt;
  justify-content: space-evenly;&lt;br&gt;
  align-items: flex-end;&lt;br&gt;
  border :2px solid red;&lt;br&gt;
  height:500px;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faziyxpmv7i8rdy91pr7d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faziyxpmv7i8rdy91pr7d.png" alt="Image description" width="800" height="304"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;center: Flex items are centered along the cross axis.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;code:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;.container {&lt;br&gt;
  display: flex;&lt;br&gt;
  justify-content: space-evenly;&lt;br&gt;
  align-items: center;&lt;br&gt;
  border :2px solid red;&lt;br&gt;
  height:500px;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvfq88kdevpwqtfofrey2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvfq88kdevpwqtfofrey2.png" alt="Image description" width="800" height="309"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;baseline&lt;/strong&gt;: Flex items are aligned along their baselines.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;code:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;.container {&lt;br&gt;
  display: flex;&lt;br&gt;
  justify-content: space-evenly;&lt;br&gt;
  align-items: baseline;&lt;br&gt;
  border :2px solid red;&lt;br&gt;
  height:500px;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx6dvbvx90nkkm6wgea32.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx6dvbvx90nkkm6wgea32.png" alt="Image description" width="800" height="310"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;align-content&lt;/strong&gt;: the align-content property is used to align flex lines within a flex container when the flex items are wrapped onto multiple lines. The align-content property only applies when the flex-wrap property is set to wrap or wrap-reverse, and determines the alignment of the flex lines along the cross axis of the flex container.&lt;/p&gt;

&lt;p&gt;The align-content property takes one of several values that specify the alignment of flex lines within the flex container:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;flex-start&lt;/strong&gt;: Flex lines are aligned to the start of the cross axis.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;code: &lt;br&gt;
&lt;code&gt;.container{&lt;br&gt;
            display: flex;&lt;br&gt;
            flex-wrap: wrap;&lt;br&gt;
            align-content: flex-start;&lt;br&gt;
            border :2px solid red;&lt;br&gt;
            height: 500px;&lt;br&gt;
        }&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;result: &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0llbdty7d0qt83d3c5f1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0llbdty7d0qt83d3c5f1.png" alt="Image description" width="800" height="304"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;flex-end&lt;/strong&gt;: Flex lines are aligned to the end of the cross axis.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;code: &lt;br&gt;
&lt;code&gt;.container{&lt;br&gt;
            display: flex;&lt;br&gt;
            flex-wrap: wrap;&lt;br&gt;
            align-content: flex-end;&lt;br&gt;
            border :2px solid red;&lt;br&gt;
            height: 500px;&lt;br&gt;
        }&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;result:&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmy384r6613m314yusu47.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmy384r6613m314yusu47.png" alt="Image description" width="800" height="307"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;center&lt;/strong&gt;: Flex lines are centered along the cross axis.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;code: &lt;br&gt;
&lt;code&gt;.container{&lt;br&gt;
            display: flex;&lt;br&gt;
            flex-wrap: wrap;&lt;br&gt;
            align-content: flex-end;&lt;br&gt;
            border :2px solid red;&lt;br&gt;
            height: 500px;&lt;br&gt;
        }&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzovcik2gg6xmp0cmnkmf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzovcik2gg6xmp0cmnkmf.png" alt="Image description" width="800" height="304"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;space-between&lt;/strong&gt;: Flex lines are evenly distributed along the cross axis, with the first flex line aligned to the start of the cross axis and the last flex line aligned to the end.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;code: &lt;br&gt;
&lt;code&gt;.container{&lt;br&gt;
            display: flex;&lt;br&gt;
            flex-wrap: wrap;&lt;br&gt;
            align-content: center;&lt;br&gt;
            border :2px solid red;&lt;br&gt;
            height: 500px;&lt;br&gt;
        }&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpk0wu2qcl8053190g9id.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpk0wu2qcl8053190g9id.png" alt="Image description" width="800" height="308"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;space-around&lt;/strong&gt;: Flex lines are evenly distributed along the cross axis, with equal space around each flex line.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;.container{&lt;br&gt;
            display: flex;&lt;br&gt;
            flex-wrap: wrap;&lt;br&gt;
            align-content: space-around;&lt;br&gt;
            border :2px solid red;&lt;br&gt;
            height: 500px;&lt;br&gt;
        }&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F36k9yjnln0zpb8gyabem.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F36k9yjnln0zpb8gyabem.png" alt="Image description" width="800" height="308"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;flex item properties&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;the majorly used properties of flex items are : 1)align-self &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;align-self&lt;/strong&gt;: the align-self property is a flex item property that overrides the align-items property for a specific flex item, allowing it to be aligned differently within a flex container. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The align-self property takes one of several values that specify the alignment of the flex item within the flex container:&lt;/p&gt;

&lt;p&gt;-flex-start: The flex item is aligned to the start of the cross axis. This is default from start&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;flex-end: The flex item is aligned to the end of the cross axis.
center: The flex item is centered along the cross axis.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;code:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    #box-4 {
        align-self: flex-end;
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxk1dzbjyq1txadrjd2uo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxk1dzbjyq1txadrjd2uo.png" alt="Image description" width="800" height="306"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;center: The flex item is centered along the cross axis.&lt;/p&gt;

&lt;p&gt;code:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;    #box-4 {
        align-self: center;
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcwqcuwmn6cpv3lvu4bjv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcwqcuwmn6cpv3lvu4bjv.png" alt="Image description" width="800" height="303"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>developers</category>
    </item>
    <item>
      <title>CSS positioning</title>
      <dc:creator>Surendrababuvunnam</dc:creator>
      <pubDate>Fri, 30 Dec 2022 08:11:39 +0000</pubDate>
      <link>https://dev.to/i_am_surendra_/css-positioning-4m2i</link>
      <guid>https://dev.to/i_am_surendra_/css-positioning-4m2i</guid>
      <description>&lt;p&gt;hello friends today we are going to learn about CSS positioning.&lt;/p&gt;

&lt;p&gt;CSS positioning is used to position the elements of a web page as per the decision of the creator of the web page. The elements are positioned via the property of position. There are five different values of position they are:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Static&lt;/strong&gt;: All elements of the web page are static by default. They are rendered in the browser as per the normal flow of the page any properties such as top, bottom, right, left if applied will not have any effect with elements with position sticky.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Fixed&lt;/strong&gt;: All elements with the position with the value of fixed is positioned with relative to the viewport(screen). This means the that element stays in the same place even when the screen is scrolled. Let us see the position with fixed value:&lt;/p&gt;

&lt;p&gt;code:&lt;br&gt;
`.box{&lt;br&gt;
      height: 100px;&lt;br&gt;
      width: 100px;&lt;br&gt;
      border: 2px solid black;&lt;br&gt;
      margin: 10px;&lt;br&gt;
        }&lt;/p&gt;

&lt;p&gt;#box-3{&lt;br&gt;
        background-color: red;&lt;br&gt;
        position: fixed;&lt;br&gt;
        bottom: 20px;&lt;br&gt;
        right: 20px;&lt;br&gt;
        }&lt;br&gt;
`&lt;/p&gt;

&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft0xgxichhlp38gdz6zde.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ft0xgxichhlp38gdz6zde.png" alt="Image description" width="800" height="336"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;as seen in the result box-3 is at the bottom of the page irrespective of the amount of scrolling done by the user.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Relative&lt;/strong&gt;: All elements with the position with the value of relative is positioned based on the relative to its normal position.&lt;/p&gt;

&lt;p&gt;Setting the top, right, bottom, and left properties of a relatively-positioned element will cause it to be adjusted away from its normal position. Other content will not be adjusted to fit into any gap left by the element.&lt;/p&gt;

&lt;p&gt;Let us see the position with relative value:&lt;/p&gt;

&lt;p&gt;code:&lt;/p&gt;

&lt;p&gt;`.box{&lt;br&gt;
    height: 100px;&lt;br&gt;
    width: 100px;&lt;br&gt;
    border: 2px solid black;&lt;br&gt;
    margin: 10px;&lt;br&gt;
        }&lt;/p&gt;

&lt;p&gt;#box-3{&lt;br&gt;
            background-color: red;&lt;br&gt;
            position: sticky;&lt;br&gt;
            top: 20px;&lt;br&gt;
            left:120px&lt;br&gt;
        }&lt;br&gt;
`&lt;br&gt;
result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2yghi0tu15v49c6na0jv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2yghi0tu15v49c6na0jv.png" alt="Image description" width="800" height="274"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Absolute&lt;/strong&gt;: All elements with the position with the value of absolute is positioned based relative to it's parent.&lt;/p&gt;

&lt;p&gt;Absolute positioned elements are removed from the normal flow, and can overlap elements.&lt;/p&gt;

&lt;p&gt;let us see from the example:&lt;br&gt;
code:&lt;br&gt;
`&lt;br&gt;
.box{&lt;br&gt;
            height: 100px;&lt;br&gt;
            width: 100px;&lt;br&gt;
            border: 2px solid black;&lt;br&gt;
            margin: 10px;&lt;br&gt;
        }&lt;/p&gt;

&lt;h1&gt;
  
  
  box-3{
&lt;/h1&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   background-color: red;
   position: absolute;
   top: 20px;
   left:120px;
 }`
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhoszdlvstumhkjavlxzg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhoszdlvstumhkjavlxzg.png" alt="Image description" width="800" height="202"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;. sticky&lt;/strong&gt; : All elements with the position with the value of sticky is positioned based on the user's scroll position. &lt;/p&gt;

&lt;p&gt;A sticky element toggles between relative and fixed, depending on the scroll position. It is positioned relative until a given offset position is met in the viewport - then it "sticks" in place (like position: fixed).&lt;/p&gt;

&lt;p&gt;You must also specify at least one of top, right, bottom or left for sticky positioning to work.&lt;/p&gt;

&lt;p&gt;let us see the working of sticky with an example:&lt;/p&gt;

&lt;p&gt;code:&lt;br&gt;
`.box{&lt;br&gt;
            height: 100px;&lt;br&gt;
            width: 100px;&lt;br&gt;
            border: 2px solid black;&lt;br&gt;
            margin: 10px;&lt;br&gt;
     }&lt;/p&gt;

&lt;p&gt;#box-3{&lt;br&gt;
        background-color: red;&lt;br&gt;
        position: sticky;&lt;br&gt;
        top: 20px;&lt;br&gt;
        left:120px&lt;br&gt;
        }&lt;br&gt;
`&lt;/p&gt;

&lt;p&gt;result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffkvfa7edp1xx6hqe60w2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffkvfa7edp1xx6hqe60w2.png" alt="Image description" width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>java</category>
      <category>coding</category>
      <category>discuss</category>
    </item>
    <item>
      <title>CSS box model</title>
      <dc:creator>Surendrababuvunnam</dc:creator>
      <pubDate>Thu, 29 Dec 2022 12:04:09 +0000</pubDate>
      <link>https://dev.to/i_am_surendra_/css-box-model-a4</link>
      <guid>https://dev.to/i_am_surendra_/css-box-model-a4</guid>
      <description>&lt;p&gt;The CSS box model is a fundamental concept in web design that describes the way that the dimensions and layout of a web page element are calculated. It consists of four main parts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Content: This is the element's content, such as text or images.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Padding: This is the space between the content and the border.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Border: This is a line that surrounds the content and padding.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Margin: This is the space between the border and the next element&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The dimensions of an element in the CSS box model are calculated based on the size of its content, plus any padding, border, and margin that has been added.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Padding&lt;/strong&gt;: padding is the space between an element's content and its border. Padding is an important aspect of the CSS box model.&lt;/p&gt;

&lt;p&gt;To set the padding of an element in CSS, you can use the padding property.  To understand the padding property let us use an example:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;div {&lt;br&gt;
  padding: 20px;&lt;br&gt;
}&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;as seen in the above example 20 pixels of padding to all four sides of the div element (top, right, bottom, and left) is applied.&lt;/p&gt;

&lt;p&gt;You can also specify different padding values for each side of the element using the padding-top, padding-right, padding-bottom, and padding-left properties. For example:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;div {&lt;br&gt;
  padding-top: 10px;&lt;br&gt;
  padding-right: 20px;&lt;br&gt;
  padding-bottom: 10px;&lt;br&gt;
  padding-left: 20px;&lt;br&gt;
}&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
This will apply 10 pixels of padding to the top and bottom of the &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; element, and 20 pixels of padding to the right and left.&lt;/p&gt;

&lt;p&gt;Padding is often used to add space around the content of an element, which can help to improve the layout and readability of a web page.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Border&lt;/strong&gt;: border is a line that surrounds an element and separates it from other elements on the web page. &lt;/p&gt;

&lt;p&gt;To set the border of an element in CSS, you can use the border property. The border property takes one or more values that specify the characteristics of the border, such as its width, style, and color.&lt;/p&gt;

&lt;p&gt;let us learn with example how to set a border.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;div {&lt;br&gt;
  border: 2px solid black;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;from the above example we can see that a border of 2pixel solid black is created around the element &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You can also specify different border characteristics for each side of the element using the border-top, border-right, border-bottom, and border-left properties. For example:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;div {&lt;br&gt;
  border-top: 1px dashed red;&lt;br&gt;
  border-right: 2px solid green;&lt;br&gt;
  border-bottom: 3px dotted blue;&lt;br&gt;
  border-left: 4px double purple;&lt;br&gt;
}&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This will create a 1-pixel-wide dashed red border at the top of the div element, a 2-pixel-wide solid green border at the right, a 3-pixel-wide dotted blue border at the bottom, and a 4-pixel-wide double purple border at the left.&lt;/p&gt;

&lt;p&gt;Borders are often used to add visual interest to web page elements, to separate elements from one another.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Margin&lt;/strong&gt;: margin is the space between an element and the other elements around it.&lt;/p&gt;

&lt;p&gt;To set the margin of an element in CSS, you can use the margin property. Let us see the margin property using following example:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;div {&lt;br&gt;
  margin: 20px;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This rule will apply 20 pixels of margin to all four sides of the &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; element.&lt;/p&gt;

&lt;p&gt;You can also specify different margin values for each side of the element using the margin-top, margin-right, margin-bottom, and margin-left properties. &lt;/p&gt;

&lt;p&gt;&lt;code&gt;div {&lt;br&gt;
  margin-top: 10px;&lt;br&gt;
  margin-right: 20px;&lt;br&gt;
  margin-bottom: 10px;&lt;br&gt;
  margin-left: 20px;&lt;br&gt;
}&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
This will apply 10 pixels of margin to the top and bottom of the div element, and 20 pixels of margin to the right and left.&lt;/p&gt;

&lt;p&gt;Margin is often used to add space around the outside of an element, which can help to improve the layout and readability of a web page. &lt;/p&gt;

</description>
      <category>css</category>
      <category>webdev</category>
    </item>
    <item>
      <title>CSS selectors and Pseudo-elements</title>
      <dc:creator>Surendrababuvunnam</dc:creator>
      <pubDate>Sat, 24 Dec 2022 14:00:19 +0000</pubDate>
      <link>https://dev.to/i_am_surendra_/css-selectors-19bi</link>
      <guid>https://dev.to/i_am_surendra_/css-selectors-19bi</guid>
      <description>&lt;p&gt;Hi friends let's learn about the selectors and pseudo-elements today.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;universal selectors&lt;/strong&gt;: it is type of selectors which is used to select all the elements of a HTML page . It is basically used to override the default CSS style of the browser and the basic syntax is as follows:&lt;br&gt;
&lt;code&gt;*{&lt;br&gt;
margin: 0;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;individual selectors&lt;/strong&gt;: it is a type of selectors in which an element is targeted by using their tag name. The syntax of the individual selectors is as follows:&lt;br&gt;
&lt;code&gt;p{&lt;br&gt;
   margin:10px;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;as seen in the above example all the p tag elements are given a margin of 10px.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;class and Id selectors&lt;/strong&gt;: &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;class&lt;/em&gt;&lt;/strong&gt;: it is a type of selectors in which an element is targeted by the class of the html element. The syntax of the class selectors is as follows:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;.class-name{&lt;br&gt;
margin:10px;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;as seen in the above example all the elements with class of .class-name are given a margin of 10px.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Id&lt;/em&gt;&lt;/strong&gt;: it is a type of selectors in which an element is targeted by the Id of the html element . The syntax of the Id selectors is as follows:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;#id-name{&lt;br&gt;
color:#ffffff;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;as seen in the above example all the elements with #id-name is has a text-color of #ffffff&lt;/p&gt;

&lt;p&gt;the difference between class and id at the first glance is obvious that is via . or # and class can be used to multiple elements and id for one element only. It doesn't mean browsers cannot display multiple elements with same id but it is not a good practice.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&amp;amp; selector (chained)&lt;/strong&gt;:It is a type of selector in which an element is targeted when all the conditions of targeting is met. The syntax of the &amp;amp; selector is shown as the following:&lt;/p&gt;

&lt;p&gt;(&lt;em&gt;tag&lt;/em&gt;&lt;em&gt;or&lt;/em&gt;&lt;em&gt;class_or_id&lt;/em&gt;)(&lt;em&gt;class_or_tag&lt;/em&gt;)(&lt;em&gt;class_or_tag&lt;/em&gt;)and so on&lt;/p&gt;

&lt;p&gt;example:&lt;code&gt;li.bg-black.text-white#blah-1{&lt;br&gt;
         background-color: #000;&lt;br&gt;
        color: #ef9323;&lt;br&gt;
       }&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;as seen in the above example an element with list tag which has all the classes and the tags with no spaces in-between is given the properties as specified above&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;combined selector&lt;/strong&gt;: in this type of selector two or more, same or different types of selectors i.e. the above mentioned and following below are used to target an element or a group of elements. The below example shows how combined selector works.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;li.bg-black.text-white#blah-1, .class-name, p{&lt;br&gt;
padding: 19px;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;as seen in the above example the three different types of selectors separated by the a comma is selected and is given a padding of 19px.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;inside an element&lt;/strong&gt;:this is a type of selector in which a element which is inside an another element is selected. The below example show the inside an element selector.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;div ul li{&lt;br&gt;
border:1px;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;as seen in the above example all the elements in which li which is inside ul which is inside div is selected and border property is applied.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;direct child&lt;/strong&gt;: this is a type of selector in which a element which is a direct child of an other element is selected the direct child can be understood by the following example :&lt;/p&gt;

&lt;p&gt;&lt;code&gt;div &amp;gt;ul &amp;gt;li{&lt;br&gt;
 color: black;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;as seen in the above example all the elements in which a div which has the direct child ul which has a direct child li is selected and is given a text-color of black.&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;sibling  ~ or + *&lt;/em&gt;: this is a type of selectors which is used to target a element which is its sibling. this can be understood by the following example.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;.sibling + p{&lt;br&gt;
        background-color: pink;&lt;br&gt;
      }&lt;/code&gt;&lt;br&gt;
as seen in the above example a adjacent sibling element which has class .sibling is selected . if instead of p ~ is used all sibling element after class .sibling is selected.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;pseudo-elements&lt;/strong&gt;:A CSS pseudo-element is a keyword added to a selector that lets you style a specific part of the selected element.  The two most majorly used pseudo-elements are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;::before and ::after : this is used to add content but mostly used for styling an element used along with a selector the diffrence is that before adds content before the selected element after adds the content after the selected. the example is shown in the below figure.
&lt;code&gt;.imp-label:hover::before{
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 10px;
    background-color: orange;
  }&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;as seen in the above figure when hover your pointer over the element which has a class of imp-label a orange circle is shown above that element which occupies entire block. when instead before after is used content is placed after the element with class. &lt;/p&gt;

</description>
      <category>devmeme</category>
    </item>
    <item>
      <title>Media and input tags</title>
      <dc:creator>Surendrababuvunnam</dc:creator>
      <pubDate>Fri, 23 Dec 2022 07:09:28 +0000</pubDate>
      <link>https://dev.to/i_am_surendra_/media-and-input-tags-kca</link>
      <guid>https://dev.to/i_am_surendra_/media-and-input-tags-kca</guid>
      <description>&lt;p&gt;Hi today I am going to write about media and input tags.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;media tags&lt;/strong&gt;&lt;br&gt;
the most used media tags are image(&lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt;),video(&lt;code&gt;&amp;lt;video&amp;gt;&lt;/code&gt;),audio(&lt;code&gt;&amp;lt;audio&amp;gt;&lt;/code&gt;) and iframe(&lt;code&gt;&amp;lt;iframe&lt;/code&gt;)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;image(&lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt;)&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;image tag and its details are written in following article :&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/i_am_surendra_/intro-to-web-development-39gc#:%7E:text=a%20brief%20play%20with%20img%20tag"&gt;https://dev.to/i_am_surendra_/intro-to-web-development-39gc#:~:text=a%20brief%20play%20with%20img%20tag&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;video(&lt;code&gt;&amp;lt;video&amp;gt;&lt;/code&gt;)&lt;/em&gt;&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;It is a tag in HTML used to embed a video in a document. Video tag has following attributes.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;src: The src attribute specifies the URL of the video file that you want to play.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;poster: The poster attribute specifies an image to be displayed before the video starts playing.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;controls: The controls attribute adds video controls, such as a play/pause button and a volume control, to the video player.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;autoplay: The autoplay attribute specifies that the video should start playing as soon as it is ready. It is a Boolean attribute&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;loop: The loop attribute specifies that the video should start over again, from the beginning, when it reaches the end.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;muted: The muted attribute specifies that the video's audio should be muted.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;controlslist: The controlslist attribute, when specified, helps the browser select what controls to show for the video &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;preload: The preload attribute specifies whether or not the video should be loaded when the page loads.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;width and height: The width and height attributes specify the dimensions of the video player.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;audio(&lt;code&gt;&amp;lt;audio&amp;gt;&lt;/code&gt;)&lt;/em&gt;&lt;/strong&gt;:&lt;br&gt;
It is a tag in HTML used to embed a audio in a document. Audio tag has following attributes.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;it has all the above attributes as video expect attributes like poster height and width &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;muted: A Boolean attribute that indicates whether the audio will be initially silenced. Its default value is false.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;iframe(&lt;code&gt;&amp;lt;iframe&amp;gt;&lt;/code&gt;)&lt;/em&gt;&lt;/strong&gt;:&lt;br&gt;
The iframe element in HTML is used to embed an external webpage or document into an HTML document.  iframe tag has following attributes.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;src: The src attribute specifies the URL of the webpage or document that you want to embed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;width and height: The width and height attributes specify the dimensions of the iframe.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;frameborder: The frameborder attribute specifies whether or not to display a border around the iframe.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;scrolling: The scrolling attribute specifies whether or not to display scrollbars in the iframe.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;allow: The allow attribute is a new attribute in HTML that was introduced in HTML 5.2. It allows you to specify a list of features that should be allowed in the iframe. This attribute is used to enable or disable certain capabilities in the iframe in order to prevent malicious actions or improve security.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;input tags&lt;/strong&gt;:&lt;br&gt;
The input element in HTML is used to create interactive controls for web-based forms in order to accept data from the user. The input element is one of the most important elements in HTML and is used in almost all web forms.&lt;/p&gt;

&lt;p&gt;several types of input tags are :&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;text: The text input type is used to create a single-line text field for the user to enter a short piece of text, such as a name or email address&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;password: The password input type is used to create a single-line text field for the user to enter a password. The text entered by the user is masked to prevent it from being visible.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;password: The password input type is used to create a single-line text field for the user to enter a password. The text entered by the user is masked to prevent it from being visible.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;checkbox: The checkbox input type is used to create a single checkbox. The user can check or uncheck the checkbox to indicate their preference.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;submit: The submit input type is used to create a button that the user can click to submit the form.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;reset: The input element with the reset type is used to create a button that the user can click to reset a form to its default values. When the user clicks on the reset button, all form elements are reset to their default values, and any user input is erased.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;number: The input element with the number type is used to create a field for the user to enter a numerical value. The number input type is used when you want to accept only numerical input from the user.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;tel :The input element with the tel type is used to create a field for the user to enter a telephone number. The tel input type is used when you want to accept only telephone numbers as input from the user.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;file: The input element with the file type is used to create a field for the user to select a file to upload. The file input type is used when you want to allow the user to upload a file from their computer to your website.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;range: The input element with the range type is used to create a field for the user to select a numerical value within a specified range. The range input type is used when you want to allow the user to select a value from a range of continuous or discrete values&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>codepen</category>
    </item>
    <item>
      <title>Tags for text, formatting, citation and semantic and usability improving attributes</title>
      <dc:creator>Surendrababuvunnam</dc:creator>
      <pubDate>Wed, 21 Dec 2022 02:58:30 +0000</pubDate>
      <link>https://dev.to/i_am_surendra_/tags-for-text-formatting-citation-and-semantic-and-usability-improving-attributes-48g2</link>
      <guid>https://dev.to/i_am_surendra_/tags-for-text-formatting-citation-and-semantic-and-usability-improving-attributes-48g2</guid>
      <description>&lt;p&gt;hi today I am going to dive deeper into html&lt;/p&gt;

&lt;p&gt;*&lt;strong&gt;&lt;em&gt;text related tags&lt;/em&gt;&lt;/strong&gt;*&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;header tags&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
The heading elements in HTML are &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;h2&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;h3&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;h4&amp;gt;&lt;/code&gt;, &lt;code&gt;&amp;lt;h5&amp;gt;&lt;/code&gt;, and &lt;code&gt;&amp;lt;h6&amp;gt;&lt;/code&gt;. These elements are used to define headings of different levels, with &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; being the highest level and &lt;code&gt;&amp;lt;h6&amp;gt;&lt;/code&gt; being the lowest.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;paragraph tags&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
The&lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt;element of HTML is used to represent the paragraph.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;pre tag&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The &lt;code&gt;&amp;lt;pre&amp;gt;&lt;/code&gt; tag is an HTML element that is used to define preformatted text. Preformatted text is displayed in a fixed-width font and preserves spaces and line breaks.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The &lt;code&gt;&amp;lt;pre&amp;gt;&lt;/code&gt; tag is often used to display code examples or other content that needs to be displayed exactly as written, without any additional formatting being applied by the browser.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;format related tags **&lt;br&gt;
**&lt;em&gt;strong and bold and their difference&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;before going to these tags let's know what are the screen readers.&lt;/p&gt;

&lt;p&gt;Screen readers are software programs that assist users with visual impairments in accessing the content of websites and other digital media. They do this by converting the text on a webpage or document into synthetic speech, which the user can then listen to through their computer's speakers or a set of headphones.&lt;/p&gt;

&lt;p&gt;now let's go to these tags&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;strong tag&lt;/em&gt;&lt;/strong&gt;:&lt;br&gt;
The &lt;code&gt;&amp;lt;strong&amp;gt;&lt;/code&gt; tag is used to indicate that the text has strong importance or emphasis. It is typically rendered as bold text, but the meaning of the tag goes beyond just the visual appearance. Screen readers, for example, may announce the text as being "strongly emphasized" or "important".&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;em&gt;bold tag&lt;/em&gt;&lt;/strong&gt;:&lt;br&gt;
The &lt;code&gt;&amp;lt;b&amp;gt;&lt;/code&gt; tag, on the other hand, is used to format text as bold without any particular meaning or emphasis. It is purely a visual formatting element and does not convey any semantic information to screen readers or other assistive technologies.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In general, it is recommended to use the &lt;code&gt;&amp;lt;strong&amp;gt;&lt;/code&gt; tag for indicating strong emphasis or importance, and to use the &lt;code&gt;&amp;lt;b&amp;gt;&lt;/code&gt; tag only for visual formatting purposes. This helps to ensure that the content of your website is properly conveyed to all users, including those who rely on assistive technologies.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;emphasis and italic and their difference&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;&amp;lt;em&amp;gt;&lt;/code&gt; tag is used to indicate that the text has emphasis or stress. It is typically rendered as italic text, but the meaning of the tag goes beyond just the visual appearance. Screen readers, for example, may announce the text as being "emphasized" or "stressed".&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;&amp;lt;i&amp;gt;&lt;/code&gt; tag, on the other hand, is used to format text as italic without any particular meaning or emphasis. It is purely a visual formatting element and does not convey any semantic information to screen readers or other assistive technologies.&lt;/p&gt;

&lt;p&gt;In general, it is recommended to use the &lt;code&gt;&amp;lt;em&amp;gt;&lt;/code&gt; tag for indicating emphasis or stress, and to use the &lt;code&gt;&amp;lt;i&amp;gt;&lt;/code&gt; tag only for visual formatting purposes. This helps to ensure that the content of your website is properly conveyed to all users, including those who rely on assistive technologies.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;small tag&lt;/em&gt;&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The &lt;code&gt;&amp;lt;small&amp;gt;&lt;/code&gt; tag in HTML is used to format small text. It is typically rendered as a smaller font size than the surrounding text, and is often used for disclaimers, legal text, or other fine print.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;small tag  is intended only for small text that is part of the regular flow of the document, and not for structural or organizational purposes.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;sub-script tag&lt;/em&gt;&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;&amp;lt;sub&amp;gt;&lt;/code&gt; tag in HTML is used to format text as subscript. Subscript text is smaller than the surrounding text and is typically lowered below the baseline.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;super-script tag&lt;/em&gt;&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;&amp;lt;sup&amp;gt;&lt;/code&gt; tag in HTML is used to format text as superscript. Superscript text is smaller than the surrounding text and is typically raised above the baseline.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;both sub and super script tags are used often used in scientific or technical documents to indicate subscripts or footnotes. It can also be used for other purposes, such as to indicate trademark or copyright symbols.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;insert and delete tags&lt;/em&gt;&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;insert tag: The &lt;code&gt;&amp;lt;ins&amp;gt;&lt;/code&gt; tag is used to mark text that has been inserted into a document. The text within the tags is typically rendered with a line under it, to indicate that it is new or added content.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;delete tag: The &lt;code&gt;&amp;lt;del&amp;gt;&lt;/code&gt; tag is used to mark text that has been deleted from a document. The text within the tags is typically rendered with a line through it, to indicate that it has been removed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The &lt;code&gt;&amp;lt;ins&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;del&amp;gt;&lt;/code&gt; tags are often used to show the changes that have been made to a document, such as in a version control system or a collaborative document editor. They can also be used for other purposes, such as to highlight new or updated content on a website.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;mark tag&lt;/em&gt;&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The &lt;code&gt;&amp;lt;mark&amp;gt;&lt;/code&gt; tag in HTML is used to highlight text that is relevant to the context of the surrounding text. The text within the &lt;code&gt;&amp;lt;mark&amp;gt;&lt;/code&gt; tags is typically rendered with a background color or other highlighting effect, to draw the reader's attention to it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The &lt;code&gt;&amp;lt;mark&amp;gt;&lt;/code&gt; tag is often used to highlight key terms or phrases in a document, or to draw the reader's attention to specific passages of text. It can also be used for other purposes, such as to highlight search results or to indicate recently updated content on a website.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;citation related tags&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;cite tag&lt;/em&gt;&lt;/strong&gt;:  This tag is used to indicate the title of a work, such as a book, article, or website. The text within the &lt;code&gt;&amp;lt;cite&amp;gt;&lt;/code&gt; tags is typically rendered in italic or with a different font style to indicate that it is a citation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;quotation tag&lt;/em&gt;&lt;/strong&gt;: The &lt;code&gt;&amp;lt;q&amp;gt;&lt;/code&gt; element in HTML represents a short inline quotation. It is used to mark a section of text as a quotation, and is typically rendered in quotation marks. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;blockquote tag&lt;/em&gt;&lt;/strong&gt;:The &lt;code&gt;&amp;lt;blockquote&amp;gt;&lt;/code&gt; element in HTML represents a long quotation that is set apart from the rest of the text. It is typically rendered as indented text.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;semantic tags&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Semantic tags are HTML tags that provide meaning to the content they contain, rather than just describing the appearance of the content. They help to structure the content of a webpage in a way that is meaningful and easy to understand for both humans and computers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;header tag&lt;/em&gt;&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The &lt;code&gt;&amp;lt;header&amp;gt;&lt;/code&gt; tag in HTML is a semantic element that represents the header of a webpage or section of a webpage. It is typically used to contain the main heading of the webpage.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The &lt;code&gt;&amp;lt;header&amp;gt;&lt;/code&gt; tag can also be used to represent the header of a section within a webpage, in which case it should be used as a child element of the sectioning element (such as &lt;code&gt;&amp;lt;section&amp;gt;&lt;/code&gt; or &lt;code&gt;&amp;lt;article&amp;gt;&lt;/code&gt;) that it belongs to&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;nav tag&lt;/em&gt;&lt;/strong&gt;:&lt;br&gt;
A nav bar, or navigation bar, is a section of a webpage that provides links to other pages or sections within the same website. It is typically used to allow users to easily navigate around the site and find the content they are looking for.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;main tag&lt;/em&gt;&lt;/strong&gt;:&lt;br&gt;
The &lt;code&gt;&amp;lt;main&amp;gt;&lt;/code&gt; tag in HTML is a semantic element that represents the main content of a webpage. It is typically used to enclose the content that is central to the purpose of the webpage, and that is unique to that webpage.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;section tag&lt;/em&gt;&lt;/strong&gt;:&lt;br&gt;
The &lt;code&gt;&amp;lt;section&amp;gt;&lt;/code&gt; tag in HTML is a semantic element that represents a section of a webpage that has a thematic grouping of content. It is typically used to divide the content of a webpage into logical sections, each with its own heading and containing related content&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;article tag&lt;/em&gt;&lt;/strong&gt;:&lt;br&gt;
the &lt;code&gt;&amp;lt;article&amp;gt;&lt;/code&gt; tag in html is a semantic element that represents a piece of content that can be reused and distributed as per the creator's wish.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;aside tag&lt;/em&gt;&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The &lt;code&gt;&amp;lt;aside&amp;gt;&lt;/code&gt; tag in HTML is a semantic element that represents content that is related to the main content of a webpage, but that is separate from it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is typically used to contain sidebars, additional information, or other related content that is not central to the main purpose of the webpage.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;footer tag&lt;/em&gt;&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The  tag in HTML is a semantic element that represents the footer of a webpage.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;It is typically used to contain information such as the copyright notice, website credits, and links to related content or resources&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;attributes used to increase the usability of web page&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;few attributes that are used to increase the usability are:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;title&lt;/em&gt;&lt;/strong&gt;:&lt;br&gt;
 The &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; attribute is used to provide additional information about an element, such as a tooltip or pop-up text. It is often used on links and form elements to provide a brief description of the destination or purpose of the element.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;code&gt;alt&lt;/code&gt;&lt;/em&gt;&lt;/strong&gt;:&lt;br&gt;
 The alt attribute is used to provide alternative text for images. It is especially important for users who are unable to see the images, as it allows them to understand the content of the image through the use of screen readers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;code&gt;aria-lable&lt;/code&gt;&lt;/em&gt;&lt;/strong&gt;:&lt;br&gt;
The aria-label attribute is an HTML attribute that is used to provide a label for an element that does not have a visible label. This is particularly useful for custom widgets or elements that are not natively supported by HTML.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>vue</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
