Hello, everyone! Please, could somebody answer me, what should I use inside the <button> instead of <embed> to show svg-image? Why <svg> doesn't work? As far as you will see, I also set autocomplete of the input to "off", that is because I did not understand how to style the, let it be, "invalid state" of this form . For example, those error-messages "email should contain "@"", which my browser shows with yellow exclamation mark(I have Google Chrome) or a list of my valid emails. So, I would like to style these messages and windows, but don't know how. I would truely appreciate your reply and some other comments!
devusexu
@devusexuAll comments
- @tired-herbSubmitted about 1 year ago@devusexuPosted about 1 year ago
Hello @tired-herb! I have a few comments
-
See this article on MDN about custom error message, which use
<form novalidate>
to disable default error message and use Constraint Validation API to customize you own. -
You can use
img
for you arror svg -
You can add something like
aria-label="email"
attribute to yourinput
andbutton
element to benefit screen reader users(issues about accessibility), or they won't know what the input and the button is for
1 -
- @xyzeezSubmitted about 1 year ago
Hello There! 👋🏽
Here is my solution for this challenge!
Built Using⚒️ :
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- CSS Grid
- Mobile-first workflow
- BEM
Question🙋 : For some reason, the
input
won't react to my animation styling. Can I get any help on that? ...Feedbacks on how I can improve my code would be highly appreciated! 🙏🏽
Thank You, and Keep coding! 👨🏽💻
@devusexuPosted about 1 year agoHello xyzeez! Although I don't know how to fix the animation issue, you might wanna know about
- Use
<form novalidate>
to disable default error message - Use Constraint Validation API to customize your own error message
For example, I tried inputs like
something
,something@
orPlease provide a valid email
only appear forsomething@something
because this pattern is valid for thetype="email"
. Here's the link on MDN about this: Client-side form validationAnother issue is that when I put my pointer on the edge of the button, the button would start to blink, which might cause an epileptic seizure.
Good semantics and accessibility btw! I would use
sr-only
andaria-label
like you in the future works.Marked as helpful0 - @JordanKleinbaumSubmitted about 1 year ago
I need help with CSS Positioning Please!
Any tips on organizing my elements without using rigid px values for the height and width?
Thank you!
@devusexuPosted about 1 year agoHello Jordan, you can use more rem/em for properties like
font-size
,max-width
, etc. to respect people's font preference. You can see more in these two articles by @grace-snow1 - @Blacknight225Submitted about 1 year ago
it was fun to build this feel free to give me your feedback okay !!
@devusexuPosted about 1 year agoHello, congratulations on finishing this challenge!
I have some links for your reference.
You can use
picture
element to load mobile or desktop image based on size easily, here's an article on MDN.And here is an article by frontendmentor member @gracesnow talking about how to plan this challenge's HTML.
0 - @ZheylaWSubmitted about 1 year ago
What did you find difficult while building the project? Lo que se me hizo dificil fue con los contenedores Which areas of your code are you unsure of? Dentro de lo que cabe estoy segura de todo el codigo Do you have any questions about best practices? Me gustaria saber como le hicieron ustedes.
@devusexuPosted about 1 year agoCool animation and flexible design!
I have a few comments about your solution👋
- I think you can use more semantic tags like
main
orarticle
. - You can also use property
border-top
of<div class="content">
to style colors instead of using<div class="line">
. - You can use
alt=""
for decorative icons.
0 - I think you can use more semantic tags like
- @ahenao10Submitted about 1 year ago@devusexuPosted about 1 year ago
For better semantics of HTML, here's my suggestion and links to docs on MDN
- You can use
picture
for RWD image - You can use
figure
andfigcaption
to contain the image and the info
For the effect of perfume, you can use
text-transform: uppercase
&letter-spacing
so that you won't have to edit the HTML by yourselfMarked as helpful0 - You can use
- @m-stavrakovSubmitted about 1 year ago@devusexuPosted about 1 year ago
For better semantics of HTML, here's my suggestion and links to docs on MDN
- You may want to use
main
instead ofsection
- You can use
picture
for RWD image instead of using CSS - You can use
figure
andfigcaption
to contain the image and the info - Use
button
instead ofa
for the button or letbutton
containa
. You can still make the button interactive without a link using
button:hover, button:focus { cursor: pointer; }
0 - You may want to use
- @frankgomezdevSubmitted about 1 year agoWhat are you most proud of, and what would you do differently next time?
I am mostly proud of being able to get everything to look how it should be by using Flexbox for the first time. Next time, I would pay attention to using more semantic HTML.
What challenges did you encounter, and how did you overcome them?Not really any challenges with this one that I can remember.
What specific areas of your project would you like help with?N/A
@devusexuPosted about 1 year ago- Like LENI4C said, using better semantic tags like
main
for the component andfooter
for the attribution. Here is the doc on MDN - Use rem for font-size, here is an article Why font-size must NEVER be in pixels
Marked as helpful1 - Like LENI4C said, using better semantic tags like