<?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: Souleh Shaikh</title>
    <description>The latest articles on DEV Community by Souleh Shaikh (@soulehshaikh99).</description>
    <link>https://dev.to/soulehshaikh99</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%2F360046%2F21c35b38-a0ef-4abc-83c3-0634cb5f097c.png</url>
      <title>DEV Community: Souleh Shaikh</title>
      <link>https://dev.to/soulehshaikh99</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/soulehshaikh99"/>
    <language>en</language>
    <item>
      <title>How to capture Screenshot within the browser</title>
      <dc:creator>Souleh Shaikh</dc:creator>
      <pubDate>Tue, 17 Aug 2021 18:58:10 +0000</pubDate>
      <link>https://dev.to/soulehshaikh99/how-to-capture-screenshot-within-the-browser-4kl3</link>
      <guid>https://dev.to/soulehshaikh99/how-to-capture-screenshot-within-the-browser-4kl3</guid>
      <description>&lt;p&gt;Ever wondered, if there could be a better way to take screenshots of elements within the browser? Well, if you do then you might find this post interesting.😇&lt;/p&gt;

&lt;p&gt;In this tutorial, I am going to show you the best method to take screenshots of page elements without the need for any browser extension or third-party snipping software.&lt;/p&gt;

&lt;h3&gt;
  
  
  Prerequisite:
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Basic knowledge of:
&lt;/h4&gt;

&lt;p&gt;1) HTML&lt;br&gt;
2) Browser's Developer Tools&lt;/p&gt;

&lt;h3&gt;
  
  
  Demonstrated on following browsers:
&lt;/h3&gt;

&lt;p&gt;1) Google Chrome (StoryboardThat)&lt;br&gt;
2) Microsoft Edge (Google Colab)&lt;br&gt;
3) Brave Browser (Google Form)&lt;br&gt;
4) Firefox (Flipkart)&lt;br&gt;
5) Opera (GitHub)&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; &lt;em&gt;This tutorial only covers an in-depth explanation for Google Chrome but the steps remain same for all browsers.&lt;/em&gt;&lt;br&gt;
&lt;br&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1) StoryboardThat using Google Chrome
&lt;/h2&gt;

&lt;h3&gt;
  
  
  &lt;u&gt;Step 1:&lt;/u&gt;
&lt;/h3&gt;

&lt;p&gt;Open DevTools and select the particular HTML Element you want to take a screenshot of. &lt;em&gt;Make sure that the blue selection covers the entire element you want.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--9naXZo2a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--9naXZo2a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/1.png" alt="2021-08-17_23h49_51"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;center&gt;&lt;a href="https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/1.png"&gt;View this image&lt;/a&gt;&lt;/center&gt;
&lt;br&gt;
&lt;h3&gt;
  
  
  &lt;u&gt;Step 2:&lt;/u&gt;
&lt;/h3&gt;

&lt;p&gt;Now, right-click and from the context menu, select the &lt;b&gt;&lt;em&gt;Capture node screenshot&lt;/em&gt;&lt;/b&gt; option.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kZzyg_QO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kZzyg_QO--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/2.png" alt="2021-08-17_23h50_53"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;center&gt;&lt;a href="https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/2.png"&gt;View this image&lt;/a&gt;&lt;/center&gt;
&lt;br&gt;
&lt;h3&gt;
  
  
  &lt;u&gt;Step 3:&lt;/u&gt;
&lt;/h3&gt;

&lt;p&gt;The screenshot will be automatically downloaded in PNG format.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--q6HziX6a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--q6HziX6a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/3.png" alt="2021-08-17_23h51_30"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;center&gt;&lt;a href="https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/3.png"&gt;View this image&lt;/a&gt;&lt;/center&gt;
&lt;br&gt;
&lt;h3&gt;
  
  
  &lt;u&gt;Result:&lt;/u&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--2BNM1WIm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--2BNM1WIm--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/4.png" alt="2021-08-17_23h51_47"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;center&gt;&lt;a href="https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/4.png"&gt;View this image&lt;/a&gt;&lt;/center&gt;
&lt;br&gt;
&lt;h3&gt;
  
  
  &lt;u&gt;Step 4:&lt;/u&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;b&gt;&lt;em&gt;What if the screenshot image seems to be smaller than expected?&lt;/em&gt; 😥&lt;/b&gt; &lt;br&gt;
Well, there are some creative ways of increasing the element dimensions so that you may end up with a much higher image resolution. You can try the below-mentioned steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Switch to Full Screen Mode&lt;/li&gt;
&lt;li&gt;Delete unnecessary HTML elements from the page&lt;/li&gt;
&lt;li&gt;Increase the page zoom level to make the desired element as big as possible.&lt;/li&gt;
&lt;li&gt;Change the element's or its parent width and height to cover up the entire page space if needed.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;u&gt;&lt;em&gt;Optional Step:&lt;/em&gt;&lt;/u&gt; Open the same webpage on a screen with higher resolution (if you have one).&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; &lt;em&gt;While zooming the page, always make sure that your element dimensions do not extend beyond the browser's inner dimensions. And in case if it exceeds, then only the visible region is included, the rest part is cropped out of the screenshot.&lt;/em&gt;&lt;br&gt;
&lt;br&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;u&gt;Step 4.1:&lt;/u&gt;
&lt;/h3&gt;

