Visit the Google Fonts Website: Go to the Google Fonts website to browse and select the fonts you want to use on your website.
Select Fonts: Browse through the font library and select the fonts you want to use by clicking the "+ Select this style" button next to each font.
You may import;
<style> @import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap'); </style>
/*CSS font-family*/ font-family: 'DM Serif Display', serif;
<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+Serif+Display&display=swap" rel="stylesheet">