codedamn Profile picture
Learn to code interactively. Complete challenges and build projects - without leaving your browser. Click the link below and start now 👨‍💻

Jun 1, 2021, 7 tweets

6️⃣ HTML code snippets 👀
A thread 👇

1. Viewport ➡️ A viewport makes sure a site display well on all device (mobile phones, tablets, computers, and even larger screens).
viewport plays a significant role in designing responsive and mobile-friendly websites.

2. Charset ➡️ define the character encoding style of a given linked resource.

3. Theme color ➡️ indicates a suggested color that user agents should use to customize the display of the page or of the surrounding user interface.

4. Favicon ➡️ It helps to add favicon in tabs and bookmarks

5. Image srcset ➡️ Defines multiple sizes of the same image, allowing the browser to select the appropriate image source.

6. Noopener and noreferrer ➡️ The noopener is needed to enhance the security of your website and prevent other websites from gaining access to your page

The noreferrer is used to protect referral information from being passed to the target website

Share this Scrolly Tale with your friends.

A Scrolly Tale is a new way to read Twitter threads with a more visually immersive experience.
Discover more beautiful Scrolly Tales like this.

Keep scrolling