0
JavaScript
Can you review this code and suggest corrections? https://sololearn.com/compiler-playground/Ws31IdZTzIS3/?ref=app
4 Réponses
+ 4
In html, separate the tag `a` and attribute `href` by space means write `<a href="url"></a>` instead of `<ahref="url"></a>`.Also there are some spelling mistakes(doesn't affect the code).Also you forgot to put `>` in last anchor tag.
In css, add this code:-
html{
scroll-behavior:smooth;
}
And remove the comment from the code in js.
+ 2
Anirudh Kavediya
you don't actually need js for this.
also, Gulshan Mahawar is right. it's
<a href="..."></a>
not
<ahref="..."></a>
https://sololearn.com/compiler-playground/Wepok5NqjDr8/?ref=app
+ 1
Thanks for help😁
0
All the anchor tag needs to be seperated and the script in the end of your html file there is no use of that why you mentioned that