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 →

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 »

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 (<br/>) in them, however what I had »

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 »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Ghostblog, HTML and CSS 19 September 2020

How to make prism.js word-wrap (line-wrap) code snippets

I recently made a post where I needed to show some code that would look better without word wrap as it was basically one or two »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript, HTML and CSS 12 September 2020

How to lazy load Disqus using vanilla/native javascript! - Updated 2022

I recently found out that my blog was slow according to google pagespeed. I scored below 50, but I could have sworn that when I created »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript, HTML and CSS 27 June 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 © 2025 Privacy policy