<?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: Ankit Kanyal</title>
    <description>The latest articles on DEV Community by Ankit Kanyal (@ankit9761).</description>
    <link>https://dev.to/ankit9761</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%2F332777%2F1591d104-9476-4c12-bd87-4a96d4719385.png</url>
      <title>DEV Community: Ankit Kanyal</title>
      <link>https://dev.to/ankit9761</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ankit9761"/>
    <language>en</language>
    <item>
      <title>Basis Of Css</title>
      <dc:creator>Ankit Kanyal</dc:creator>
      <pubDate>Wed, 08 Sep 2021 08:52:28 +0000</pubDate>
      <link>https://dev.to/ankit9761/basis-of-css-1059</link>
      <guid>https://dev.to/ankit9761/basis-of-css-1059</guid>
      <description>&lt;h1&gt;
  
  
  Introduction-
&lt;/h1&gt;

&lt;p&gt;So Css full form is Cascading Style sheets.It is basically a document to style the webpages.Css is what gives your webpage colors and cool animations.&lt;/p&gt;

&lt;h1&gt;
  
  
  Types-
&lt;/h1&gt;

&lt;p&gt;There are 3 types of css-&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Inline Css-
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rxjAGMX8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/36xjbuhw9lu7oi950iek.png" alt="image"&gt;
This type of css is injected into element using style attribute.And we have to provide attributes which we want to target inside it.Its area of scope is only one particular element.&lt;/li&gt;
&lt;li&gt;Internal Css-
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zM_JsDvn--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i3b4l6vlvh6sddrk2pvk.png" alt="image"&gt;
This type of css is used by using &lt;code&gt;&amp;lt;style&amp;gt;&lt;/code&gt; tag.The &lt;code&gt;&amp;lt;style&amp;gt;&lt;/code&gt; tag is positioned inside head tag.  Its area of scope is one html Document we can update the single document style with the help of this.&lt;/li&gt;
&lt;li&gt;External Css-
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--FoA01iIr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oprfyyvsgaezdlqjkl24.png" alt="image"&gt;
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--OA4_wtfM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u30zn1s9jdedupk34i8g.png" alt="image"&gt; 
So basically we create an external style.css file where we create our styles and link it inside html document using the &lt;code&gt;&amp;lt;link&amp;gt;&lt;/code&gt; tag.This external css scope is much wider compared to last two we can create a single style sheet for multiple html pages and just link it inside the html to generate styles.&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;
  
  
  Box-Model-
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ol0JavyQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/it0jy8tjfg65ydpzj8h2.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ol0JavyQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_66%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/it0jy8tjfg65ydpzj8h2.gif" alt="Box-Model"&gt;&lt;/a&gt;&lt;br&gt;
So in css we have box model to style everything.Consider a block element as as &lt;code&gt;div&lt;/code&gt; we can style it using the above properties.&lt;br&gt;
Box model has following properties-&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Content-It means Content of box where all elements and images appear.&lt;/li&gt;
&lt;li&gt;Padding-It is an outer area around content and it is tranparent.&lt;/li&gt;
&lt;li&gt;Border-A border that goes around padding and content.&lt;/li&gt;
&lt;li&gt;Margin-A transparent area around border which seprates it from another element box-model.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Basic Css Selectors-
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Element Selectors-&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--xHsDvTzQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w3hops8ovtnknw36jliu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--xHsDvTzQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w3hops8ovtnknw36jliu.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
Here we can directly Specify the element name and then describe its property.Then the following styles will be applied to all the elements tag with same tag.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Class selectors-&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--43loA_e5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x0dbbudbvq46bx2hctt3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--43loA_e5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x0dbbudbvq46bx2hctt3.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
We can define a class in an element like this.And then target the class in style tag or any stylesheet.The class is represented using &lt;code&gt;.class-name&lt;/code&gt; in css.Its specificity(effect) is greater than normal Element Selector.  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Id Selectors-&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--eYx-C5jr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4yl966d6aqzy6anwfpl3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--eYx-C5jr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4yl966d6aqzy6anwfpl3.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
So these are basically same as class selectors but they are unique only one element inside a document can have an id. The id is represented as &lt;code&gt;#id-name&lt;/code&gt; in css.There is also an additional benefit of these id selectors if we put id name in href attribute of anchor tag it will take us to where the id element in document is located when clicked.These are helpful it creating navigation across different sections in a page.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--iMTMsrrU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wrqnso5siowk3nuyxzo4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--iMTMsrrU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wrqnso5siowk3nuyxzo4.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;
  
  
  Conclusion-
&lt;/h1&gt;

&lt;p&gt;So we can effectively use css to style our webpages.Whether we use inline,internal or external to style our pages we should consider the box model and style our elements accordingly.&lt;/p&gt;

&lt;h4&gt;
  
  
  P.S-For more detailed explanation and read about css properties use can visit csstricks website.And for properties and information on all tags you can use mdn as a reference.
&lt;/h4&gt;

</description>
      <category>programming</category>
      <category>css</category>
    </item>
    <item>
      <title>Basis Of Html</title>
      <dc:creator>Ankit Kanyal</dc:creator>
      <pubDate>Wed, 08 Sep 2021 06:03:04 +0000</pubDate>
      <link>https://dev.to/ankit9761/basis-of-html-20oj</link>
      <guid>https://dev.to/ankit9761/basis-of-html-20oj</guid>
      <description>&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;-So today we are going to learn about some of basis of html.Let's start with what is HTML.&lt;br&gt;