&lt;p&gt;Delete all the unnecessary elements from the page.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--PAR1HauN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PAR1HauN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/5.png" alt="2021-08-19_00h47_57"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;center&gt;&lt;a href="https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/5.png"&gt;View this image&lt;/a&gt;&lt;/center&gt;
&lt;br&gt;
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ChryvwFt--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/6.png" alt="2021-08-19_00h49_06"&gt;&lt;center&gt;&lt;a href="https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/6.png"&gt;View this image&lt;/a&gt;&lt;/center&gt;
&lt;br&gt;
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ZEEb8e7W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/7.png" alt="2021-08-19_00h49_35"&gt;&lt;center&gt;&lt;a href="https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/7.png"&gt;View this image&lt;/a&gt;&lt;/center&gt;
&lt;br&gt;
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Z6A6Z-cU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/8.png" alt="2021-08-19_00h50_03"&gt;&lt;center&gt;&lt;a href="https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/8.png"&gt;View this image&lt;/a&gt;&lt;/center&gt;
&lt;br&gt;
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7VI5a6-z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/9.png" alt="2021-08-19_00h50_36"&gt;&lt;center&gt;&lt;a href="https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/9.png"&gt;View this image&lt;/a&gt;&lt;/center&gt;
&lt;br&gt;
&lt;h3&gt;
  
  
  &lt;u&gt;Step 4.2:&lt;/u&gt;
&lt;/h3&gt;

&lt;p&gt;Extend the height of the element's container to fill up the page's white space.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--XjLMNrfh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/10.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--XjLMNrfh--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/10.png" alt="2021-08-19_00h50_36"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;center&gt;&lt;a href="https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/10.png"&gt;View this image&lt;/a&gt;&lt;/center&gt;
&lt;br&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HAF4nJuU--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/11.png" alt="2021-08-19_01h16_47"&gt;&lt;center&gt;&lt;a href="https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/11.png"&gt;View this image&lt;/a&gt;&lt;/center&gt;
&lt;br&gt;
&lt;h3&gt;
  
  
  &lt;u&gt;Step 4.3:&lt;/u&gt;
&lt;/h3&gt;

&lt;p&gt;Make the browser Full Screen using &lt;code&gt;F11&lt;/code&gt; shortcut key or whatever is applicable for your browser. Also, increase the page zoom level, I have set mine at 175%&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--s3_uSoeZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/12.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--s3_uSoeZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/12.png" alt="2021-08-19_01h26_42"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;center&gt;&lt;a href="https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/12.png"&gt;View this image&lt;/a&gt;&lt;/center&gt;
&lt;br&gt;
&lt;h3&gt;
  
  
  &lt;u&gt;Step 4.4:&lt;/u&gt;
&lt;/h3&gt;

&lt;p&gt;Repeat steps 2 and 3 to take the screenshot.&lt;br&gt;
Now open the new screenshot, you will notice that its resolution is much greater than the previous one.&lt;/p&gt;


&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--37SgbN97--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/13.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--37SgbN97--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/13.png" alt="2021-08-18_00h06_56"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;center&gt;&lt;em&gt;Left: Old Screenshot  |  Right: New Screenshot&lt;/em&gt;&lt;/center&gt;
&lt;center&gt;&lt;a href="https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/13.png"&gt;View this image&lt;/a&gt;&lt;/center&gt;
&lt;br&gt;

&lt;h2&gt;
  
  
  2) Google Colab using Microsoft Edge
&lt;/h2&gt;


&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HWxNXMP5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/14.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HWxNXMP5--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/14.png" alt="14"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;center&gt;&lt;a href="https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/14.png"&gt;View this image&lt;/a&gt;&lt;/center&gt;
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Jb29S4sD--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/15.png" alt="15"&gt;&lt;center&gt;&lt;a href="https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/15.png"&gt;View this image&lt;/a&gt;&lt;/center&gt;
&lt;br&gt;

&lt;h2&gt;
  
  
  3) Google Form using Brave Browser
&lt;/h2&gt;


&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vyEyyUs_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/16.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vyEyyUs_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/16.png" alt="16"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;center&gt;&lt;a href="https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/16.png"&gt;View this image&lt;/a&gt;&lt;/center&gt;
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zcp1EwiQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/17.png" alt="17"&gt;&lt;center&gt;&lt;a href="https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/17.png"&gt;View this image&lt;/a&gt;&lt;/center&gt;
&lt;br&gt;

&lt;h2&gt;
  
  
  4) Flipkart using Firefox
&lt;/h2&gt;


&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--qxcsjZbS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/18.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--qxcsjZbS--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/18.png" alt="18"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;center&gt;&lt;a href="https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/18.png"&gt;View this image&lt;/a&gt;&lt;/center&gt;
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--PZSevemx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/19.png" alt="19"&gt;&lt;center&gt;&lt;a href="https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/19.png"&gt;View this image&lt;/a&gt;&lt;/center&gt;
&lt;br&gt;

&lt;h2&gt;
  
  
  5) GitHub using Opera
&lt;/h2&gt;


&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--akoWa5Gi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/20.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--akoWa5Gi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/20.png" alt="20"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;center&gt;&lt;a href="https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/20.png"&gt;View this image&lt;/a&gt;&lt;/center&gt;
&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--x-sTo2IT--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/21.png" alt="21"&gt;&lt;center&gt;&lt;a href="https://raw.githubusercontent.com/soulehshaikh99/assets/master/blogs/first/21.png"&gt;View this image&lt;/a&gt;&lt;/center&gt;
&lt;br&gt;&lt;br&gt;
Well, that's it for this article. I hope you learned something new. Follow me for more posts just like this and let me know your thoughts in the comment section.&lt;br&gt;Share this post with your friends. Thanks. 😊

</description>
      <category>webdev</category>
      <category>html</category>
      <category>devtools</category>
      <category>screenshot</category>
    </item>
  </channel>
</rss>
