Hello! Here’s my tribute page: https://codepen.io/adaaaaamn/full/pooNxaV. I encourage you guys to check my HTML and CSS codes. I think I made some questionable decisions there so if you guys found something wrong or unusual, please tell me. Thanks!
Looks okay for a first try but maybe
change the zoom in onto the second pic to her face instead of her belly
Your html code may have more semantically written :
-
For main heading “The Devil Wears Prada”, use
<h1>
and resize fonts instead using css. -
For images with image and captions, use
<figure>
and<figcaption>
other:
- Instead of using
<div>
spacer, usemargin-bottom
ormargin-top
for space.
Also, gotta say, look wise, it really looks cool!
Looks okay for a first try but maybe
change the zoom in onto the second pic to her face instead of her belly
I’m gonna look at that. Right now, I’m just simply scaling the image to be bigger.
- For images with image and captions, use
<figure>
and<figcaption>
The instructions say to use a <div>
element. Is it okay if I enclose the <figure>
element inside that?
- Instead of using
<div>
spacer, usemargin-bottom
ormargin-top
for space.
I feel like it’s kind of complicated to maintain. With the spacers, if I want to increase the space I can just add additional spacers.
I see, if instructions says it so then follow it. Enclosing <figure>
inside would also be okay.
Thanks! I forgot to remove them.
The example pen does use figure
and figcaption
The example pen does use
figure
andfigcaption
I updated it now
I have to agree about the <div>
spacer.
Maybe you could create classes like .spacer-2
, .spacer-3
which you can swap out if you need to increase the spacing between your elements. Stacking spacer <div>
tags messes with the semantics of your page.
I’m sorry if this is stupid but what does page semantics mean?
Just the structure of the HTML. The simpler, the better. Also think about screen readers going through your page and hitting all those extra divs.
By the way - your page looks fantastic!!
Oh okay, thanks. Also thank you for the compliment!