-If we search google for full form of HTML it will say Hyper Text Markup Language.So we can say it is an Markup Language.But what is an Markup Language 🤔.&lt;br&gt;
-Markup language are used to define the structure of a document.So basically there are some rules or so called tags which helps in defining the structure or how we represent the text in the document.&lt;/p&gt;

&lt;h1&gt;
  
  
  Anatomy of Html Document
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kRmU8jMm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v54hg0ienw9v8nmmafbd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kRmU8jMm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v54hg0ienw9v8nmmafbd.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
Here we have the following-&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/code&gt;-This basically tells the type of document.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;html&amp;gt;&amp;lt;/html&amp;gt;&lt;/code&gt;-This is the root element of html.It wraps all the content inside it.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;&lt;/code&gt;-This is head of the Html it comprises of data which you want browser to look and normally it is not visible to users.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;meta /&amp;gt;&lt;/code&gt;-It consists of meta data about your page we can use it to describe the type of content our page serves.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;&lt;/code&gt;-It represents the title or so called name of document.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;body&amp;gt;&amp;lt;/body&amp;gt;&lt;/code&gt;-It is the main body element.Inside it you can define data which you want to show to users be it text,images,audio or sound.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1&gt;
  
  
  Heading-
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gkdsMHPL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zt6htn5nxgoq571z06zp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gkdsMHPL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zt6htn5nxgoq571z06zp.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
These are the 6 different types of heading tags which we can use to create a heading.These heading tags are arranged in descending order of their font Sizes.h1 having largest font size and h6 having lowest font size.&lt;/p&gt;

&lt;h1&gt;
  
  
  Images-
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Lg3sBzMZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8xpe4nlbf5oc0fwlkknd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Lg3sBzMZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8xpe4nlbf5oc0fwlkknd.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
So if we want to insert images we can use this img tag.It comes with 2 properties src which is called source where we have to gice link of where the image is located and an alt tag where we can specify the text if a image is not loaded.&lt;br&gt;
It also has some additional attributes but for basis this is enough.&lt;/p&gt;

&lt;h1&gt;
  
  
  links-
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--lbahAENy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6dq92p3xilkq0z6f8bql.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--lbahAENy--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6dq92p3xilkq0z6f8bql.png" alt="image"&gt;&lt;/a&gt; &lt;br&gt;
For creating links we have anchor tag.Here we have href attribute which is used to insert the link we want to go when we click on it.&lt;/p&gt;

&lt;h1&gt;
  
  
  lists-
&lt;/h1&gt;

&lt;p&gt;So basically there are two types of lists in html.&lt;br&gt;
1.Ordered List &lt;code&gt;&amp;lt;ol&amp;gt;&amp;lt;/ol&lt;/code&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GP5H7RpC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ps42hj8cxp59wpf1kx08.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GP5H7RpC--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ps42hj8cxp59wpf1kx08.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
2.Unordered List &lt;code&gt;&amp;lt;ul&amp;gt;&amp;lt;/ul&amp;gt;&lt;/code&gt; &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--n9FyLB71--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/13h2ohi8u81dyyvzrx15.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--n9FyLB71--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/13h2ohi8u81dyyvzrx15.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Paragraphs-
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sw0qS9L2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kdq3f0k15y2w4j5vnu35.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sw0qS9L2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kdq3f0k15y2w4j5vnu35.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
So there are 2 tags which we can use to represent a paragraph.&lt;br&gt;
1.&lt;code&gt;&amp;lt;p&amp;gt;&lt;/code&gt; tag-It creates a general paragraph.&lt;br&gt;
2.&lt;code&gt;&amp;lt;pre&amp;gt;&lt;/code&gt; tag-It creates a paragraph like how you have written text inside this paragraph.So if we want fixed paragraph like how we have inserted the text inside it this tag is the way to do it.&lt;/p&gt;

&lt;h1&gt;
  
  
  Containers-
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ZOOe2xdA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r20hi9t9foj4ub8ga49o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ZOOe2xdA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/r20hi9t9foj4ub8ga49o.png" alt="image"&gt;&lt;/a&gt;&lt;br&gt;
So there are basically these 4 main types of containers which we can use obivously there are more but we are gong to talk about these basic and important 4 only.&lt;br&gt;
1.&lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt;-It is a common wrapper whenever we simply want a block to wrap elements inside.&lt;br&gt;
2.&lt;code&gt;&amp;lt;main&amp;gt;&lt;/code&gt;-It is used to wrap main and important things inside the page.&lt;br&gt;
3.&lt;code&gt;&amp;lt;section&amp;gt;&lt;/code&gt;-It is used to create a section inside the body and wraps all the section elemets inside it.&lt;br&gt;
4.&lt;code&gt;&amp;lt;article&amp;gt;&lt;/code&gt;-It is used to create an article.It is mainly used in blog posts,form posts to create an article.&lt;/p&gt;

&lt;h1&gt;
  
  
  Conclusion-
&lt;/h1&gt;

&lt;p&gt;Html itself is a powerful markup Language.It describes the documents contents with a set of rules called as tags.These are some of the few basic tags everyone should know while working with html.When css and js is embedded in html then it gives the true beauty to the web page.Always remember Html is like a builder which builds a house,css is like painter which gives beautiful color to house and js is like Electrican which gives electric functionality to house and many other components.&lt;/p&gt;

&lt;h3&gt;
  
  
  P.S-This is my very First blog i tried to explain basic things as easy as possible.Any suggestions will be welcomed.
&lt;/h3&gt;

</description>
      <category>programming</category>
      <category>html</category>
    </item>
  </channel>
</rss>
