<?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: Madelyn Mathew</title>
    <description>The latest articles on DEV Community by Madelyn Mathew (@backlinkss).</description>
    <link>https://dev.to/backlinkss</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%2F995924%2Ff1a76120-b20e-41de-b416-482765436ae5.png</url>
      <title>DEV Community: Madelyn Mathew</title>
      <link>https://dev.to/backlinkss</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/backlinkss"/>
    <language>en</language>
    <item>
      <title>Sneakers 3d Product Card Hover HTML CSS 🔥🙌</title>
      <dc:creator>Madelyn Mathew</dc:creator>
      <pubDate>Tue, 07 Mar 2023 12:08:06 +0000</pubDate>
      <link>https://dev.to/backlinkss/sneakers-3d-product-card-hover-html-css-4chm</link>
      <guid>https://dev.to/backlinkss/sneakers-3d-product-card-hover-html-css-4chm</guid>
      <description>&lt;p&gt;Sneakers 3d Product Card Hover HTML CSS 🔥🙌 When Hover Shoes will Move Up that Will Blow your mind 😨&lt;/p&gt;

&lt;p&gt;!! FOLLOW US TO LEARN CODING !!&lt;/p&gt;

&lt;p&gt;Follow for more &lt;a href="https://dev.to/backlinkss"&gt;https://dev.to/backlinkss&lt;/a&gt; 💙&lt;/p&gt;

&lt;p&gt;Tags Your Friends 😉&lt;/p&gt;

&lt;p&gt;Don't forget Like ♥️ and share 💬&lt;br&gt;
Save for future references 📖&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;HTML&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en" &amp;gt;
&amp;lt;head&amp;gt;
  &amp;lt;meta charset="UTF-8"&amp;gt;
  &amp;lt;title&amp;gt;CodePen - Sneaker Product Cards &amp;lt;/title&amp;gt;
  &amp;lt;link rel="stylesheet" href="./style.css"&amp;gt;

&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
&amp;lt;!-- partial:index.partial.html --&amp;gt;
&amp;lt;main class="container"&amp;gt;
  &amp;lt;section class="card"&amp;gt;
    &amp;lt;div class="product-image"&amp;gt;
      &amp;lt;img src="https://i.ibb.co/cNWqxGx/red.png" alt="OFF-white Red Edition" draggable="false" /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class="product-info"&amp;gt;
      &amp;lt;h2&amp;gt;Nike X OFF-white&amp;lt;/h2&amp;gt;
      &amp;lt;p&amp;gt;The 10: Air Jordan 1 off-white - Chicago&amp;lt;/p&amp;gt;
      &amp;lt;div class="price"&amp;gt;$999&amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class="btn"&amp;gt;
      &amp;lt;button class="buy-btn"&amp;gt;Buy Now&amp;lt;/button&amp;gt;
      &amp;lt;button class="fav"&amp;gt;
        &amp;lt;svg class="svg" id="i-star" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"&amp;gt;
          &amp;lt;path d="M16 2 L20 12 30 12 22 19 25 30 16 23 7 30 10 19 2 12 12 12 Z" /&amp;gt;
        &amp;lt;/svg&amp;gt;
      &amp;lt;/button&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/section&amp;gt;
  &amp;lt;section class="card card-blue"&amp;gt;
    &amp;lt;div class="product-image"&amp;gt;
      &amp;lt;img src="https://i.ibb.co/0JKpmgd/blue.png" alt="OFF-white Blue Edition" draggable="false" /&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class="product-info"&amp;gt;
      &amp;lt;h2&amp;gt;Nike X OFF-white&amp;lt;/h2&amp;gt;
      &amp;lt;p&amp;gt;Air Jordan 1 Retro High "Off-White - UNC" sneakers&amp;lt;/p&amp;gt;
      &amp;lt;div class="price"&amp;gt;$1599&amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div class="btn"&amp;gt;
      &amp;lt;button class="buy-btn"&amp;gt;Buy Now&amp;lt;/button&amp;gt;
      &amp;lt;button class="fav"&amp;gt;
        &amp;lt;svg class="svg" id="i-star" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"&amp;gt;
          &amp;lt;path d="M16 2 L20 12 30 12 22 19 25 30 16 23 7 30 10 19 2 12 12 12 Z" /&amp;gt;
        &amp;lt;/svg&amp;gt;
      &amp;lt;/button&amp;gt;
    &amp;lt;/div&amp;gt;
  &amp;lt;/section&amp;gt;
&amp;lt;/main&amp;gt;
&amp;lt;!-- partial --&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;

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

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;CSS&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/*===== GOOGLE FONTS =====*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&amp;amp;display=swap");

/*===== VARIABLES CSS =====*/
:root {
  --dark-color-lighten: #f2f5ff;
  --red-card: #a62121;
  --blue-card: #4bb7e6;
  --btn: #141414;
  --btn-hover: #3a3a3a;
  --text: #fbf7f7;
}

/*===== RESET =====*/
*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  height: 100vh;
  width: 100vw;
  background-color: var(--dark-color-lighten);
  font-family: "Montserrat", sans-serif;
}
button {
  font-family: "Montserrat", sans-serif;
  display: inline-block;
  border: none;
  outline: none;
  border-radius: 0.2rem;
  color: var(--text);
  cursor: pointer;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: 100%;
  user-select: none;
}

/*===== CARD =====*/
.container {
  height: 100%;
  width: 850px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}
.card {
  position: relative;
  padding: 1rem;
  width: 350px;
  height: 450px;
  box-shadow: -1px 15px 30px -12px rgb(32, 32, 32);
  border-radius: 0.9rem;
  background-color: var(--red-card);
  color: var(--text);
  cursor: pointer;
}

.card-blue {
  background: var(--blue-card);
}

.product-image {
  height: 230px;
  width: 100%;
  transform: translate(0, -1.5rem);
  transition: transform 500ms ease-in-out;
  filter: drop-shadow(5px 10px 15px rgba(8, 9, 13, 0.4));
}
.product-info {
  text-align: center;
}

.card:hover .product-image {
  transform: translate(-1.5rem, -7rem) rotate(-20deg);
}

