Home About

All posts tagged with "HTML"

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 →

How to preload fonts using the link tag and rel="preload" attribute

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, CSS 15 May 2021

How to lazy load background images using vanilla javascript

Every year Google Lighthouse and pagespeed gives me more to do. This time my site was slowed down because of background images not being lazy loaded. »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on CSS, HTML, SEO 08 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 Disqus, HTML, Blogging 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 Google, HTML, 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 Google, HTML, 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, Web, Website 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, HTML, markdown 19 December 2020

Javascript - how to get a child element with a specific class, attribute or any other selector

In order to get a child element or several child elements I would suggest you use the querySelectorAll or QuerySelector functions. Yes these can be both »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript, Vanilla javascript, HTML, Web development 05 October 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 quickly found out that there is a lot of »

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

How to lazy load Disqus using vanilla/native javascript!

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 Disqus, Javascript, Web, HTML 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 © 2022 Cookie policy