I’m going to cover interesting and useful tips using Github.

There are many public repositories out there that contain HTML pages. If you don’t want to download the whole repo but want to take a peek at the design preview only, you can do so.

To preview the file, follow these steps:

  1. First, obtain the full URL of the file, such as: https://github.com/sachinkiranti/hello-world/blob/main/index.html

  2. Next, append the obtained URL to https://htmlpreview.github.io/ as a query parameter, like this: ?https://github.com/sachinkiranti/hello-world/blob/main/index.html

So, the complete URL will be as given below: https://htmlpreview.github.io/?https://github.com/sachinkiranti/hello-world/blob/main/index.html

That’s it! With these steps, you can easily preview HTML pages from various public repositories without the hassle of downloading the complete repository.

Happy Coding 😎