Isn't a lot to this code outdated. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Isn't a lot to this code outdated.

like the <b> tag should it not be <strong>. also the <br /> is that not a self closing tag and be done like <br> ?

25th Jun 2018, 5:16 PM
Paul Farrell
Paul Farrell - avatar
3 Answers
+ 3
Hello, Paul Farrell ! Please write in more detail, and then people will be able to answer your question, and solve it!
25th Jun 2018, 5:23 PM
Alexander Sokolov
Alexander Sokolov - avatar
+ 3
<br /> or <br/> (and all tags of this sort) are used for xhtml/xml compatibility which is useful for parsing, because you can just use an xml parser for html parsing this way: see this answer https://stackoverflow.com/questions/1946426/html-5-is-it-br-br-or-br <b> can be used as last resort if no other tag is appropriate, but <strong> should be used for important content
25th Jun 2018, 5:34 PM
Max
Max - avatar
0
thanks Max that helped.
25th Jun 2018, 5:41 PM
Paul Farrell
Paul Farrell - avatar