.product-info h2 {
  font-size: 1.4rem;
  font-weight: 600;
}
.product-info p {
  margin: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.price {
  font-size: 1.2rem;
  font-weight: 500;
}
.btn {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  margin-top: 0.8rem;
}
.buy-btn {
  background-color: var(--btn);
  padding: 0.6rem 3.5rem;
  font-weight: 600;
  font-size: 1rem;
  transition: 300ms ease;
}
.buy-btn:hover {
  background-color: var(--btn-hover);
}
.fav {
  box-sizing: border-box;
  background: #fff;
  padding: 0.5rem 0.5rem;
  border: 1px solid#000;
  display: grid;
  place-items: center;
}

.svg {
  height: 25px;
  width: 25px;
  fill: #fff;
  transition: all 500ms ease;
}

.fav:hover .svg {
  fill: #000;
}

@media screen and (max-width: 800px) {
  body {
    height: auto;
  }
  .container {
    padding: 2rem 0;
    width: 100%;
    flex-direction: column;
    gap: 3rem;
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This code creates a 3D product card with an image of a sneaker and an overlay that appears when you hover over the card. You can replace the image with your own sneaker image and customize the product details and styling to fit your needs.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>programming</category>
      <category>webdev</category>
      <category>python</category>
    </item>
    <item>
      <title>Convert srt to text regex javascript</title>
      <dc:creator>Madelyn Mathew</dc:creator>
      <pubDate>Sat, 07 Jan 2023 09:46:47 +0000</pubDate>
      <link>https://dev.to/backlinkss/convert-srt-to-text-regex-javascript-3bak</link>
      <guid>https://dev.to/backlinkss/convert-srt-to-text-regex-javascript-3bak</guid>
      <description>&lt;p&gt;A popular file format for storing subtitles is called SubRip Text (SRT), and it's frequently used to provide closed captions for videos. You might need to transform the SRT data into plain text if you're using SRT files in a JavaScript project. In this post, we'll examine how to accomplish this using JavaScript regular expression (regex).&lt;/p&gt;

&lt;p&gt;SubRip Subtitle, or srt for short, is a popular text file format for storing subtitles. This post will demonstrate how to use JavaScript regular expressions to convert srt to text.&lt;/p&gt;

&lt;p&gt;Using regular expressions in JavaScript, you can convert srt to text in a number of different ways. Here, we'll outline two approaches you can use to accomplish this.&lt;/p&gt;

&lt;p&gt;Here Is the method convert srt to text with javascript and regex.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to convert srt to text with javascript and regex
&lt;/h2&gt;

&lt;p&gt;JavaScript provides the function to convert an SRT (SubRip Text) subtitle file to text using regex:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
function convertSrtToText(srt) {
  // Use a expressão regular para remover os números de linha e as marcas de tempo
  return srt.replace(/^\d+\n([\d:,]+ --&amp;gt; [\d:,]+\n)/gm, '');
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Line numbers and timestamps are removed from the SRT file by this function using a regular expression. Without the line numbers and timestamps, it returns the text that was left in the SRT file.&lt;/p&gt;

&lt;p&gt;Simply call the function, supplying the content of the SRT file as a parameter, like in the example below, to use it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var srt = "1\n00:00:10,500 --&amp;gt; 00:00:13,000\nTexto da linha 1\n\n2\n00:00:13,500 --&amp;gt; 00:00:16,000\nTexto da linha 2\n\n3\n00:00:16,500 --&amp;gt; 00:00:19,000\nTexto da linha 3\n";
var text = convertSrtToText(srt);
console.log(text); // Exibe "Texto da linha 1\n\nTexto da linha 2\n\nTexto da linha 3\n"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Using the fs module
&lt;/h2&gt;

&lt;p&gt;We require the fs module, which enables us to interact with file systems in various ways, in order to process the SRT text.&lt;/p&gt;

&lt;p&gt;We require the Node.js environment and the command below to install the fs module.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install fs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We can use the regex techniques to convert srt to text now that we have the fs module.&lt;/p&gt;

&lt;h2&gt;
  
  
  Using replace () Method
&lt;/h2&gt;

&lt;p&gt;You would first need to read the contents of the srt file using the fs module in Node.js in order to convert a srt file to text in JavaScript using regex. The text from the srt file would then need to be extracted using a regular expression. Here is an illustration of how it might be done:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const fs = require('fs');

// Read the contents of the srt file
const srtFile = fs.readFileSync('/path/to/file.srt', 'utf8');

// Use a regular expression to extract the text from the srt file
const text = srtFile.replace(/^\\d+\\n(\\d{2}:\\d{2}:\\d{2},\\d{3} --&amp;gt; \\d{2}:\\d{2}:\\d{2},\\d{3})\\n/gm, '');

console.log(text);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1
00:00:51,916 --&amp;gt; 00:00:54,582
'London in the 1960s.

2
00:00:54,708 --&amp;gt; 00:00:57,124
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;'Everyone had a story about the Krays.&lt;br&gt;
The timestamp and speaker information at the start of each line in the srt file are matched in this example using the regular expression /d+n(d2:d2:d2,d3 --&amp;gt; d2:d2:d2,d3)n/gm. Then, only the text itself is kept by using the replace() method to delete this data.&lt;/p&gt;
&lt;h2&gt;
  
  
  Using match () Method
&lt;/h2&gt;

&lt;p&gt;Here is another method to convert a srt file to text in JavaScript is as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const fs = require('fs');

// Read the contents of the srt file
const srtFile = fs.readFileSync('/path/to/file.srt', 'utf8');

// Split the srt file into an array of lines
const lines = srtFile.split('\\n');

// Use a for loop to iterate over the lines in the array
for (let i = 0; i &amp;lt; lines.length; i++) {
  // Skip the lines that start with a timestamp or speaker information
  if (lines[i].match(/^\\d+$/) || lines[i].match(/^\\d{2}:\\d{2}:\\d{2},\\d{3} --&amp;gt; \\d{2}:\\d{2}:\\d{2},\\d{3}$/)) {
    continue;
  }

  // Print the remaining lines, which should be the text from the srt file
  console.log(lines[i]);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Output&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;1
00:00:51,916 --&amp;gt; 00:00:54,582
'London in the 1960s.

2
00:00:54,708 --&amp;gt; 00:00:57,124
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;'Everyone had a story about the Krays.&lt;br&gt;
In this technique, the srt file's contents are divided into an array of lines using the split() method. The lines in the array are then iterated over in a for loop, and a regular expression is used to determine whether or not each line begins with a date or speaker information. If so, the loop moves on to the following iteration. If not, the text from the srt file is displayed to the console along with the line.&lt;/p&gt;
&lt;h2&gt;
  
  
  Convert SRT using JS Modules
&lt;/h2&gt;

&lt;p&gt;Other methods besides JavaScript exist to convert SRT files to text. You can think about the following choices:&lt;/p&gt;
&lt;h2&gt;
  
  
  srt-to-vtt module
&lt;/h2&gt;

&lt;p&gt;SRT-to-VTT module usage To convert SRT files to text, use the npm package known as srt-to-vtt. You must instal it using the following command before using it:&lt;/p&gt;

&lt;p&gt;npm install srt-to-vtt&lt;/p&gt;

&lt;p&gt;Then use the following code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const srtToVtt = require('srt-to-vtt');

srtToVtt.convertSrtToVtt('path/to/input.srt', 'path/to/output.vtt', (err) =&amp;gt; {
  if (err) {
    console.error(err);
  } else {
    console.log('Conversão concluída com sucesso');
  }
});

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  srt-to-txt module
&lt;/h2&gt;

&lt;p&gt;SRT-to-TXT module usage Another npm package that may be used to convert SRT files to text is the srt-to-txt module. You must instal it using the following command before using it:&lt;/p&gt;

&lt;p&gt;npm install srt-to-txt&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const srtToTxt = require('srt-to-txt');

srtToTxt('path/to/input.srt').then((text) =&amp;gt; {
  console.log(text);
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  SubRip-Text library
&lt;/h2&gt;

&lt;p&gt;Using the SubRip-Text library SRT files can be read and edited using the JavaScript library known as the SubRip-Text. You must instal it using the following command before using it:&lt;/p&gt;

&lt;p&gt;npm install subrip-text&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const SubRipText = require('subrip-text');

const srt = new SubRipText('path/to/input.srt');

console.log(srt.getPlainText());
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Other ways to convert SRT to TXT
&lt;/h2&gt;

&lt;p&gt;Other techniques exist for converting an SRT file to text (TXT). You can think about the following options:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using an online converter:&lt;/strong&gt; You may convert SRT files to text using a number of different online converters. The converter will handle the conversion for you after you upload the SRT file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use a text editor:&lt;/strong&gt; Text editors with features for deleting line numbers and timestamps from SRT files include Notepad++ and Sublime Text. These settings can be used to remove these components and save the file as a plain text file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Using a command line script:&lt;/strong&gt; If you need to convert a lot of SRT files automatically while working with them, using a command line script similar to the ones in this post can be helpful.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;p&gt;For storing subtitles in a text file, the SRT format is frequently used. It is frequently employed to show closed subtitles for videos. Regular expressions can be used in JavaScript to transform SRT data into plain text.&lt;/p&gt;

&lt;p&gt;You may accomplish this by reading the contents of the SRT file using the fs module in Node.js. The text from the SRT file can then be extracted using a regular expression. One technique is to take out the timestamp and speaker information at the start of each line using the replace() method. Another strategy is to output the remaining lines, which should contain the text from the SRT file, after using the match () method to ignore any lines that begin with a date or speaker name.&lt;/p&gt;

&lt;p&gt;It's vital to keep in mind that because SRT files can have different formats, these methods might not always function. If you want to extract the text from the SRT file, you might need to change the regular expressions or try an other strategy.&lt;/p&gt;




&lt;p&gt;👉 For More Details Visit Here : [&lt;a href="https://www.backlinkss.link/2023/01/convert-srt-to-text-regex-javascript.html"&gt;BackLinks&lt;/a&gt;]&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>10 Best JavaScript Projects for Beginners [With Source Code]</title>
      <dc:creator>Madelyn Mathew</dc:creator>
      <pubDate>Wed, 04 Jan 2023 06:47:14 +0000</pubDate>
      <link>https://dev.to/backlinkss/10-best-javascript-projects-for-beginners-with-source-code-3d34</link>
      <guid>https://dev.to/backlinkss/10-best-javascript-projects-for-beginners-with-source-code-3d34</guid>
      <description>&lt;p&gt;One of the most widely used programming languages is JavaScript (JS), which is utilised in all web applications for a variety of purposes, including validation, generating dynamic information, interactive graphics, and mapping. JS offers the ability to create comprehensive, complex web apps alongside HTML and CSS.&lt;/p&gt;

&lt;p&gt;Users can interact with the intriguing components of a web page using JS. But where do you begin if you're a novice coder with little JS experience?&lt;/p&gt;

&lt;p&gt;The best way to learn is by doing, which is where simple JavaScript projects come in. We've compiled the best JavaScript projects for beginners as well as a few more challenging ones for when you've gotten the hang of it, so don't worry if you need help coming up with project ideas!&lt;/p&gt;

&lt;p&gt;Are you ready to work on JavaScript projects? Let's get going.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why JavaScript Projects?
&lt;/h2&gt;

&lt;p&gt;The core of any web application is JS. A solid grasp of JS opens up a wide range of demanding and exciting employment opportunities, such as full-stackprogramming, mobile app development, dynamic web development, and UI/UX design. It's simple to have fun with JavaScript because of the language's limitless interaction.&lt;/p&gt;

&lt;p&gt;Projects are the next step to enhancing your resume if you are familiar with the fundamentals of JavaScript. If you have no prior programming knowledge, you can read JS books or enrol in introductory JavaScript courses before coming back to these projects. Since the source code is available, you can understand the majority of JavaScript projects if you are familiar with HTML and CSS.&lt;/p&gt;

&lt;p&gt;Before we get to the projects themselves, let's review some of JavaScript's key characteristics:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;used to produce interactive web content on both the client and server sides.&lt;/li&gt;
&lt;li&gt;enhances user experience significantly with dynamic functionality.&lt;/li&gt;
&lt;li&gt;Object-oriented language that is lightweight.&lt;/li&gt;
&lt;li&gt;Language that is open, cross-platform, and interpreted.&lt;/li&gt;
&lt;li&gt;seamlessly incorporates HTML and Java.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Beginner JavaScript Projects at Their Best
&lt;/h2&gt;

&lt;p&gt;Although JavaScript is very versatile, we don't want to overburden you. Fortunately, there are plenty of basic javascript projects available to get you started.&lt;/p&gt;

&lt;p&gt;To make it simple for you to get started, we'll start out slowly with these JavaScript projects containing source code:&lt;/p&gt;

&lt;h2&gt;
  
  
  1. JavaScript Calculator
&lt;/h2&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%2Fgv510yr6kpr3k0t4xegf.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%2Fgv510yr6kpr3k0t4xegf.png" alt="Image description" width="800" height="406"&gt;&lt;/a&gt;&lt;br&gt;
One of the simple JavaScript projects on our list is the calculator. Simple HTML and CSS will be used, and basic JavaScript functions will be used to generate all functional components. To display buttons, we'll keep utilising HTML, and CSS will enhance the presentation. Finally, we'll need to use JavaScript to make sure that buttons execute the proper actions.&lt;/p&gt;

&lt;p&gt;Eval(), a universal JS function that resolves JS code, serves as the main function. The chosen number will be shown on the calculator screen via the display() method. Keep in mind that the software will only respond to mouse events. Here is the entire code, broken down into sections for HTML, CSS, and JS: &lt;/p&gt;

&lt;p&gt;Source Code : &lt;a href="https://www.backlinkss.link/2023/01/10-best-javascript-projects-for-beginners.html" rel="noopener noreferrer"&gt;Click On Me&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Hangman Game
&lt;/h2&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%2F9v4x7w0psrud840uy6l3.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%2F9v4x7w0psrud840uy6l3.png" alt="Image description" width="800" height="406"&gt;&lt;/a&gt;&lt;br&gt;
A popular game and one of our easy JS projects is hangman. It can be quickly developed using JavaScript, HTML, and CSS. Keep in mind that JS is used to define the core functionality. The purpose of HTML is for display, whereas CSS takes care of embellishing the contents.&lt;/p&gt;

&lt;p&gt;The JS code has a lot of specified methods, so at first it could look hard, but after carefully reading it, you'll discover that it's really rather straightforward. Run the code to view how it is executed line by line.&lt;/p&gt;

&lt;p&gt;Check the execution and code here. &lt;/p&gt;

&lt;p&gt;Source Code : &lt;a href="https://www.backlinkss.link/2023/01/10-best-javascript-projects-for-beginners.html" rel="noopener noreferrer"&gt;Click On Me&lt;/a&gt; &lt;/p&gt;

&lt;h2&gt;
  
  
  3. Tic-Tac-Toe game
&lt;/h2&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%2Feq1exa3jqfjhj2s6igg3.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%2Feq1exa3jqfjhj2s6igg3.png" alt="Image description" width="800" height="406"&gt;&lt;/a&gt;&lt;br&gt;
It's simple to create your own Tic-Tac-Toe game with JavaScript. The complete code can be viewed here, and it walks you through each step of creating a 3x3 tic-tac-toe board. Then, for your own practise and expertise, you can subsequently expand to NxN. The project's HTML and CSS are both relatively straightforward. The author begins with pseudocode before delving into each function's particular explanation. &lt;/p&gt;

&lt;p&gt;Source Code : &lt;a href="https://www.backlinkss.link/2023/01/10-best-javascript-projects-for-beginners.html" rel="noopener noreferrer"&gt;Click On Me&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Weather App
&lt;/h2&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%2Ffvmp94207gukuyr815m5.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%2Ffvmp94207gukuyr815m5.png" alt="Image description" width="" height=""&gt;&lt;/a&gt;&lt;br&gt;
Another common JavaScript project is a weather app. In this project, whenever the location name is changed, the weather display updates without requiring a page refresh. Also pretty stylish is the UI.&lt;/p&gt;

&lt;p&gt;Keep in mind that the majority of weather apps access weather data via an API. We'll employ the most well-known and widely used API, OpenWeatherMap.&lt;/p&gt;

&lt;p&gt;Check out this YouTube video that goes into great detail about the functionality and code of the weather app. As usual, there are three files: main.js, main.css, and index.html. It is more convenient to maintain different files even though all the code can be contained in a single file (HTML).&lt;/p&gt;

&lt;p&gt;Source Code : &lt;a href="https://www.backlinkss.link/2023/01/10-best-javascript-projects-for-beginners.html" rel="noopener noreferrer"&gt;Click On Me&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  5. JavaScript Music Events
&lt;/h2&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%2Fxwwb5fyy8u9azknhqcxk.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%2Fxwwb5fyy8u9azknhqcxk.png" alt="Image description" width="800" height="406"&gt;&lt;/a&gt;&lt;br&gt;
You will learn about event listeners that respond to keyboard events in this section. For instance, pressing the "S" key will cause a certain occurrence to occur. Each will have a unique code and course of action.&lt;/p&gt;

&lt;p&gt;We will also learn how to add and play audio files in addition to event listeners. Because JavaScript is the main focus here, you'll see that we've added some very simple CSS. For the application to function properly, you will need to import your own sounds and backdrop images.&lt;/p&gt;

&lt;p&gt;Source Code : &lt;a href="https://www.backlinkss.link/2023/01/10-best-javascript-projects-for-beginners.html" rel="noopener noreferrer"&gt;Click On Me&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  6. JavaScript Form Validation
&lt;/h2&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%2Ft3yyz4o45j62bu09nu8q.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%2Ft3yyz4o45j62bu09nu8q.png" alt="Image description" width="800" height="406"&gt;&lt;/a&gt;&lt;br&gt;
Many websites employ form validation as a handy feature for client-side user information validation, including card and address details. The user can enter a number, leave the field blank, or type only one letter in a mandatory input field, for instance, if the field's name is required. JS has the ability to verify this data.&lt;/p&gt;

&lt;p&gt;The project that follows entails basic form validation. Of course, HTML components will also be required for the project. We merely included the bare minimum of HTML components, with no significant styling.&lt;/p&gt;

&lt;p&gt;Here is the entire code for a straightforward form with fundamental validations:  &lt;/p&gt;

&lt;p&gt;Source Code : &lt;a href="https://www.backlinkss.link/2023/01/10-best-javascript-projects-for-beginners.html" rel="noopener noreferrer"&gt;Click On Me&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  7. JavaScript Photo Details Display
&lt;/h2&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%2F168bk4c2a91s5nm349kj.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%2F168bk4c2a91s5nm349kj.png" alt="Image description" width="800" height="406"&gt;&lt;/a&gt;&lt;br&gt;
Here, we'll put some pictures on a website. More information will show up as the viewer hovers over the photographs. You can utilise the photographs you already have or download new ones from anywhere.&lt;/p&gt;

&lt;p&gt;Once more, we have combined JS with simple HTML and CSS. The majority of the labour is done by the latter. Through this project, you will gain knowledge of how mouse hover (over and out) events operate.&lt;/p&gt;

&lt;p&gt;Try this W3Schools slideshow project to make it more challenging. The graphics will change when the user moves their mouse over them if you replace the onClick events with onmousehover and onmouseout events. &lt;/p&gt;

&lt;p&gt;Source Code : &lt;a href="https://www.backlinkss.link/2023/01/10-best-javascript-projects-for-beginners.html" rel="noopener noreferrer"&gt;Click On Me&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Build an Interactive Landing Page
&lt;/h2&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%2Ffzgw2odunulea6z9tb3y.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%2Ffzgw2odunulea6z9tb3y.png" alt="Image description" width="800" height="406"&gt;&lt;/a&gt;&lt;br&gt;
This project entails creating a dynamic landing page that displays an appropriate image and greeting depending on the time of day while storing your name and typed text in local storage. You may learn more about the JS components of this project by watching this YouTube video. &lt;/p&gt;

&lt;p&gt;Source Code : &lt;a href="https://www.backlinkss.link/2023/01/10-best-javascript-projects-for-beginners.html" rel="noopener noreferrer"&gt;Click On Me&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Real-time Chat Application
&lt;/h2&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%2Fs3sba40c18oa5cqjeluf.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%2Fs3sba40c18oa5cqjeluf.png" alt="Image description" width="800" height="406"&gt;&lt;/a&gt;&lt;br&gt;
Making chat applications is comparatively easy, and JavaScript may be used to build one from scratch. This project is a little frightening because it uses both React and Node.js. But it's a useful method to get your hands dirty and gain experience with these priceless equipment.&lt;/p&gt;

&lt;p&gt;On GitHub, you can see the source code here.&lt;/p&gt;

&lt;p&gt;Source Code : &lt;a href="https://www.backlinkss.link/2023/01/10-best-javascript-projects-for-beginners.html" rel="noopener noreferrer"&gt;Click On Me&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  10. JavaScript Browser Code Editor
&lt;/h2&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%2Fzg0p2yp6y8mme3xl3tl5.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%2Fzg0p2yp6y8mme3xl3tl5.png" alt="Image description" width="800" height="406"&gt;&lt;/a&gt;&lt;br&gt;
Although there are many JS code editors available, having the option to make your own is always wonderful. This project is about building an in-browser code editor using the JS language. It uses various practical JS techniques and even has syntax highlighting!&lt;/p&gt;

&lt;p&gt;This project's source code may be found here.&lt;/p&gt;

&lt;p&gt;Source Code : &lt;a href="https://www.backlinkss.link/2023/01/10-best-javascript-projects-for-beginners.html" rel="noopener noreferrer"&gt;Click On Me&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Create JavaScript projects right now!
&lt;/h2&gt;

&lt;p&gt;Only 15 of the many cool JavaScript projects have been covered. However, these JavaScript example projects can add a tonne of value to your portfolio and cover nearly every essential JavaScript idea.&lt;/p&gt;

&lt;p&gt;Do you want to know more about JavaScript? With the help of our HTML projects, broaden your understanding of how it interacts with HTML. And after you gain assurance?&lt;/p&gt;




&lt;p&gt;👉 For More Details Visit Here : [&lt;a href="https://www.backlinkss.link/2023/01/10-best-javascript-projects-for-beginners.html" rel="noopener noreferrer"&gt;BackLinks&lt;/a&gt;]&lt;/p&gt;

</description>
      <category>emptystring</category>
    </item>
    <item>
      <title>Python CheatSheet</title>
      <dc:creator>Madelyn Mathew</dc:creator>
      <pubDate>Mon, 02 Jan 2023 12:42:01 +0000</pubDate>
      <link>https://dev.to/backlinkss/python-cheatsheet-5bhn</link>
      <guid>https://dev.to/backlinkss/python-cheatsheet-5bhn</guid>
      <description>&lt;p&gt;Basics&lt;/p&gt;

&lt;p&gt;Basic syntax from the python programming language&lt;/p&gt;

&lt;h2&gt;
  
  
  Showing Output To User
&lt;/h2&gt;

&lt;p&gt;The print function is used to display or print output as follows&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print("Content that you wanna print on screen")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;we can display the content present in object using prit function as follows:-&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var1 = "Madelyn"
print("Hi my name is: ",var1)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Taking Input From the User
&lt;/h2&gt;

&lt;p&gt;The input function is used to take input as string or character from the user as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var1 = input("Enter your name: ")
print("My name is: ", var1)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To take input in form of other datatypes we need to typecaste them as follows:-&lt;/p&gt;

&lt;p&gt;To take input as an integer:-&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var1=int(input("enter the integer value"))
print(var1)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To take input as an float:-&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var1=float(input("enter the float value"))
print(var1)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  range Function
&lt;/h2&gt;

&lt;p&gt;range function returns a sequence of numbers, eg, numbers starting from 0 to n-1 for range(0, n)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;range(int_start_value,int_stop_value,int_step_value)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here the start value and step value are by default 1 if not mentioned by the programmer. but int_stop_value is the compulsory parameter in range function&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;Display all even numbers between 1 to 100

for i in range(0,101,2):
       print(i)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Comments
&lt;/h2&gt;

&lt;p&gt;Comments are used to make the code more understandable for programmers, and they are not executed by compiler or interpreter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Single line comment
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# This is a single line comment
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Multi-line comment
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;'''This is a
multi-line
comment'''
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Escape Sequence
&lt;/h2&gt;

&lt;p&gt;An escape sequence is a sequence of characters; it doesn't represent itself (but is translated into another character) when used inside string literal or character. Some of the escape sequence characters are as follows:&lt;/p&gt;

&lt;h2&gt;
  
  
  Newline
&lt;/h2&gt;

&lt;p&gt;Newline Character&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print("\n")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Backslash
&lt;/h2&gt;

&lt;p&gt;It adds a backslash&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print("\\")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Single Quote
&lt;/h2&gt;

&lt;p&gt;It adds a single quotation mark&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print("\'")

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  Tab
&lt;/h2&gt;

&lt;p&gt;It gives a tab space&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print("\t")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Backspace
&lt;/h2&gt;

&lt;p&gt;It adds a backspace&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print("\b")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Octal value
&lt;/h2&gt;

&lt;p&gt;It represents the value of an octal number&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print("\ooo")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Hex value
&lt;/h2&gt;

&lt;p&gt;It represents the value of a hex number&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;print("\xhh")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Carriage Return
&lt;/h2&gt;

&lt;p&gt;Carriage return or \r will just work as you have shifted your cursor to the beginning of the string or line.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pint("\r")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Strings
&lt;/h2&gt;

&lt;p&gt;Python string is a sequence of characters, and each character can be individually accessed using its index.&lt;/p&gt;

&lt;h2&gt;
  
  
  String
&lt;/h2&gt;

&lt;p&gt;You can create Strings by enclosing text in both forms of quotes - single quotes or double quotes.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;variable_name = "String Data"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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;str="Shruti"
print("string is ",str)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Indexing
&lt;/h2&gt;

&lt;p&gt;The position of every character placed in the string starts from 0th position ans step by step it ends at length-1 position&lt;/p&gt;

&lt;h2&gt;
  
  
  Slicing
&lt;/h2&gt;

&lt;p&gt;Slicing refers to obtaining a sub-string from the given string. The following code will include index 1, 2, 3, and 4 for the variable named var_name&lt;/p&gt;

&lt;p&gt;Slicing of the string can be obtained by 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;string_var[int_start_value:int_stop_value:int_step_value]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var_name[1 : 5]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;here start and step value are considered 0 and 1 respectively if not mentioned by the programmmer&lt;/p&gt;

&lt;h2&gt;
  
  
  isalnum() method
&lt;/h2&gt;

&lt;p&gt;Returns True if all the characters in the string are alphanumeric, else False&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string_variable.isalnum()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  isalpha() method
&lt;/h2&gt;

&lt;p&gt;Returns True if all the characters in the string are alphabets&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string_variable.isalpha()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  isdecimal() method
&lt;/h2&gt;

&lt;p&gt;Returns True if all the characters in the string are decimals&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string_variable.isdecimal()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  isdigit() method
&lt;/h2&gt;

&lt;p&gt;Returns True if all the characters in the string are digits&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string_variable.isdigit()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  islower() method
&lt;/h2&gt;

&lt;p&gt;Returns True if all characters in the string are lower case&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string_variable.islower()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  isspace() method
&lt;/h2&gt;

&lt;p&gt;Returns True if all characters in the string are whitespaces&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string_variable.isspace()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  isupper() method
&lt;/h2&gt;

&lt;p&gt;Returns True if all characters in the string are upper case&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string_variable.isupper()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  lower() method
&lt;/h2&gt;

&lt;p&gt;Converts a string into lower case equivalent&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string_variable.lower()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  upper() method
&lt;/h2&gt;

&lt;p&gt;Converts a string into upper case equivalent&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string_variable.upper()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  strip() method
&lt;/h2&gt;

&lt;p&gt;It removes leading and trailing spaces in the string&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;string_variable.strip()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  List
&lt;/h2&gt;

&lt;p&gt;A List in Python represents a list of comma-separated values of any data type between square brackets.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var_name = [element1, element2, ...]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These elements can be of different datatypes&lt;/p&gt;

&lt;h2&gt;
  
  
  Indexing
&lt;/h2&gt;

&lt;p&gt;The position of every elements placed in the string starts from 0th position ans step by step it ends at length-1 position&lt;/p&gt;

&lt;p&gt;List is ordered,indexed,mutable and most flexible and dynamic collection of elements in python.&lt;/p&gt;

&lt;h2&gt;
  
  
  Empty List
&lt;/h2&gt;

&lt;p&gt;This method allows you to create an empty list&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;my_list = []
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  index method
&lt;/h2&gt;

&lt;p&gt;Returns the index of the first element with the specified value&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list.index(element)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  append method
&lt;/h2&gt;

&lt;p&gt;Adds an element at the end of the list&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list.append(element)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  extend method
&lt;/h2&gt;

&lt;p&gt;Add the elements of a given list (or any iterable) to the end of the current list&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list.extend(iterable)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  insert method
&lt;/h2&gt;

&lt;p&gt;Adds an element at the specified position&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list.insert(position, element)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  pop method
&lt;/h2&gt;

&lt;p&gt;Removes the element at the specified position and returns it&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list.pop(position)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  remove method
&lt;/h2&gt;

&lt;p&gt;The remove() method removes the first occurrence of a given item from the list&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list.remove(element)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  clear method
&lt;/h2&gt;

&lt;p&gt;Removes all the elements from the list&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list.clear()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  count method
&lt;/h2&gt;

&lt;p&gt;Returns the number of elements with the specified value&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list.count(value)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  reverse method
&lt;/h2&gt;

&lt;p&gt;Reverses the order of the list&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list.reverse()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  sort method
&lt;/h2&gt;

&lt;p&gt;Sorts the list&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list.sort(reverse=True|False)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Tuples
&lt;/h2&gt;

&lt;p&gt;Tuples are represented as comma-separated values of any data type within parentheses.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tuple Creation
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;variable_name = (element1, element2, ...)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These elements can be of different datatypes&lt;/p&gt;

&lt;h2&gt;
  
  
  Indexing
&lt;/h2&gt;

&lt;p&gt;The position of every elements placed in the string starts from 0th position ans step by step it ends at length-1 position&lt;/p&gt;

&lt;p&gt;Tuples are ordered,indexing,immutable and most secured collection of elements&lt;/p&gt;

&lt;p&gt;Lets talk about some of the tuple methods:&lt;/p&gt;

&lt;h2&gt;
  
  
  count method
&lt;/h2&gt;

&lt;p&gt;It returns the number of times a specified value occurs in a tuple&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;tuple.count(value)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  index method
&lt;/h2&gt;

&lt;p&gt;It searches the tuple for a specified value and returns the position.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;tuple.index(value)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Sets
&lt;/h2&gt;

&lt;p&gt;A set is a collection of multiple values which is both unordered and unindexed. It is written in curly brackets.&lt;/p&gt;

&lt;h2&gt;
  
  
  Set Creation: Way 1
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var_name = {element1, element2, ...}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Set Creation: Way 2
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var_name = set([element1, element2, ...])
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Set is unordered,immutable,non-indexed type of collection.Duplicate elements are not allowed in sets.&lt;/p&gt;

&lt;h2&gt;
  
  
  Set Methods
&lt;/h2&gt;

&lt;p&gt;Lets talk about some of the methods of sets:&lt;/p&gt;

&lt;h2&gt;
  
  
  add() method
&lt;/h2&gt;

&lt;p&gt;Adds an element to a set&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;set.add(element)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  clear() method
&lt;/h2&gt;

&lt;p&gt;Remove all elements from a set&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;set.clear()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  discard() method
&lt;/h2&gt;

&lt;p&gt;Removes the specified item from the set&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;set.discard(value)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  intersection() method
&lt;/h2&gt;

&lt;p&gt;Returns intersection of two or more sets&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;set.intersection(set1, set2 ... etc)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  issubset() method
&lt;/h2&gt;

&lt;p&gt;Checks if a set is a subset of another set&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;set.issubset(set)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  pop() method
&lt;/h2&gt;

&lt;p&gt;Removes an element from the set&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;set.pop()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  remove() method
&lt;/h2&gt;

&lt;p&gt;Removes the specified element from the set&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;set.remove(item)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  union() method
&lt;/h2&gt;

&lt;p&gt;Returns the union of two or more sets&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;set.union(set1, set2...)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Dictionaries
&lt;/h2&gt;

&lt;p&gt;The dictionary is an unordered set of comma-separated key:value pairs, within {}, with the requirement that within a dictionary, no two keys can be the same.&lt;/p&gt;

&lt;h2&gt;
  
  
  Dictionary
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;dictionary-name&amp;gt; = {&amp;lt;key&amp;gt;: value, &amp;lt;key&amp;gt;: value ...}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Dictionary is ordered and mutable collection of elements.Dictionary allows duplicate values but not duplicate keys.&lt;/p&gt;

&lt;h2&gt;
  
  
  Empty Dictionary
&lt;/h2&gt;

&lt;p&gt;By putting two curly braces, you can create a blank dictionary&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mydict={}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Adding Element to a dictionary
&lt;/h2&gt;

&lt;p&gt;By this method, one can add new elements to the dictionary&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;dictionary&amp;gt;[&amp;lt;key&amp;gt;] = &amp;lt;value&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Updating Element in a dictionary
&lt;/h2&gt;

&lt;p&gt;If a specified key already exists, then its value will get updated&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;dictionary&amp;gt;[&amp;lt;key&amp;gt;] = &amp;lt;value&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Deleting an element from a dictionary
&lt;/h2&gt;

&lt;p&gt;del keyword is used to delete a specified key:value pair from the dictionary as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;del &amp;lt;dictionary&amp;gt;[&amp;lt;key&amp;gt;]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Dictionary Functions &amp;amp; Methods
&lt;/h2&gt;

&lt;p&gt;Below are some of the methods of dictionaries&lt;/p&gt;

&lt;h2&gt;
  
  
  len() method
&lt;/h2&gt;

&lt;p&gt;It returns the length of the dictionary, i.e., the count of elements (key: value pairs) in the dictionary&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;len(dictionary)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  clear() method
&lt;/h2&gt;

&lt;p&gt;Removes all the elements from the dictionary&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dictionary.clear()

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  get() method
&lt;/h2&gt;

&lt;p&gt;Returns the value of the specified key&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dictionary.get(keyname)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  items() method
&lt;/h2&gt;

&lt;p&gt;Returns a list containing a tuple for each key-value pair&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dictionary.items()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  keys() method
&lt;/h2&gt;

&lt;p&gt;Returns a list containing the dictionary's keys&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dictionary.keys()

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  values() method
&lt;/h2&gt;

&lt;p&gt;Returns a list of all the values in the dictionary&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dictionary.values()

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  update() method
&lt;/h2&gt;

&lt;p&gt;Updates the dictionary with the specified key-value pairs&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dictionary.update(iterable)

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  Indentation
&lt;/h2&gt;

&lt;p&gt;In Python, indentation means the code is written with some spaces or tabs into many different blocks of code to indent it so that the interpreter can easily execute the Python code.&lt;/p&gt;

&lt;p&gt;Indentation is applied on conditional statements and loop control statements. Indent specifies the block of code that is to be executed depending on the conditions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conditional Statements
&lt;/h2&gt;

&lt;p&gt;The if, elif and else statements are the conditional statements in Python, and these implement selection constructs (decision constructs).&lt;/p&gt;

&lt;h2&gt;
  
  
  if Statement
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if(conditional expression):
    statements
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  if-else Statement
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if(conditional expression):
    statements
else:
    statements
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  if-elif Statement
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if (conditional expression):
    statements
elif (conditional expression):
    statements
else:
    statements
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Nested if-else Statement
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if (conditional expression):
    if (conditional expression):
        statements
    else:
        statements
else:
    statements
example-
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;a=15
b=20
c=12
if(a&amp;gt;b and a&amp;gt;c):
      print(a,"is greatest")
elif(b&amp;gt;c and b&amp;gt;a):
      print(b," is greatest")
else:
    print(c,"is greatest")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Loops in Python
&lt;/h2&gt;

&lt;p&gt;A loop or iteration statement repeatedly executes a statement, known as the loop body, until the controlling expression is false (0).&lt;/p&gt;

&lt;h2&gt;
  
  
  For Loop
&lt;/h2&gt;

&lt;p&gt;The for loop of Python is designed to process the items of any sequence, such as a list or a string, one by one.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for &amp;lt;variable&amp;gt; in &amp;lt;sequence&amp;gt;:
    statements_to_repeat
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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;for i in range(1,101,1):
           print(i)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  While Loop
&lt;/h2&gt;

&lt;p&gt;A while loop is a conditional loop that will repeat the instructions within itself as long as a conditional remains true.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;while &amp;lt;logical-expression&amp;gt;:
    loop-body
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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;i=1
while(i&amp;lt;=100):
        print(i)
        i=i+1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Break Statement
&lt;/h2&gt;

&lt;p&gt;The break statement enables a program to skip over a part of the code. A break statement terminates the very loop it lies within.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for &amp;lt;var&amp;gt; in &amp;lt;sequence&amp;gt;:
    statement1
    if &amp;lt;condition&amp;gt;:
        break
    statement2
statement_after_loop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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;for i in range(1,101,1):
    print(i ,end=" ")
    if(i==50):
        break
    else:
        print("Mississippi")
print("Thank you")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Continue Statement
&lt;/h2&gt;

&lt;p&gt;The continue statement skips the rest of the loop statements and causes the next iteration to occur.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for &amp;lt;var&amp;gt; in &amp;lt;sequence&amp;gt;:
    statement1
    if &amp;lt;condition&amp;gt; :
        continue
    statement2
    statement3
    statement4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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;for i in [2,3,4,6,8,0]:
    if (i%2!=0):
        continue
    print(i
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;)&lt;/p&gt;

&lt;h2&gt;
  
  
  Functions
&lt;/h2&gt;

&lt;p&gt;A function is a block of code that performs a specific task. You can pass parameters into a function. It helps us to make our code more organized and manageable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Function Definition
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def my_function():
          #statements
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;def keyword is used before defining the function. &lt;/p&gt;

&lt;h2&gt;
  
  
  Function Call
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;my_function()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Whenever we need that block of code in our program simply call that function name whenever neeeded. If parameters are passed during defing the function we have to pass the parameters while calling that function&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;def add():       #function defination
        a=10
        b=20
       print(a+b)
add()            #function call
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Return statement in Python function
&lt;/h2&gt;

&lt;p&gt;The function return statement return the specified value or data item to the caller.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;return [value/expression]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Arguments in python function
&lt;/h2&gt;

&lt;p&gt;Arguments are the values passed inside the parenthesis of the function while defining as well as while calling.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def my_function(arg1,arg2,arg3....argn):
          #statements
my_function(arg1,arg2,arg3....argn)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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;def add(a,b):
      return a+b
x=add(7,8)
print(x)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  File Handling
&lt;/h2&gt;

&lt;p&gt;File handling refers to reading or writing data from files. Python provides some functions that allow us to manipulate data in the files.&lt;/p&gt;

&lt;h2&gt;
  
  
  open() function
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var_name = open("file name", " mode")
modes-
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;r - to read the content from file&lt;/li&gt;
&lt;li&gt;w - to write the content into file&lt;/li&gt;
&lt;li&gt;a - to append the existing content into file&lt;/li&gt;
&lt;li&gt;r+:  To read and write data into the file. The previous data in the file will be overridden.&lt;/li&gt;
&lt;li&gt;w+: To write and read data. It will override existing data.&lt;/li&gt;
&lt;li&gt;a+: To append and read data from the file. It won’t override existing data.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  close() function
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var_name.close()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  read () function
&lt;/h2&gt;

&lt;p&gt;The read functions contains different methods, read(),readline() and readlines()&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;read() #return one big string
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It returns a list of lines&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;readlines() #returns a list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It returns one line at a time&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;readline #returns one line at a time
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  write function
&lt;/h2&gt;

&lt;p&gt;This function writes a sequence of strings to the file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;write() #Used to write a fixed sequence of characters to a file
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It is used to write a list of strings&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;writelines()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Exception Handling
&lt;/h2&gt;

&lt;p&gt;An exception is an unusual condition that results in an interruption in the flow of a program.&lt;/p&gt;

&lt;h2&gt;
  
  
  try and except
&lt;/h2&gt;

&lt;p&gt;A basic try-catch block in python. When the try block throws an error, the control goes to the except block.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;try:
    [Statement body block]
    raise Exception()
except Exceptionname:
    [Error processing block]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  else
&lt;/h2&gt;

&lt;p&gt;The else block is executed if the try block have not raise any exception and code had been running successfully&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;try:
     #statements
except:
     #statements
else:
      #statements
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  finally
&lt;/h2&gt;

&lt;p&gt;Finally block will be executed even if try block of code has been running successsfully or except block of code is been executed. finally block of code will be executed compulsory&lt;/p&gt;

&lt;h2&gt;
  
  
  Object Oriented Programming (OOPS)
&lt;/h2&gt;

&lt;p&gt;It is a programming approach that primarily focuses on using objects and classes. The objects can be any real-world entities.&lt;/p&gt;

&lt;h2&gt;
  
  
  class
&lt;/h2&gt;

&lt;p&gt;The syntax for writing a class in python&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class class_name:
    pass #statements
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Creating an object
&lt;/h2&gt;

&lt;p&gt;Instantiating an object can be done as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;object-name&amp;gt; = &amp;lt;class-name&amp;gt;(&amp;lt;arguments&amp;gt;)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  self parameter
&lt;/h2&gt;

&lt;p&gt;The self parameter is the first parameter of any function present in the class. It can be of different name but this parameter is must while defining any function into class as it is used to access other data members of the class&lt;/p&gt;

&lt;h2&gt;
  
  
  class with a constructor
&lt;/h2&gt;

&lt;p&gt;Constructor is the special function of the class which is used to initialize the objects. The syntax for writing a class with the constructor in python&lt;br&gt;
&lt;/p&gt;

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

    # Default constructor
    def __init__(self):
        self.name = "Backlinks"

    # A method for printing data members
    def print_me(self):
        print(self.name)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Inheritance in python
&lt;/h2&gt;

&lt;p&gt;By using inheritance, we can create a class which uses all the properties and behavior of another class. The new class is known as a derived class or child class, and the one whose properties are acquired is known as a base class or parent class.&lt;/p&gt;

&lt;p&gt;It provides the re-usability of the code.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class Base_class:
       pass
class derived_class(Base_class):
        pass
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Types of inheritance-
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Single inheritance&lt;/li&gt;
&lt;li&gt;Multiple inheritance&lt;/li&gt;
&lt;li&gt;Multilevel inheritance&lt;/li&gt;
&lt;li&gt;Hierarchical inheritance&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  filter function
&lt;/h2&gt;

&lt;p&gt;The filter function allows you to process an iterable and extract those items that satisfy a given condition&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;filter(function, iterable)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  issubclass function
&lt;/h2&gt;

&lt;p&gt;Used to find whether a class is a subclass of a given class or not as follows&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;issubclass(obj, classinfo) # returns true if obj is a subclass of classinfo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Iterators and Generators
&lt;/h2&gt;

&lt;p&gt;Here are some of the advanced topics of the Python programming language like iterators and generators&lt;/p&gt;

&lt;h2&gt;
  
  
  Iterator
&lt;/h2&gt;

&lt;p&gt;Used to create an iterator over an iterable&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;iter_list = iter(['Madelyn', 'Aexl', 'Jack']) 
print(next(iter_list)) 
print(next(iter_list)) 
print(next(iter_list))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Generator
&lt;/h2&gt;

&lt;p&gt;Used to generate values on the fly&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# A simple generator function
def my_gen():
    n = 1
    print('This is printed first')
    # Generator function contains yield statements
    yield n
    n += 1
    print('This is printed second')
    yield n
    n += 1
    print('This is printed at last')
    yield n
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Decorators
&lt;/h2&gt;

&lt;p&gt;Decorators are used to modifying the behavior of a function or a class. They are usually called before the definition of a function you want to decorate.&lt;/p&gt;

&lt;h2&gt;
  
  
  property Decorator (getter)
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@property
def name(self):
    return self.__name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  setter Decorator
&lt;/h2&gt;

&lt;p&gt;It is used to set the property 'name'&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@name.setter
def name(self, value):
    self.__name=value

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  deleter Decorator
&lt;/h2&gt;

&lt;p&gt;It is used to delete the property 'name'&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@name.deleter #property-name.deleter decorator
def name(self, value):
    print('Deleting..')
    del self.__name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;👉 For More Details Visit Here : &lt;a href="https://www.backlinkss.link/" rel="noopener noreferrer"&gt;BackLinks&lt;/a&gt;&lt;/p&gt;

</description>
      <category>welcome</category>
      <category>learning</category>
      <category>networking</category>
    </item>
    <item>
      <title>JavaScript Cheatsheet</title>
      <dc:creator>Madelyn Mathew</dc:creator>
      <pubDate>Thu, 29 Dec 2022 04:58:12 +0000</pubDate>
      <link>https://dev.to/backlinkss/javascript-cheatsheet-32eg</link>
      <guid>https://dev.to/backlinkss/javascript-cheatsheet-32eg</guid>
      <description>&lt;h2&gt;
  
  
  JavaScript Basics
&lt;/h2&gt;

&lt;p&gt;Set of JavaScript basic syntax to add, execute and write basic programming paradigms in Javascript &lt;/p&gt;

&lt;h2&gt;
  
  
  On Page Script
&lt;/h2&gt;

&lt;p&gt;Adding internal JavaScript to HTML&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script type="text/javascript"&amp;gt; //JS code goes here &amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  External JS File
&lt;/h2&gt;

&lt;p&gt;Adding external JavaScript to HTML&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;script src="filename.js"&amp;gt;&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Functions
&lt;/h2&gt;

&lt;p&gt;JavaScript Function syntax&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function nameOfFunction() {
    // function body 
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  DOM Element
&lt;/h2&gt;

&lt;p&gt;Changing content of a DOM Element&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;document.getElementById("elementID").innerHTML = "Hello World!";
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Output
&lt;/h2&gt;

&lt;p&gt;This will print the value of a in JavaScript console&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(a);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Conditional Statements
&lt;/h2&gt;

&lt;p&gt;Conditional statements are used to perform operations based on some conditions.&lt;/p&gt;

&lt;h2&gt;
  
  
  If Statement
&lt;/h2&gt;

&lt;p&gt;The block of code to be executed, when the condition specified is true.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if (condition) {
    // block of code to be executed if the condition is true
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  If-else Statement
&lt;/h2&gt;

&lt;p&gt;If the condition for the if block is false, then the else block will be executed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if (condition) {
    // block of code to be executed if the condition is true
} else {
    // block of code to be executed if the condition is false
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Else-if Statement
&lt;/h2&gt;

&lt;p&gt;A basic if-else ladder&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if (condition1) {
    // block of code to be executed if condition1 is true
} else if (condition2) {
    // block of code to be executed if the condition1 is false and condition2 is true
} else {
    // block of code to be executed if the condition1 is false and condition2 is false
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Switch Statement
&lt;/h2&gt;

&lt;p&gt;Switch case statement in JavaScript&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;switch (expression) {
    case x:
        // code block
        break;
    case y:
        // code block
        break;
    default:
        // code block
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Iterative Statements (Loops)
&lt;/h2&gt;

&lt;p&gt;Iterative statement facilitates programmer to execute any block of code lines repeatedly and can be controlled as per conditions added by the programmer.&lt;/p&gt;

&lt;h2&gt;
  
  
  For Loop
&lt;/h2&gt;

&lt;p&gt;For loop syntax in javascript&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for (initialization; condition; incrementation;) {
    // code block to be executed
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&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;for (let i = 0; i &amp;lt; 5; i++) {
    text += "Iteration number: " + i + "&amp;lt;br&amp;gt;";
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  While Loop
&lt;/h2&gt;

&lt;p&gt;Runs the code till the specified condition is true&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;while (condition) {
    // code block to be executed
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Do While Loop
&lt;/h2&gt;

&lt;p&gt;A do while loop is executed at least once despite the condition being true or false&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;do {
    // run this code in block
    i++;
} while (condition);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Strings
&lt;/h2&gt;

&lt;p&gt;The string is a sequence of characters that is used for storing and managing text data.&lt;/p&gt;

&lt;h2&gt;
  
  
  charAt method
&lt;/h2&gt;

&lt;p&gt;Returns the character from the specified index.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;str.charAt(3)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  concat method
&lt;/h2&gt;

&lt;p&gt;Joins two or more strings together.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;str1.concat(str2)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  index of method
&lt;/h2&gt;

&lt;p&gt;Returns the index of the first occurrence of the specified character from the string else -1 if not found.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;str.indexOf('substr')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  match method
&lt;/h2&gt;

&lt;p&gt;Searches a string for a match against a regular expression.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;str.match(/(chapter \d+(\.\d)*)/i;)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  replace method
&lt;/h2&gt;

&lt;p&gt;Searches a string for a match against a specified string or char and returns a new string by replacing the specified values.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;str1.replace(str2)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  search method
&lt;/h2&gt;

&lt;p&gt;Searches a string against a specified value.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;str.search('term')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  split method
&lt;/h2&gt;

&lt;p&gt;Splits a string into an array consisting of substrings.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;str.split('\n')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  substring method
&lt;/h2&gt;

&lt;p&gt;Returns a substring of a string containing characters from the specified indices.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;str.substring(0,5)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Arrays
&lt;/h2&gt;

&lt;p&gt;The array is a collection of data items of the same type. In simple terms, it is a variable that contains multiple values.&lt;/p&gt;

&lt;h2&gt;
  
  
  variable
&lt;/h2&gt;

&lt;p&gt;Containers for storing data.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var fruit = ["element1", "element2", "element3"];
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  concat method
&lt;/h2&gt;

&lt;p&gt;Joins two or more arrays together.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;concat()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  indexOf method
&lt;/h2&gt;

&lt;p&gt;Returns the index of the specified item from the array.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;indexOf()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  join method
&lt;/h2&gt;

&lt;p&gt;Converts the array elements to a string.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;join()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  pop method
&lt;/h2&gt;

&lt;p&gt;Deletes the last element of the array.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pop()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  reverse method
&lt;/h2&gt;

&lt;p&gt;This method reverses the order of the array elements.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;reverse()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  sort method
&lt;/h2&gt;

&lt;p&gt;Sorts the array elements in a specified manner.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sort()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  toString method
&lt;/h2&gt;

&lt;p&gt;Converts the array elements to a string.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;toString()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  valueOf method
&lt;/h2&gt;

&lt;p&gt;returns the relevant Number Object holding the value of the argument passed&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;valueOf()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Number Methods
&lt;/h2&gt;

&lt;p&gt;JS math and number objects provide several constant and methods to perform mathematical operations.&lt;/p&gt;

&lt;h2&gt;
  
  
  toExponential method
&lt;/h2&gt;

&lt;p&gt;Converts a number to its exponential form.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;toExponential()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  toPrecision method
&lt;/h2&gt;

&lt;p&gt;Formats a number into a specified length.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;toPrecision()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  toString method
&lt;/h2&gt;

&lt;p&gt;Converts an object to a string&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;toString()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  valueOf method
&lt;/h2&gt;

&lt;p&gt;Returns the primitive value of a number.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;valueOf()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Maths Methods
&lt;/h2&gt;

&lt;h2&gt;
  
  
  ceil method
&lt;/h2&gt;

&lt;p&gt;Rounds a number upwards to the nearest integer, and returns the result&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ceil(x)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  exp method
&lt;/h2&gt;

&lt;p&gt;Returns the value of E^x.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;exp(x)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  log method
&lt;/h2&gt;

&lt;p&gt;Returns the logarithmic value of x.&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  pow method
&lt;/h2&gt;

&lt;p&gt;Returns the value of x to the power y.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;pow(x,y)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  random method
&lt;/h2&gt;

&lt;p&gt;Returns a random number between 0 and 1.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;random()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  sqrt method
&lt;/h2&gt;

&lt;p&gt;Returns the square root of a number x&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sqrt(x)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;Date object is used to get the year, month and day. It has methods to get and set day, month, year, hour, minute, and seconds.&lt;/p&gt;

&lt;p&gt;Pulling Date from the Date object&lt;br&gt;
Returns the date from the date object&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;getDate()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pulling Day from the Date object&lt;br&gt;
Returns the day from the date object&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;getDay()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Pulling Hours from the Date object&lt;br&gt;
Returns the hours from the date object&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;getHours()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Pulling Minutes from the Date object&lt;br&gt;
Returns the minutes from the date object&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;getMinutes()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pulling Seconds from the Date object&lt;br&gt;
Returns the seconds from the date object&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;getSeconds()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pulling Time from the Date object&lt;br&gt;
Returns the time from the date object&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;getTime()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Mouse Events
&lt;/h2&gt;

&lt;p&gt;Any change in the state of an object is referred to as an Event. With the help of JS, you can handle events, i.e., how any specific HTML tag will work when the user does something.&lt;/p&gt;

&lt;h2&gt;
  
  
  click
&lt;/h2&gt;

&lt;p&gt;Fired when an element is clicked&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;element.addEventListener('click', () =&amp;gt; {
    // Code to be executed when the event is fired
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  oncontextmenu
&lt;/h2&gt;

&lt;p&gt;Fired when an element is right-clicked&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;element.addEventListener('contextmenu', () =&amp;gt; {
    // Code to be executed when the event is fired
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  dblclick
&lt;/h2&gt;

&lt;p&gt;Fired when an element is double-clicked&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;element.addEventListener('dblclick', () =&amp;gt; {
    // Code to be executed when the event is fired
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  mouseenter
&lt;/h2&gt;

&lt;p&gt;Fired when an element is entered by the mouse arrow&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;element.addEventListener('mouseenter', () =&amp;gt; {
    // Code to be executed when the event is fired
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  mouseleave
&lt;/h2&gt;

&lt;p&gt;Fired when an element is exited by the mouse arrow&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;element.addEventListener('mouseleave', () =&amp;gt; {
    // Code to be executed when the event is fired
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  mousemove
&lt;/h2&gt;

&lt;p&gt;Fired when the mouse is moved inside the element&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;element.addEventListener('mousemove', () =&amp;gt; {
    // Code to be executed when the event is fired
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Keyboard Events
&lt;/h2&gt;

&lt;p&gt;keydown&lt;br&gt;
Fired when the user is pressing a key on the keyboard&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;element.addEventListener('keydown', () =&amp;gt; {
    // Code to be executed when the event is fired
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  keypress
&lt;/h2&gt;

&lt;p&gt;Fired when the user presses the key on the keyboard&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;element.addEventListener('keypress', () =&amp;gt; {
    // Code to be executed when the event is fired
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  keyup
&lt;/h2&gt;

&lt;p&gt;Fired when the user releases a key on the keyboard&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;element.addEventListener('keyup', () =&amp;gt; {
    // Code to be executed when the event is fired
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Errors
&lt;/h2&gt;

&lt;p&gt;Errors are thrown by the compiler or interpreter whenever they find any fault in the code, and it can be of any type like syntax error, run-time error, logical error, etc. JS provides some functions to handle the errors.&lt;/p&gt;

&lt;h2&gt;
  
  
  try and catch
&lt;/h2&gt;

&lt;p&gt;Try the code block and execute catch when err is thrown&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;try {
    Block of code to try
    }
catch (err) {
    Block of code to handle errors
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Window Methods
&lt;/h2&gt;

&lt;p&gt;Methods that are available from the window object&lt;/p&gt;

&lt;h2&gt;
  
  
  alert method
&lt;/h2&gt;

&lt;p&gt;Used to alert something on the screen&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;alert()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  blur method
&lt;/h2&gt;

&lt;p&gt;The blur() method removes focus from the current window.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;blur()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  setInterval
&lt;/h2&gt;

&lt;p&gt;Keeps executing code at a certain interval&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;setInterval(() =&amp;gt; {
    // Code to be executed
}, 1000);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  setTimeout
&lt;/h2&gt;

&lt;p&gt;Executes the code after a certain interval of time&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;setTimeout(() =&amp;gt; {
    // Code to be executed
}, 1000);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  close
&lt;/h2&gt;

&lt;p&gt;The Window. close() method closes the current window&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;window.close()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  confirm
&lt;/h2&gt;

&lt;p&gt;The window.confirm() instructs the browser to display a dialog with an optional message, and to wait until the user either confirms or cancels&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;window.confirm('Are you sure?')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  open
&lt;/h2&gt;

&lt;p&gt;Opens a new window&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;window.open("https://www.codewithharry.com");
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  prompt
&lt;/h2&gt;

&lt;p&gt;Prompts the user with a text and takes a value. Second parameter is the default value&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var name = prompt("What is your name?", "Harry");
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  scrollBy
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;window.scrollBy(100, 0); // Scroll 100px to the right
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  scrollTo
&lt;/h2&gt;

&lt;p&gt;Scrolls the document to the specified coordinates.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;window.scrollTo(500, 0); // Scroll to horizontal position 500
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  clearInterval
&lt;/h2&gt;

&lt;p&gt;Clears the setInterval. var is the value returned by setInterval call&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;clearInterval(var)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  clearTimeout
&lt;/h2&gt;

&lt;p&gt;Clears the setTimeout. var is the value returned by setTimeout call&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;clearTimeout(var)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  stop
&lt;/h2&gt;

&lt;p&gt;Stops the further resource loading&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;stop()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Query/Get Elements
&lt;/h2&gt;

&lt;p&gt;The browser creates a DOM (Document Object Model) whenever a web page is loaded, and with the help of HTML DOM, one can access and modify all the elements of the HTML document.&lt;/p&gt;

&lt;h2&gt;
  
  
  querySelector
&lt;/h2&gt;

&lt;p&gt;Selector to select first matching element&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;document.querySelector('css-selectors')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  querySelectorAll
&lt;/h2&gt;

&lt;p&gt;A selector to select all matching elements&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;document.querySelectorAll('css-selectors', ...)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  getElementsByTagName
&lt;/h2&gt;

&lt;p&gt;Select elements by tag name&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;document.getElementsByTagName('element-name')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  getElementsByClassName
&lt;/h2&gt;

&lt;p&gt;Select elements by class name&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;document.getElementsByClassName('class-name')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Get Element by Id
&lt;/h2&gt;

&lt;p&gt;Select an element by its id&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;document.getElementById('id')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Creating Elements
&lt;/h2&gt;

&lt;p&gt;Create new elements in the DOM&lt;/p&gt;

&lt;h2&gt;
  
  
  createElement
&lt;/h2&gt;

&lt;p&gt;Create a new element&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;document.createElement('div')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  createTextNode
&lt;/h2&gt;

&lt;p&gt;Create a new text node&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;document.createTextNode('some text here')
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;👉 For More Details Visit Here : &lt;a href="https://www.backlinkss.link/2022/12/javascript-cheatsheet.html" rel="noopener noreferrer"&gt;BackLinks&lt;/a&gt;&lt;/p&gt;

</description>
      <category>fullstack</category>
      <category>python</category>
      <category>react</category>
      <category>postgres</category>
    </item>
    <item>
      <title>HTML Cheatsheet</title>
      <dc:creator>Madelyn Mathew</dc:creator>
      <pubDate>Wed, 28 Dec 2022 04:45:51 +0000</pubDate>
      <link>https://dev.to/backlinkss/html-cheatsheet-11pl</link>
      <guid>https://dev.to/backlinkss/html-cheatsheet-11pl</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Structure&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;This is the basic template or barebone structure of HTML.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Boilerplate&lt;/strong&gt;
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="UTF-8"&amp;gt;
    &amp;lt;title&amp;gt;Document&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;!-- Body --&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Headings
&lt;/h2&gt;

&lt;p&gt;There are six headings available in HTML, H1 is the largest among all, and H6 is the smallest.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;h1&gt; Tag
&lt;/h1&gt;
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;h1&amp;gt;Heading 1&amp;lt;/h1&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  &lt;h2&gt; Tag
&lt;/h2&gt;

&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;h2&amp;gt;Heading 2&amp;lt;/h2&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  &lt;h3&gt; Tag
&lt;/h3&gt;
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;h3&amp;gt;Heading 3&amp;lt;/h3&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  h4 Tag
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;h4&amp;gt;Heading 4&amp;lt;/h4&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  h5 Tag
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;h5&amp;gt;Heading 5&amp;lt;/h5&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  h6 Tag
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;h6&amp;gt;Heading 6&amp;lt;/h6&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Container
&lt;/h2&gt;

&lt;p&gt;Container tags are the tags that contain some data such as text, image, etc. There are several container tags in HTML.&lt;/p&gt;

&lt;h2&gt;
  
  
  div tag
&lt;/h2&gt;

&lt;p&gt;div tag or division tag is used to make blocks or divisions in the document.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div&amp;gt; This is div block &amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  span tag
&lt;/h2&gt;

&lt;p&gt;span is a container for inline content&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;span&amp;gt; This is span block &amp;lt;/span&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  p tag
&lt;/h2&gt;

&lt;p&gt;Paragraph&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;p&amp;gt; This is a paragraph &amp;lt;/p&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  pre tag
&lt;/h2&gt;

&lt;p&gt;pre tag represents pre-formatted text&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;pre&amp;gt; Hello World &amp;lt;/pre&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  code tag
&lt;/h2&gt;

&lt;p&gt;code tag is used to represent source codes&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;code&amp;gt;
import python
&amp;lt;/code&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Text Formatting
&lt;/h2&gt;

&lt;p&gt;Text formatting tags are used to format text or data of HTML documents. You can do certain things like creating italic, bold, strong text to make your document look more attractive and understandable.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;b&gt; tag
&lt;/b&gt;
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;b&amp;gt;I'm bold text&amp;lt;/b&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  &lt;strong&gt; tag
&lt;/strong&gt;
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;strong&amp;gt;I'm important text&amp;lt;/strong&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
   tag
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;i&amp;gt;I'm italic text&amp;lt;/i&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  &lt;em&gt; tag
&lt;/em&gt;
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;em&amp;gt;Emphasized text&amp;lt;/em&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
   tag

&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;sub&amp;gt;Subscript&amp;lt;/sub&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  &lt;sup&gt; tag
&lt;/sup&gt;
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;sup&amp;gt;Superscript&amp;lt;/sup&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Lists
&lt;/h2&gt;

&lt;p&gt;Lists can be either numerical, alphabetic, bullet, or other symbols. You can specify list type and list items in HTML for the clean document.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;ol&gt; tag
&lt;/ol&gt;
&lt;/h2&gt;

&lt;p&gt;Ordered list starts with &lt;/p&gt;
&lt;ol&gt; tag and each list item starts with &lt;li&gt; tag

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;ol&amp;gt;
    &amp;lt;li&amp;gt;Data 1&amp;lt;/li&amp;gt;
    &amp;lt;li&amp;gt;Data 2&amp;lt;/li&amp;gt;
    &amp;lt;li&amp;gt;Data 3&amp;lt;/li&amp;gt;
&amp;lt;/ol&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;h2&gt;
  
  
  &lt;ul&gt; tag
&lt;/ul&gt;
&lt;/h2&gt;


&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;ul&amp;gt;
    &amp;lt;li&amp;gt;Your Data&amp;lt;/li&amp;gt;
    &amp;lt;li&amp;gt;Your Data&amp;lt;/li&amp;gt;
&amp;lt;/ul&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;h2&gt;
  
  
  Media
&lt;/h2&gt;

&lt;p&gt;Media is anything that is present in digital form such as image, video, audio, etc.&lt;/p&gt;
&lt;h2&gt;
  
  
   tag
&lt;/h2&gt;

&lt;p&gt;It is used to embed sound content in the document.&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;audio controls&amp;gt;
    &amp;lt;source src="demo.mp3" type="audio/mpeg"&amp;gt;
    Your browser does not support the audio element.
&amp;lt;/audio&amp;gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;h2&gt;
  
  
  &lt;img&gt; tag
&lt;/h2&gt;

&lt;p&gt;It is used to embed or import image in a webpage.&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;img src="Source_of_image" alt="Alternate text"&amp;gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;h2&gt;
  
  
   tag

&lt;/h2&gt;

&lt;p&gt;It is used to embed video in the webpage.&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;video width="480" height="320" controls&amp;gt;
    &amp;lt;source src="demo_move.mp4" type="video/mp4"&amp;gt;
    Your browser does not support the video tag.
&amp;lt;/video&amp;gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;h2&gt;
  
  
  Table
&lt;/h2&gt;

&lt;p&gt;A table is a collection of rows and columns. It is used to represent data in tabular form.&lt;/p&gt;

&lt;h2&gt;
  
  
  Table Structure
&lt;/h2&gt;



&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;table&amp;gt;
    &amp;lt;caption&amp;gt;Demo Table&amp;lt;/caption&amp;gt;
    &amp;lt;thead&amp;gt;
        &amp;lt;tr&amp;gt;
            &amp;lt;th&amp;gt;Column1&amp;lt;/th&amp;gt;
            &amp;lt;th colspan="2"&amp;gt;Column2&amp;lt;/th&amp;gt;
        &amp;lt;/tr&amp;gt;
    &amp;lt;/thead&amp;gt;
    &amp;lt;tbody&amp;gt;
        &amp;lt;tr&amp;gt;
            &amp;lt;td&amp;gt;Data1&amp;lt;/td&amp;gt;
            &amp;lt;td&amp;gt;Data2&amp;lt;/td&amp;gt;
            &amp;lt;td&amp;gt;Data2&amp;lt;/td&amp;gt;
        &amp;lt;/tr&amp;gt;
        &amp;lt;tr&amp;gt;
            &amp;lt;td&amp;gt;Data1&amp;lt;/td&amp;gt;
            &amp;lt;td&amp;gt;Data2&amp;lt;/td&amp;gt;
            &amp;lt;td&amp;gt;Data2&amp;lt;/td&amp;gt;
        &amp;lt;/tr&amp;gt;
    &amp;lt;/tbody&amp;gt;
    &amp;lt;tfoot&amp;gt;
        &amp;lt;tr&amp;gt;
            &amp;lt;td&amp;gt;&amp;amp;nbsp;&amp;lt;/td&amp;gt;
            &amp;lt;td&amp;gt;Data&amp;lt;/td&amp;gt;
            &amp;lt;td&amp;gt;Data&amp;lt;/td&amp;gt;
        &amp;lt;/tr&amp;gt;
    &amp;lt;/tfoot&amp;gt;
&amp;lt;/table&amp;gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;p&gt;Links are clickable text that can redirect you to some other page.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;a&gt; tag
&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;a&gt; or anchor tag defines a hyperlink.&lt;br&gt;
&lt;/a&gt;&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;a href="https://www.backlinkss.link/"&amp;gt;Visit Backlinkss.link!&amp;lt;/a&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;h2&gt;
  
  
  Form
&lt;/h2&gt;
&lt;h2&gt;
  
  
  Sample Form
&lt;/h2&gt;

&lt;p&gt;Form is used to collect user's input, generally user's data is sent to server for further processing.&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;form action="/action.php" method="post"&amp;gt;
    Name: &amp;lt;input name="name" type="text" /&amp;gt; &amp;lt;br /&amp;gt;
    Age: &amp;lt;input max="90" min="1" name="age" step="1" type="number" value="18" /&amp;gt; &amp;lt;br /&amp;gt;
    &amp;lt;select name="gender"&amp;gt;
        &amp;lt;option selected="selected" value="male"&amp;gt;Male&amp;lt;/option&amp;gt;
        &amp;lt;option value="female"&amp;gt;Female&amp;lt;/option&amp;gt;
    &amp;lt;/select&amp;gt;&amp;lt;br /&amp;gt;
    &amp;lt;input checked="checked" name="newsletter" type="radio" value="daily" /&amp;gt; Daily &amp;lt;input name="newsletter" type="radio"
        value="weekly" /&amp;gt; Weekly&amp;lt;br /&amp;gt;
    &amp;lt;textarea cols="20" name="comments" rows="5"&amp;gt;Comment&amp;lt;/textarea&amp;gt;&amp;lt;br /&amp;gt;
    &amp;lt;label&amp;gt;&amp;lt;input name="terms" type="checkbox" value="tandc" /&amp;gt;Accept terms&amp;lt;/label&amp;gt; &amp;lt;br /&amp;gt;
    &amp;lt;input type="submit" value="Submit" /&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;h2&gt;
  
  
  Characters &amp;amp; Symbols
&lt;/h2&gt;

&lt;p&gt;Some symbols are not directly present on the keyboard, but there are some ways to use them in HTML documents. We can display them either by entity name, decimal, or hexadecimal value.&lt;/p&gt;

&lt;h2&gt;
  
  
  Copyright Symbol (©)
&lt;/h2&gt;



&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;amp;copy;
&lt;/code&gt;&lt;/pre&gt;



&lt;h2&gt;
  
  
  Less than (&amp;lt;)
&lt;/h2&gt;



&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;amp;lt
&lt;/code&gt;&lt;/pre&gt;



&lt;h2&gt;
  
  
  Greater than (&amp;gt;)
&lt;/h2&gt;



&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;amp;gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;h2&gt;
  
  
  Ampersand (&amp;amp;)
&lt;/h2&gt;



&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;amp;amp;
&lt;/code&gt;&lt;/pre&gt;



&lt;h2&gt;
  
  
  Dollar ($)
&lt;/h2&gt;



&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;amp;dollar;

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



&lt;h2&gt;
  
  
  Random Text
&lt;/h2&gt;



&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Elon Musk
Elon Reeve Musk FRS is an entrepreneur and business magnate. He is the founder, CEO, and Chief Engineer at SpaceX; early stage investor, CEO, and Product Architect of Tesla, Inc.; founder of The Boring Company; and co-founder of Neuralink and OpenAI. A centibillionaire, Musk is one of the richest people in the world.
&lt;/code&gt;&lt;/pre&gt;



&lt;h2&gt;
  
  
  Semantic Elements
&lt;/h2&gt;

&lt;p&gt;Semantic elements are those elements that are self describable, i.e., from their name itself, you can understand their meaning.&lt;/p&gt;

&lt;h2&gt;
  
  
   tag
&lt;/h2&gt;

&lt;p&gt;It defines a section in the document&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;section&amp;gt;This is a section&amp;lt;/section&amp;gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;h2&gt;
  
  
   tag
&lt;/h2&gt;

&lt;p&gt;It represents self-contained content&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;article&amp;gt; Enter your data here &amp;lt;/article&amp;gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;h2&gt;
  
  
   tag
&lt;/h2&gt;

&lt;p&gt;It is used to place content in the sidebar&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;aside&amp;gt; Your data &amp;lt;/aside&amp;gt;
&lt;/code&gt;&lt;/pre&gt;






&lt;p&gt;👉 For More Details Visit Here : &lt;a href="https://www.backlinkss.link/2022/12/html-cheatsheet.html"&gt;BackLinks&lt;/a&gt;&lt;/p&gt;


&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>html</category>
      <category>programming</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>CSS Cheat Sheet – A Basic Guide to CSS</title>
      <dc:creator>Madelyn Mathew</dc:creator>
      <pubDate>Tue, 27 Dec 2022 04:21:29 +0000</pubDate>
      <link>https://dev.to/backlinkss/css-cheat-sheet-a-basic-guide-to-css-2b6p</link>
      <guid>https://dev.to/backlinkss/css-cheat-sheet-a-basic-guide-to-css-2b6p</guid>
      <description>&lt;p&gt;CSS i.e. Cascading Style Sheets is a stylesheet language used to describe the presentation of a document written in a markup language such as HTML, XML, etc. CSS enhances the look and feel of the web-page by describing how elements should be rendered on screen or in other media.&lt;/p&gt;

&lt;p&gt;CSS Basics: Cascading Style Sheet(CSS) is used to set the style in web pages that contain HTML elements, here we will see in how many ways we can add CSS for our HTML, there three different ways to do so one by one we will see those procedure.&lt;/p&gt;

&lt;p&gt;CSS Cheat Sheet provides you with the most common style snippets CSS gradient, background, button, font family, order, radius, box, and text-shadow generators, color picker, and more tools to add more visual weight to your document. All these and other useful web design tools can be found on a single page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Font-Family
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Font-Style
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;font-style: italic;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Font-Variant
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;font-variant: small-caps;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Font Weight
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;font-weight: bold;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Font-Size
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;font-size: larger;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Font
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;font: style variant weight size family;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Text
&lt;/h2&gt;

&lt;p&gt;Text properties allow one to manipulate alignment, spacing, decoration, indentation, etc., in the document.&lt;/p&gt;

&lt;h2&gt;
  
  
  Text-Align
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;text-align: justify;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Letter-Spacing
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;letter-spacing: .15em;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Text-Decoration
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;text-decoration: underline;

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  Word-Spacing
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;word-spacing: 0.25em;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Text-Transform
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;text-transform: uppercase;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Text-Indent
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;text-indent: 0.5cm;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Line-Height
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;line-height: normal;

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  Background
&lt;/h2&gt;

&lt;p&gt;As the name suggests, these properties are related to background, i.e., you can change the color, image, position, size, etc., of the document.&lt;/p&gt;

&lt;h2&gt;
  
  
  Background-Image
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;background-image: url("Path");
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Background-Position
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;background-position: right top;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Background-Size
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;background-size: cover;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Background-Repeat
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;background-repeat: no-repeat;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Background-Attachment
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;background-attachment: scroll;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Background-Color
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;background-color: fuchsia;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Background
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;background: color image repeat attachment position;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Border
&lt;/h2&gt;

&lt;p&gt;Border properties are used to change the style, radius, color, etc., of buttons or other items of the document.&lt;/p&gt;

&lt;h2&gt;
  
  
  Border-Width
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;border-width: 5px;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Border-Style
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;border-style: solid;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Border-Color
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;border-color: aqua;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Border-Radius
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;border-radius: 15px;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Border
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;border: width style color;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Box Model
&lt;/h2&gt;

&lt;p&gt;In laymen's terms, the CSS box model is a container that wraps around every HTML element. It consists of margins, borders, padding, and the actual content. It is used to create the design and layout of web pages.&lt;/p&gt;

&lt;h2&gt;
  
  
  Float
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;float: none;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Clear
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;clear: both;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Display
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;display: block;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Height
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;height: fit-content;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Width
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;width: auto;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Margin
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;margin: top right bottom left;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Padding
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;padding: top right bottom left;

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  Overflow
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;overflow: hidden;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Visibility
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;visibility: visible;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Colors
&lt;/h2&gt;

&lt;p&gt;With the help of the color property, one can give color to text, shape, or any other object.&lt;/p&gt;

&lt;h2&gt;
  
  
  Color
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;color: cornsilk;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Opacity
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;opacity: 4;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Template Layout
&lt;/h2&gt;

&lt;p&gt;Specifies the visual look of the content inside a template&lt;/p&gt;

&lt;h2&gt;
  
  
  Box-Align
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;box-align: start;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Box-Direction
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;box-direction: normal;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Box-Flex
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;box-flex: normal;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Box-Flex-Group
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;box-flex-group: 2;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Box-Orient
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;box-orient: inline;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Box-Pack
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;box-pack: justify;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;box-sizing: margin-box;

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  max-width
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;max-width: 800px;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  min-width
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;min-width: 500px;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  max-height
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;max-height: 100px;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  min-height
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;min-height: 80px;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Table
&lt;/h2&gt;

&lt;p&gt;Table properties are used to give style to the tables in the document. You can change many things like border spacing, table layout, caption, etc.&lt;/p&gt;

&lt;h2&gt;
  
  
  Border-Collapse
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;border-collapse: separate;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Empty-Cells
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;empty-cells: show;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Border-Spacing
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;border-spacing: 2px;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Table-Layout
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;table-layout: auto;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Caption-Side
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;caption-side: bottom;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Columns
&lt;/h2&gt;

&lt;p&gt;These properties are used explicitly with columns of the tables, and they are used to give the table an incredible look.&lt;/p&gt;

&lt;h2&gt;
  
  
  Column-Count
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;column-count: 10;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Column-Gap
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;column-gap: 5px;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Column-rule-width
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;column-rule-width: medium;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Column-rule-style
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;column-rule-style: dotted ;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Column-rule-color
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;column-rule-color: black;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Column-width
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;column-width: 10px;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Column-span
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;column-span: all;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  List &amp;amp; Markers
&lt;/h2&gt;

&lt;p&gt;List and marker properties are used to customize lists in the document.&lt;/p&gt;

&lt;h2&gt;
  
  
  List-style-type
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list-style-type: square;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  List-style-position
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list-style-position: 20px;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  List-style-image
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;list-style-image: url(image.gif);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Marker-offset
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;marker-offset: auto;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Animations
&lt;/h2&gt;

&lt;p&gt;CSS animations allow one to animate transitions or other media files on the web page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Animation-name
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;animation-name: myanimation;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Animation-duration
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;animation-duration: 10s;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Animation-timing-function
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;animation-timing-function: ease;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Animation-delay
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;animation-delay: 5ms;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Animation-iteration-count
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;animation-iteration-count: 3;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Animation-direction
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;animation-direction: normal;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Animation-play-state
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;animation-play-state: running;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Animation-fill-mode
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;animation-fill-mode: both;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Transitions
&lt;/h2&gt;

&lt;p&gt;Transitions let you define the transition between two states of an element.&lt;/p&gt;

&lt;h2&gt;
  
  
  Transition-property
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;transition-property: none;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Transition-duration
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;transition-duration: 2s;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Transition-timing-function
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;transition-timing-function: ease-in-out;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Transition-delay
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;transition-delay: 20ms;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  CSS Flexbox
&lt;/h2&gt;

&lt;p&gt;Flexbox is a layout of CSS that lets you format HTML easily. Flexbox makes it simple to align items vertically and horizontally using rows and columns. Items will "flex" to different sizes to fill the space. And overall, it makes the responsive design more manageable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Parent Properties (flex container)
&lt;/h2&gt;

&lt;h2&gt;
  
  
  display
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;display: flex;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  flex-direction
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flex-direction: row | row-reverse | column | column-reverse;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  flex-wrap
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flex-wrap: nowrap | wrap | wrap-reverse;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





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

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flex-flow: column wrap;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  justify-content
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;justify-content: flex-start | flex-end | center | space-between | space-around | space-evenly | start | end | left | right ... + safe | unsafe;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  align-items
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;align-items: stretch | flex-start | flex-end | center | baseline | first baseline | last baseline | start | end | self-start | self-end + ... safe | unsafe;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  align-content
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;align-content: flex-start | flex-end | center | space-between | space-around | space-evenly | stretch | start | end | baseline | first baseline | last baseline + ... safe | unsafe;
Child Properties (flex items)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  order
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;order: 5; /* default is 0 */
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  flex-grow
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flex-grow: 4; /* default 0 */
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  flex-shrink
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flex-shrink: 3; /* default 1 */
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  flex-basis
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flex-basis: | auto; /* default auto */
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  flex shorthand
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;flex: none | [ &amp;lt;'flex-grow'&amp;gt; &amp;lt;'flex-shrink'&amp;gt;? || &amp;lt;'flex-basis'&amp;gt; ]

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

&lt;/div&gt;



&lt;h2&gt;
  
  
  align-self
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;align-self: auto | flex-start | flex-end | center | baseline | stretch;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  CSS Grid
&lt;/h2&gt;

&lt;p&gt;Grid layout is a 2-Dimensional grid system to CSS that creates complex responsive web design layouts more easily and consistently across browsers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Parent Properties (Grid container)
&lt;/h2&gt;

&lt;h2&gt;
  
  
  display
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;display: grid | inline-grid;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  grid-template-columns
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;grid-template-columns: 12px 12px 12px;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  grid-template-rows
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;grid-template-rows: 8px auto 12px;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  grid-template
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;grid-template: none | &amp;lt;grid-template-rows&amp;gt; / &amp;lt;grid-template-columns&amp;gt;;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  column-gap
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;column-gap: &amp;lt;line-size&amp;gt;;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  row-gap
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;row-gap: &amp;lt;line-size&amp;gt;;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  grid-column-gap
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;grid-column-gap: &amp;lt;line-size&amp;gt;;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  grid-row-gap
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;grid-row-gap: &amp;lt;line-size&amp;gt;;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  gap shorthand
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gap: &amp;lt;grid-row-gap&amp;gt; &amp;lt;grid-column-gap&amp;gt;;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  grid-gap shorthand
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;grid-gap: &amp;lt;grid-row-gap&amp;gt; &amp;lt;grid-column-gap&amp;gt;;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  justify-items
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;justify-items: start | end | center | stretch;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  align-items
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;align-items: start | end | center | stretch;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  place-items
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;place-items: center;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  justify-content
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;justify-content: start | end | center | stretch | space-around | space-between | space-evenly;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  align-content
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;align-content: start | end | center | stretch | space-around | space-between | space-evenly;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  place-content
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;place-content: &amp;lt;align-content&amp;gt; / &amp;lt;justify-content&amp;gt;;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  grid-auto-columns
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;grid-auto-columns: &amp;lt;track-size&amp;gt; ...;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  grid-auto-rows
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;grid-auto-rows: &amp;lt;track-size&amp;gt; ...;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  grid-auto-flow
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;grid-auto-flow: row | column | row dense | column dense;
Child Properties (Grid items)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  grid-column-start
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;grid-column-start: &amp;lt;number&amp;gt; | &amp;lt;name&amp;gt; | span &amp;lt;number&amp;gt; | span &amp;lt;name&amp;gt; | auto;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  grid-column-end
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;grid-column-end: &amp;lt;number&amp;gt; | &amp;lt;name&amp;gt; | span &amp;lt;number&amp;gt; | span &amp;lt;name&amp;gt; | auto;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  grid-row-start
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;grid-row-start: &amp;lt;number&amp;gt; | &amp;lt;name&amp;gt; | span &amp;lt;number&amp;gt; | span &amp;lt;name&amp;gt; | auto;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  grid-row-end
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;grid-row-end: &amp;lt;number&amp;gt; | &amp;lt;name&amp;gt; | span &amp;lt;number&amp;gt; | span &amp;lt;name&amp;gt; | auto;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  grid-column shorthand
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;grid-column: &amp;lt;start-line&amp;gt; / &amp;lt;end-line&amp;gt; | &amp;lt;start-line&amp;gt; / span &amp;lt;value&amp;gt;;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  grid-row shorthand
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;grid-row: &amp;lt;start-line&amp;gt; / &amp;lt;end-line&amp;gt; | &amp;lt;start-line&amp;gt; / span &amp;lt;value&amp;gt;;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  grid-area
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;grid-area: &amp;lt;name&amp;gt; | &amp;lt;row-start&amp;gt; / &amp;lt;column-start&amp;gt; / &amp;lt;row-end&amp;gt; / &amp;lt;column-end&amp;gt;;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  justify-self
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;justify-self: start | end | center | stretch;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  align-self
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;align-self: start | end | center | stretch;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  place-self
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;place-self: center;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read More : &lt;code&gt;[Get CSS Basic Details](https://www.backlinkss.link/2022/12/css-cheat-sheet.html)&lt;/code&gt;&lt;/p&gt;

</description>
      <category>css</category>
      <category>webdev</category>
      <category>programming</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
