0

JavaScript

Can you review this code and suggest corrections? https://sololearn.com/compiler-playground/Ws31IdZTzIS3/?ref=app

10th Nov 2024, 7:11 AM
Anirudh Kavediya
3 ответов
+ 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.
10th Nov 2024, 8:10 AM
Gulshan Mahawar
Gulshan Mahawar - avatar
+ 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
10th Nov 2024, 9:25 AM
Bob_Li
Bob_Li - avatar
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
11th Nov 2024, 11:01 PM
sibghat yaqobi
sibghat yaqobi - avatar