@engsofjvolfe
Posted
Hey bro, keep practcing... Heres a thing that u can do to change the fonts:
To use Google Fonts on your HTML CSS web page, follow these steps:
Browse to the Google Fonts website at fonts.google.com and select the font(s) you want to use.
After selecting a font, click on the "Select This Font" button, and then click on the "Embed" tab.
Copy the code provided under the "@import" or "link" tab. Paste the copied code "link" into the head section of your HTML file. The "@import" you paste on first line of your "principal" css, but choose just "link" or "@import" to use ok?
Next, add the font family to the CSS styles for the element(s) you want to use it on. For example, if you want to use the "Open Sans" font on all paragraphs on your page, you can add the following CSS:
css
p {
font-family: 'Open Sans', sans-serif;
}
Note that the font name in the CSS must match the font name in the Google Fonts code.
Save your HTML and CSS files and view your webpage to see the changes.
That's it! Your webpage should now be using the Google Font you selected.
Marked as helpful
@alecanonm
Posted
@engsofjvolfe thanks bro, only i have a question about the "preconnect" into the link to add fonts, anyways thanks for the advice ill keep practicing, but something i dont know how where to start