Rohit Deshpande
@rohitd99All comments
- @bene-volent@rohitd99
Hi Benevolent
Congrats on completing the challenge.
I'd like to suggest a few changes to your solution,
- For the attribution
footer
would be better suited thanaside
,aside
is generally used for indirectly related content andfooter
is used at the end for information about author, links, contact details etc. - I also find there is no heading in your page, each page should generally contain a
h1
for the title, so I think the name of the person can be ah1
instead ofp
for the title. - The image of the the person is not a decorative image so it should include a
alt
attribute to describe it for assistive technologies or when it fails to load there must be something to describe the image.
Hope it helps
- For the attribution
- @kudos2Shef@rohitd99
Hi kudos2Shef
Congrats on completing the challenge.
I noticed that to center the card you've used properties like
position : relative
etc on your card, well to center something you don't need these but simply use a flex or grid onmain
main { min-height: 100vh; display: flex; flex-direction: column; justify-content: space-around; align-items: center; }
add these to your solution and remove the
position : relative
andtop : 120px
from your card. Also I see you've used headings in the wrong way. The card title must he ah1
instead of anh3
. Each page must have a singleh1
heading for the title. Headings must be in order fromh1
throughh6
. Same for the footer instead ofh6
, I think semantically ap
element should suffice as I don't think that is a heading.Hope it helps
Marked as helpful - @Utkarshrajmishra@rohitd99
Hi Utkarsh
Congrats on completing the challenge.
Enjoyed going through it, well structured, and responsive. But I have a few suggestions that will help you improve it.
- You've used
div
's for structuring but I'd suggest usingmain
andsection
as they are semantic elements. - For representing the deleted text use
del
instead ofp
. - The spelling of Perfume is mistaken as Prefume.
- Also instead of having two images and changing them through media queries, I'd like to suggest using
picture
element with two differentsource
's. Here's the MDN doc for the same picture.
Hope it helps
- You've used
- @David23-Dev@rohitd99
Hi David
Congrats on completing your first challenge 🥳🎉.
Also no need to apologise for your english. Now coming to the challenge I have some suggestions for you.
I see you've implemented the solution nicely for the mobile and desktop sizes but for tablet size they don't cover the entire width.
@media screen and (max-width: 600px) { body{ justify-content : start; } .contenedor { box-shadow: none; flex-direction: column; height: auto; /* width: auto; */ width: 100%; justify-content: start; /* align-items: center; */ } #tusResultados { border-top-left-radius: 0; border-top-right-radius: 0; width: auto; } #summarry { width: auto; } }
I believe these properties should make it better on tablet sizes.
Other than that I also see you've used headings in a wrong way,
h1
heading must only be used once per page. All the headings must be in order that ish1
thenh2
and so on. Here's a video for correct usage of headings.Overall you've done well for your first solution, used semantic elements. Keep going and you'll learn things in no time.
- @Janvampierssel@rohitd99
Hi Jan van Ierssel
Congrats on completing the challenge.
I just wanted to point out a few things, which can improve the solution.
- I noticed you've used
h3
for the title, but anh1
heading would be more suited. For each page a singleh1
heading is always expected and all the headings must be in order fromh1
throughh6
.h1
generally goes for the title,h2
for subtitle and so on. - Also on you've put
height: 100vh
on body , main butmin-height : 100vh
should be used if you want them to stretch as per content. Although on this challenge it wouldn't make much difference.
Hope it helps
Marked as helpful - I noticed you've used
- @alghaylan@rohitd99
Hi abd nour
Just a small suggestion, I saw that you've used a
h3
heading for the title , instead use anh1
heading. Each page must have a singleh1
and all the other headings must be in order that is fromh1
throughh6
. They carry meaning and<h1>
defines the most important heading, and<h6>
defines the least important heading. Thush1
should be the most suited for the title.Hope it helped
Marked as helpful - @wolfgunblood@rohitd99
Hi wolfgunblood
Congrats on completing the challenge.
Really cool solution, Firstly I see you've used
h2
for the title I'd recommend usingh1
instead and styling it as required. There must always be a singleh1
heading on a page and all headings must be in order that is fromh1
toh6
. Secondly I'd suggest using semantic elements likemain
,article
,section
instead of just plain olddiv
s. Overall a very neat and clean solution.Hope it helps
Marked as helpful - @RohitPatra-2002@rohitd99
Hello Rohit, from Rohit 😁
Congrats for completing the challenge.
I have but a few suggestions for you.
- You have used
article
as semantic element correctly so I'd recommend usingmain
too instead of thediv class="container"
since the card is the main content of this page. - Secondly I see you've used
div
for the background image I'd say you can usebackground-image
property on your body for the same, since those images don't have any meaning this should be better. Here's a video from Kevin Powell that shows you how to use multiple images as background.Video
Hope it helps
- You have used
- @YUVASRI06@rohitd99
Hi YUVASRI06
Congrats on completing the challenge.
I'd like to suggest a few changes for improving your solution.
- You've used a
h3
element for the title I'd suggest usingh1
since each page must have a singleh1
heading and all headings must be in order fromh1
throughh6
. - Instead of simply using a
div
to wrap your content , you can use semantic elements likemain
,section
as per need. - Add
min-height : 100vh
instead of justheight: 100vh
since that blocks the content from expanding if height is larger than 100vh , although on this challenge it is certainly not an issue but on challenges which expand more than the screen size it can be one. - Also for your image you can have
width: 100%
instead of a fixed width. - Use
max-width
on your container so that it can lower beyond a certain size. - I also noticed a single
p
tag which might have been placed mistakenly so you might want to remove that too.
Hope it helps
Marked as helpful - You've used a
- @saeedahmedasad@rohitd99
Hi Saeed Ahmed
Congrats on completing the challenge 🥳.
I see that you've used your headings in an incorrect way. Generally headings are used from
h1
throughh6
and each page must only have a singleh1
for the title. So I would suggest you theh1
for the "Your Result", andh2
for the "Great" and "Summary". Secondly you've used theheight: 100vh
on your body and the main in media query, I would suggest usingmin-height : 100vh
so that the minimum height is 100vh and it can expand further as per content.Hope it helps.
- @Ragu-The-Developer@rohitd99
Hi Ragu-The-Developer
Congrats on completing the challenge 🎉.
I've found that you have used multiple
h1
mainly for the name, and in the footer. Generally for each page there must only be a singleh1
heading and the headings must always be in order fromh1
throughh6
in order. I would suggest usingh1
for the name but for the footer-itemsp
element should suffice. Secondly you've used theb
element , I'm not sure if it is deprecated but I think that you can addfont-weight
in the style and use ap
element instead. Also if you want the image to stay on top of the top-background of the container as in the challenge you can add the following properties:.profile { position: relative; bottom: 50px; display: flex; justify-content: center; border-radius: 50%; border: 5px solid white; margin-left: 35%; }
Hope it helps
- @AshwinKumar0@rohitd99
Hi @mRkOoL
Congrats on completing the challenge 🎉.
I have a few suggestions which might help you. You can use the following properties on your body to keep the container centered:
min-height: 100vh; display : flex; justify-content: center; align-items: center;
The min-height: 100vh makes sure the height is atleast 100vh and can expand further if the content allows. Also remove the margins on the container for it to be exactly centered. In your media query for the container you can have the following properties as on tablet sizes I noticed the content was overflowing the screen.
media screen and (min-width: 500px) .Container { flex-direction: row; max-width: 700px; width: 100%; /* min-width: 600px; */ height: 350px; /* margin-top: 100px; */ }
You also don't have an
h1
, generally each page must have a singleh1
for the title of the page. Although I agree there isn't any text to signify a title you can create a title which is only visible for screen readers. You can have a classsr-only
which hides the text visually but not from screen readers and also keeps theh1
in the page for SEO reasons..sr-only { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
Hope it helps.
Marked as helpful - @Joutee@rohitd99
Hi Jouter
Congrats on completing the challenge.
Firstly I don't think you need the media query , you can have this property on the "QRCodebox" which is
max-width: 18rem
and it will scale down if needed on smaller screens, if you want to scale for larger screens this article here is a good read. I also noticed you've usedh2
for the title , it should beh1
you can style it as per need . Each page must have a singleh1
and all headings must be in order fromh1
toh6
. Also I'd suggest using semantic elements likemain
,section
than just plain olddiv
.Hope it helps
Marked as helpful - @Natalie-A@rohitd99
Hi Natalie
Congrats on completing the challenge.
I have a few suggestions for the same
- You have
height : 100vh
on your body , it is better to havemin-height: 100vh
since it allows the content to expand if it is greater than 100vh. Also add some padding to your body so that on smaller screens the content doesn't cover the entire screen and there is some space left. - You also have
width
property set on thediv class="card"
, againmax-width
would be better suited since it allows to scale down. Similiarly for theimg
on mobile you can havewidth: 100%
for it (as it covers entire width of card) and for larger sizes havemax-width: 1100px
and below itwidth: 100%
so that it remains responsive on those sizes. - The usage of
h1
for the title is correct, but then you've again used it in your stats div. Every page must have only a singleh1
and headings must always be in order fromh1
throughh6
. So maybeh2
would better suited, but I feel that those stats arent' headings of sort and ap
may also be fine. I'll leave that to personal choice.
Hope it helps.
Marked as helpful - You have
- @StudentForEternity@rohitd99
Hi StudentForEternity
Really cool solution first of all. I have only a single suggestion you have
width: 320px
on yourdiv
with main-grid class. I'd suggest usingmax-width: 320px
instead so it can responsive for widths below that although there are not many screens below 320px.Hope it helps
Marked as helpful - @ademat@rohitd99
Hi Adéla
Congrats on completing the challenge
I have a few things to add, which might help you
- You have a
height: 100vh
on your body, I'd suggest using amin-height : 100vh
instead since the former stops the content at 100vh and doesn't let it grow further while the latter allows the expansion as per content. - The card has a
width : 320px
, I think amax-width : 320px
is better since it allows the content to minimize on smaller screens (although there aren't many smaller than 320px). On the image too you have width and height directly on the element, you should put them in the stylesheet instead. Again I'd recommend using thewidth:100%
on theimg
and let the height adjust itself than the fixed numbers. If you have fixed numbers they are rigid/fixed and not responsive. - For font-sizes use
rem
thanpx
. Reason why is linked here - Lastly I'd suggest using semantic elements like
main
,section
etc than just plain olddiv
.
Hope it helps
- You have a
- @Rizqy777@rohitd99
Hi Othman
Congrats on completing the challenge.
Firstly you have kept the title as a
h2
heading but it must really be ah1
heading. Each page must have a singleh1
heading signifying the page title. Also headings must always be fromh1
throughh6
in order. These are mainly for semantic reasons and SEO. Secondly the header image can be a background image since it has no specific meaning. Other than these a really nice solution.Hope it helps
Marked as helpful - @beqa-burduli@rohitd99
Hi beqa-burduli
Congrats on completing the challenge.
I have a few suggestions for you.
- You've used the
div class="main_conteiner"
,I'd recommend using themain
element instead since it is semantic element. h3
has been used for the title. I believe you've used it for it's font size, but you should rather use it as per it's meaning. Headings must always be fromh1
throughh6
in order. Also for each page there must always be a singleh1
heading signifying the page title. Thus I thinkh1
would be more fit for it.- Add the
alt
attribute for the NFT image since it is not a decorative image.
Overall it was a nice solution. Hope it helps
- You've used the