is it possible to change placeholder(input) color in js?
Vincent Daniel
@davinceeyAll comments
- @FherAmableRicseSubmitted about 2 years ago@davinceeyPosted about 2 years ago
Hello @FHER AMABLE RICSE. Great solution you have here (I just completed mine too😆) As concerns your question, it would be preferable if you use CSS Selectors and pseudo elements to change the color of your placeholder. This can be done by using this
::placeholder
. So to change it's color, you do this:::placeholder{ color: black; }
This would enable your Javascript code to be cleaner.
Hope this helps you. Happy Coding!
0 - @paryanimohit1Submitted about 2 years ago
Please review the code and let me know if you have any suggestions for improving it.
@davinceeyPosted about 2 years agoHello Mohit. Congratulations on your first project! This is apt and great on the whole. Just some little tips for improvement:
-
You might want to replace the
p
tag used in the first write-up, with ah1
tag, so that your<main>
tag, has a level-one heading. -
You might as well, want to use more of relative units such as the
em
andrem
in applying to padding, margins, widths and font-sizes. This would help to increase the responsiveness of your layout.
You did very well. Keep up!
Hope this helps you. Happy Coding!👊
Marked as helpful1 -
- @ProcodxSubmitted about 2 years ago@davinceeyPosted about 2 years ago
Hello Akinrinlola olamide. Congratulations on your first project! Just some little tips for improvement:
- You could make use of the
display: flex
to centralize your solution. You could make use of this code:
body{ display: flex; justify-content: center; align-items: center; }
-
You could wrap all your content with the
<main>
tag and then make use if theh1
tag as a level-one heading. It would be perfect if it replaces theh3
tag used in your code and it would help in improving Accessibility. -
You could also make use of relative units like the
em
andrem
units for your font-sizes, padding, margins and widths. This would help to improve your site's responsiveness.
Hope this helps you. Happy Coding!👊
Marked as helpful0 - You could make use of the
- @niccolashernandezSubmitted about 2 years ago@davinceeyPosted about 2 years ago
Hello Nicolás Hernández. Congratulations on finishing this project! I previewed your site and it looks very good. But I observed that it wasn't responsive when I used my Chrome Dev Tools.
You might want to go through your media query code. You used
min-width: 1440px
, instead of setting how it should look on a mobile layout (375px). This made your site have issue with being responsive.You might want to also make use of relative units like the
em
andrem
to replace thepx
when applying to padding, margins, font-sizes and widths, as this would help improve their responsiveness.Hope this helps you. Happy Coding!👊
Marked as helpful0 - @ammar886Submitted about 2 years ago
How do you guys find my code? Is it clean? what can be improved?
@davinceeyPosted about 2 years agoHello Ammar Khalid. Congratulations on finishing this project! And, yes, your solution is clean😁. Just some little tips for improvement:
-
You could do well to wrap all your content in a
<main>
tag. You made use of a lot of divs. You could just make use of a<section>
tag to group your work just right under the svg. -
I observed that your writeups were not wrapped in any tags. It would be good HTMML practice to wrap your codes in tags. Your should use this instead
<h1>Improve your front-end <br> skills by building projects</h1>
and ap
tag for the second write-up. -
You could also make use of relative units like the
em
andrem
for padding, margins, and widths. This would enable your site to be more responsive.
Hope this helps you. Happy Coding!👊
Marked as helpful0 -
- @ndorph1nSubmitted about 2 years ago@davinceeyPosted about 2 years ago
Hello EnD1nG. Congratulations on your first project! Your solution is nice and great in the whole. Some little tips for you:
-
You could do well to wrap everything in a
<main>
tag instead. This would help in good HTML validation and would also help screen-readers to know that they are about going through the main content of your site. Also, you could replace the div in this code<div class="card-inner">
, with asection
semantic tag. This would help to improve Accessibility. -
You can replace the
h2
tag with anh1
tag so that it obeys the HTML hierarchy, giving your code a level one heading.
Hope this helps you. Happy Coding!👊
Marked as helpful1 -
- @AtanuMalikSubmitted about 2 years ago
Hey everyone, this is the second Frontend Mentor challenge for me. I have used flexbox for the layout and added some hover effects to the image and the button. Feel free to give me some feedback.
@davinceeyPosted about 2 years agoHello Atanu Malik. Congratulations on finishing this project! I just previewed your site and it is beautiful. I saw the hiver effect used on the image, so apt!😁 I just have a small tip actually:
You might want to replace your
h3
tag with theh1
tag and then, you can set the font-size of your body toinherit
so that you can set the font-size of yourh1
to what you want (this is totally optional). But changing the h3 to h1, would be good HTML practice as it obeys the order of hierarchy.Hope this helps you. Happy coding!👊
Marked as helpful0 - @MazzGhaniSubmitted about 2 years ago@davinceeyPosted about 2 years ago
Hello Mazz Ghani. Congratulations on your first project! Some tips for you:
-
You might want to wrap your entire code with the
<main>
tag. You can also use<section>
tags to partition your layout. This would improve Accessibility. -
You made so much use of
h4
andh5
which was not good HTML code practice. You should instead use theh1
tag as it obeys HTML order hierarchy. -
You can as well apply this to the body tag:
body{ display: flex; justify-content: center; align-items: center; min-height: 100vh; }
This would help in centralizing your project.
Hope this helps you. Happy coding!
Marked as helpful1 -
- @MagnificoRettoreSubmitted about 2 years ago@davinceeyPosted about 2 years ago
Hello Giovanni. Congratulations on your first project! This is a beautiful design on the whole. Just some little tips to help: You might want to replace the p tag in this code
<p id="title">Improve your front-end skills by building projects</p>
, with ah1
tag. This would help improve Accessibility as yourarticle
semantic tag, would have a level one heading.Hope this helps you. Happy Coding!👊
0 - @costaguhSubmitted about 2 years ago@davinceeyPosted about 2 years ago
Hello Gustavo Costa!. Congratulations on your first project! It's a wonderful one on the whole! Just some little tips for you:
-
You might want to replace the
<section>
tag used to wrap everything, with a<main>
tag and then, use the<section>
tag to replace the numerous divs used to partition your layout. This would help to improve Accessibility -
From your code,
<span><h1>SUVS</h1></span><br />
, you placedh1
inside aspan
which is not a good html practice. You could do well to remove the span as it causes inadequate HTML validation.
On the bright side, this is a beautiful project! Well-done.
Hope this helps you. Happy Coding!💖
Marked as helpful1 -
- @StrawHatTeamItSubmitted about 2 years ago
Hello , This my first challenge in Frontend Mentor so if you have any advice to improve the code please tell me so i could update it thank you.
@davinceeyPosted about 2 years agoHello StrawHatCoder. Congratulations on your first project! It looks wonderful on the whole. Just some little tips:
I tried using the Responsive tool on my Chrome Dev Tools and at
width: 1440px
, your solution becomes very much magnified that it loses it's form. You might want to look at your media query code@media screen and (min-width: 1440px)
and change the min-width to max-width.Hope this helps you. Happy Coding!💖
Marked as helpful1 - @shalash23Submitted about 2 years ago
If anyone can comment on the mistakes that had been made, I would really appreciate it.
Are the media queries correct?
Is it responsive on all different devices?
@davinceeyPosted about 2 years agoHello shalash23. Congratulations on your first project! Some little tips for you:
-
You might want to wrap all your content in a
<main>
semantic tag. You could also make use of<section>
and/or<article>
semantic tags. This would help to improve Accessibility. -
Your images, should have alternative texts as well
alt =""
.
Hope this helps you. Happy Coding!💖
Marked as helpful0 -