---
title: "Swimburger - Blog - HTML"
description: "Swimburger.net is a blog about .NET, cloud, web development, and whatever comes across Swimburger's plate. Swimburger.net is run by Niels Swimberghe."
canonical: "https://swimburger.net/blog/html"
---

[

<picture><img class="blog-post-card__image" src="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=1x0.5/media/0eklaput/don-t-let-your-users-get-pwned-via-email-html-injection-3.png" srcset="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=1x0.5/media/0eklaput/don-t-let-your-users-get-pwned-via-email-html-injection-3.png 250w, /cdn-cgi/image/width=375,format=auto,quality=90,height=375,fit=cover,gravity=1x0.5/media/0eklaput/don-t-let-your-users-get-pwned-via-email-html-injection-3.png 375w, /cdn-cgi/image/width=500,format=auto,quality=90,height=500,fit=cover,gravity=1x0.5/media/0eklaput/don-t-let-your-users-get-pwned-via-email-html-injection-3.png 500w" sizes="250px" width="250" height="250" alt="Hacker in front of a computer running applications in multiple terminals" decoding="async" loading="lazy" style="background-color:#06033a"></picture>

## Don't let your users get pwned via email HTML injection

3/23/2022 - Web

Learn how to prevent HTML injection into your emails and protect your users from bad actors!



](/blog/web/dont-let-your-users-get-pwned-via-email-html-injection)[

<picture><img class="blog-post-card__image" src="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5/media/4hxim0g5/brandblazor_nohalo_1000x.png" srcset="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5/media/4hxim0g5/brandblazor_nohalo_1000x.png 250w, /cdn-cgi/image/width=375,format=auto,quality=90,height=375,fit=cover,gravity=0.5x0.5/media/4hxim0g5/brandblazor_nohalo_1000x.png 375w, /cdn-cgi/image/width=500,format=auto,quality=90,height=500,fit=cover,gravity=0.5x0.5/media/4hxim0g5/brandblazor_nohalo_1000x.png 500w" sizes="250px" width="250" height="250" alt="Blazor logo" decoding="async" loading="lazy"></picture>

## Get Your Head Together With Blazor’s New HeadContent and PageTitle

10/14/2021 - .NET

Let’s take a look at the three Blazor components .NET 6 is introducing to help you manage the head of your document—PageTitle, HeadContent, and HeadOutlet.



](/blog/dotnet/get-your-head-together-with-blazors-new-headcontent-and-pagetitle)[

<picture><img class="blog-post-card__image" src="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5/media/vjjh5cag/download.jpg" srcset="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5/media/vjjh5cag/download.jpg 250w, /cdn-cgi/image/width=375,format=auto,quality=90,height=375,fit=cover,gravity=0.5x0.5/media/vjjh5cag/download.jpg 375w, /cdn-cgi/image/width=500,format=auto,quality=90,height=500,fit=cover,gravity=0.5x0.5/media/vjjh5cag/download.jpg 500w" sizes="250px" width="250" height="250" alt="Japanese Ramen Soup" decoding="async" loading="lazy"></picture>

## Introducing online base64 image encoder

2/10/2021 - Web

This little tool generates the base64 data URL for the file you select without uploading it to a server. The base64 encoding happens inside your browser.



](/blog/web/introducing-online-base64-image-encoder)[

<picture><img class="blog-post-card__image" src="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5003335557038026/media/0drl1ne0/social-media-html-square.png" srcset="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5003335557038026/media/0drl1ne0/social-media-html-square.png 250w, /cdn-cgi/image/width=375,format=auto,quality=90,height=375,fit=cover,gravity=0.5x0.5003335557038026/media/0drl1ne0/social-media-html-square.png 375w, /cdn-cgi/image/width=500,format=auto,quality=90,height=500,fit=cover,gravity=0.5x0.5003335557038026/media/0drl1ne0/social-media-html-square.png 500w" sizes="250px" width="250" height="250" alt="Social Media Logo's in front of arrows" decoding="async" loading="lazy" style="background-color:#1E1E1E"></picture>

## Don't forget to provide image alt meta data for open graph and twitter cards social sharing

12/7/2020 - Web

Due to the lack of support historically and it not being prominent in many samples, the important alternative text meta tag is often forgotten. To add support for the alt-meta tag use og:image:alt and twitter:image:alt.



](/blog/web/dont-forget-to-provide-image-alt-meta-data-for-open-graph-and-twitter-cards-social-sharing)[

<picture><img class="blog-post-card__image" src="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5/media/tzxjbrly/metatagsio-thumb.png" srcset="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5/media/tzxjbrly/metatagsio-thumb.png 250w, /cdn-cgi/image/width=375,format=auto,quality=90,height=375,fit=cover,gravity=0.5x0.5/media/tzxjbrly/metatagsio-thumb.png 375w, /cdn-cgi/image/width=500,format=auto,quality=90,height=500,fit=cover,gravity=0.5x0.5/media/tzxjbrly/metatagsio-thumb.png 500w" sizes="250px" width="250" height="250" alt="Screenshot of metatags.io preview" decoding="async" loading="lazy" style="background-color:#fff"></picture>

## Verify what your webpage looks like in Google, Facebook, Twitter, LinkedIn, and more

11/23/2020 - Web

Social media platforms each generate link previews/cards differently. You can use the official debuggers/inspectors provided by Facebook, Twitter, LinkedIn to debug the previews. To quickly preview multiple social networks + Google + Slack, you can use metatags.io.



](/blog/web/verify-what-your-webpage-looks-like-in-google-facebook-twitter-linkedin-and-more)[

<picture><img class="blog-post-card__image" src="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover/media/0xmbgtlb/umbraco-images-square.png" srcset="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover/media/0xmbgtlb/umbraco-images-square.png 250w, /cdn-cgi/image/width=375,format=auto,quality=90,height=375,fit=cover/media/0xmbgtlb/umbraco-images-square.png 375w, /cdn-cgi/image/width=500,format=auto,quality=90,height=500,fit=cover/media/0xmbgtlb/umbraco-images-square.png 500w" sizes="250px" width="250" height="250" alt="Phone/Tablet/Laptop displaying Umbraco logo" decoding="async" loading="lazy" style="background-color:#2D2D2D"></picture>

## Implementing Responsive Images in Umbraco

12/24/2019 - Umbraco

The web platform has responsive image capabilities such as the srcset-attribute, sizes-attribute, and the picture-element. These capabilities may seem daunting sometimes. We'll learn how to make them available and maintainable to Umbraco content editors.



](/blog/umbraco/implementing-responsive-images-in-umbraco)[

<picture><img class="blog-post-card__image" src="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5/media/5cxfbnm2/html-agility-pack-net_.png" srcset="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5/media/5cxfbnm2/html-agility-pack-net_.png 250w, /cdn-cgi/image/width=375,format=auto,quality=90,height=375,fit=cover,gravity=0.5x0.5/media/5cxfbnm2/html-agility-pack-net_.png 375w, /cdn-cgi/image/width=500,format=auto,quality=90,height=500,fit=cover,gravity=0.5x0.5/media/5cxfbnm2/html-agility-pack-net_.png 500w" sizes="250px" width="250" height="250" alt="Screenshot of the HTML Agility Pack homepage" decoding="async" loading="lazy" style="background-color:#c00"></picture>

## Auto generate Heading Anchors using HTML AgilityPack DOM Manipulation

9/22/2019 - .NET

Manually adding an anchor to every heading would be a painful solution. So let's learn how we can achieve this by generating the Heading Anchors using the HTML AgilityPack .NET library.



](/blog/dotnet/auto-generate-heading-anchors-using-html-agilitypack-dom-manipulation)[

<picture><img class="blog-post-card__image" src="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5/media/1126/social-media-html-square.png" srcset="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5/media/1126/social-media-html-square.png 250w, /cdn-cgi/image/width=375,format=auto,quality=90,height=375,fit=cover,gravity=0.5x0.5/media/1126/social-media-html-square.png 375w, /cdn-cgi/image/width=500,format=auto,quality=90,height=500,fit=cover,gravity=0.5x0.5/media/1126/social-media-html-square.png 500w" sizes="250px" width="250" height="250" alt="Social Media Logo's in front of arrows" decoding="async" loading="lazy" style="background-color:#1E1E1E"></picture>

## Social Sharing Buttons with zero JavaScript to Twitter, Reddit, LinkedIn, and Facebook

5/20/2019 - Web

Instead of slowing down our site and feeding advertisement profiles, we can use plain HTML to provide social sharing functionality. This post will cover social sharing to Twitter, Reddit, LinkedIn, and Facebook.



](/blog/web/social-sharing-buttons-with-zero-javascript-to-twitter-reddit-linkedin-and-facebook)[

<picture><img class="blog-post-card__image" src="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5/media/1100/phone-speed-square.png" srcset="/cdn-cgi/image/width=250,format=auto,quality=90,height=250,fit=cover,gravity=0.5x0.5/media/1100/phone-speed-square.png 250w, /cdn-cgi/image/width=375,format=auto,quality=90,height=375,fit=cover,gravity=0.5x0.5/media/1100/phone-speed-square.png 375w, /cdn-cgi/image/width=500,format=auto,quality=90,height=500,fit=cover,gravity=0.5x0.5/media/1100/phone-speed-square.png 500w" sizes="250px" width="250" height="250" alt="Phone with speedometer" decoding="async" loading="lazy" style="background-color:#2D2D2D"></picture>

## Web performance: prevent wasteful hidden image requests (display: none)

1/1/2019 - Web

We often hide images using CSS with "display: none", but this doesn't actually prevent the browser from downloading these images. Using the HTML Picture element, we can serve different versions of an image depending on media queries. We can even use a data-img to prevent images from being downloaded at all and optimize our website speed.



](/blog/web/web-performance-prevent-wasteful-hidden-image-requests)
