🍪 Privacy & Transparency

We and our partners use cookies to Store and/or access information on a device. We and our partners use data for Personalised ads and content, ad and content measurement, audience insights and product development. An example of data being processed may be a unique identifier stored in a cookie. Some of our partners may process your data as a part of their legitimate business interest without asking for consent. To view the purposes they believe they have legitimate interest for, or to object to this data processing use the vendor list link below. The consent submitted will only be used for data processing originating from this website. If you would like to change your settings or withdraw consent at any time, the link to do so is in our privacy policy accessible from our home page..

Vendor List | Privacy Policy
Home Tags Privacy About

All posts tagged with "HTML and CSS"

In order to make websites you need mark up. These are all my posts on HTML (Markup Language) which is the foundation for creating websites.

Page 1 of 2 Older Posts →

HTML - Difference between a label and an aria-label

You may have come across an aria-label or another aria attribute and you are wondering what is the difference. The aria-label can be used to guide »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on HTML and CSS 30 September 2022

Fonts and CSS - Reducing the amount of icons in your font files

I have been hunting performance on my blog once again. I recently reduced the size of my fonts from around 65kb to 5kb without breaking the »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on HTML and CSS 28 May 2022

Web - An alternative to using image-set with background in CSS with a bit of Javascript and built-in lazy-load

I wanted to make my website score a little bit better on Google pagespeed and one area was the size of my images. I use background »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on HTML and CSS, Javascript 26 May 2022

HTML / CSS - How to preload fonts using the link tag and rel="preload" attribute - 2022

In a series of recent posts I have optimised my site as Google lighthouse / Pagespeed has shown some performance issues. This post is on how to »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on HTML and CSS 15 May 2021

Disqus recommendation mark up suddenly messed up on page

Today my disqus recommendations suddenly looked like the following on my pages: As you can see, in the above the recommendations are a lot wider than »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on HTML and CSS 24 April 2021

How to preload Google fonts using Google API

I recently went through the performance issues I had in lighthouse or Google pagespeed. One of those was that I did not preload Google fonts which »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on HTML and CSS 09 April 2021

How to add font-display: swap; to font-face CSS from Google font API

You are likely here because of Google lighthouse or pagespeed telling you that you need to use "font-display: swap;". You can of course add swap to »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on HTML and CSS 02 April 2021

HTML - Should you use <br> or <br/> as line break?

I recently realised that I had some old posts on my blog with some line break tags (
) in them, however what I had been using in »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on HTML and CSS 16 January 2021

Ghost blog - How to link within the same document using an anchor tag in markdown

It took me way too long to figure out how to link to a headline further down in my blog post within markdown. I hope I »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Ghostblog, Blogging, Web and HTTP, HTML and CSS, Markdown 19 December 2020

Ghost blog - Getting rid of the <br> tag and space added between text and image when inserting images from Unsplash

I recently tried the feature "Add image from Unsplash" on my Ghost blog. However I found out that there is a lot of extra space between »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Ghostblog, HTML and CSS 19 September 2020
Page 1 of 2 Older Posts →
  • Rss
  • Twitter
  • LinkedIn
  • profile for Peter Rasmussen at Stack Overflow, Q&A for professional and enthusiast programmers
Peter Daugaard Rasmussen - developer, Consultant, Blogger © 2023 Privacy policy