Design comparison
Community feedback
- @MelvinAguilarPosted almost 2 years ago
Hello there ๐. Good job on completing the challenge !
I have some suggestions about your code that might interest you.
HTML ๐:
- The
lang
attribute is used to declare the language of the webpage. Add thelang
attribute to the<html>
tag with the valueen
.
- Use the
<main>
tag to wrap all the main content of the page instead of the<div>
tag. With this semantic element you can improve the accessibility of your page.
CSS ๐จ:
- The
<b>
tag can be replaced with thefont-weight
property in CSS. This property allows you to set the weight of text.
-
You did not use the fonts of the challenge, there are two methods to import font family:
1. Using a <link> tag: The <link> tag allows you to import a font from an external source and use it on your website. To use this method, you need to have the font file saved on an external source such as Google Fonts.
Example:
<link href="https://fonts.googleapis.com/css?family=MyFont" rel="stylesheet">
2. You can import the Outfit font-family in your CSS file using the following code:
@import url("https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@400&family=Big+Shoulders+Display:wght@700&display=swap");
Once imported, you can use the font-family in your CSS like this:
.selector { font-family: 'Lexend Deca', sans-serif; }
I hope you find it useful! ๐ Above all, the solution you submitted is great!
Happy coding!
Marked as helpful1 - The
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord