Beginner | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Beginner

So I finishel HTML class and did this - is it fine or faulty? https://code.sololearn.com/WimKT0F52GSs

10th Dec 2019, 8:38 AM
Dmitry Klimkin
Dmitry Klimkin - avatar
3 Answers
+ 2
Yes you did some mistakes here. You used tr and form tag inside font tag which is not valid. Even you can apply font on tr and form tag using style attribute.
10th Dec 2019, 9:16 AM
A͢J
A͢J - avatar
+ 2
You have a lot of obsolete elements and attributes in your mark-up. Try to avoid bgcolor, align and similar attributes and font elements. Use css instead. You should also avoid inline styles. Create external css file and link it. There is a typo in your code, attribute wigth does not exist (hr element). Do not use div elements for sectioning purposes. There are special sectioning elements in HTML5.
10th Dec 2019, 9:19 AM
Michal Straka
Michal Straka - avatar
+ 1
Thank you very much for answers! I changed font tag mistake. I don't know how to use style attribute yet, SoloLearn gives only very basics, but I'll look into it, thanks! There are many obsolete elements and div blocks because I just finished HTML4 course, so I wanted to practice using HTML4 particularly. I'm learning HTML5 now and then I'll get on with CSS. Thanks for pointing out my typo though, I should be more careful.
11th Dec 2019, 8:06 AM
Dmitry Klimkin
Dmitry Klimkin - avatar