Posted in fonts
130
3:27 am, September 4, 2024
 

Quick Embed - Google Font - DM Sans

DM Sans font quick embed and css class

HTML

<h1 class="dm-sans">DM Sans H1 Tag Example</h1>
<p class="dm-sans">Test text using DM Sans font.</p>

CSS

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');
.fira-sans {
	font-family: 'DM Sans', sans-serif;
}

Scripts

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap" rel="stylesheet">

DM Sans H1 Tag Example

Test text using DM Sans font.

View Statistics
This Week
58
This Month
55
This Year
130

No Items Found.

Add Comment
Type in a Nick Name here
 
Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote

'Dawnie' used to say, "It's really quite simple: Be kind, and the rest takes care of itself. Never do anything that's not kind".


Dawn Atherton
Random CSS Property

column-rule-style

The column-rule-style CSS property sets the style of the line drawn between columns in a multi-column layout.
column-rule-style css reference