Once upon a time... 😂 No worry guys, I won't narrate a boring story. For each and everyone going into the web development journey, the best roadmap should include HTML as the primary item.
HTML in its full form, Hypertext Markup Language is the basic language when it comes to web development. Officially released in the 90s and nowadays we are up to version 5 (HTML 5). HTML is mainly for web formating and creating pages that are displayed on the world wide web.
Going through Html versions we have versions 4 and 5 as trending nowadays.
The main differences are as seen in the image above. Last but not least is the Doctype tag at the beginning of HTML5 pages.
<!DOCTYPE html> <html> <head> <title>HTML5 basic structure.</title> </head> <body> <header> </header> </header> <nav> </nav> <article> </article> <footer> </footer> </body> </html>
<html> <head> <title>HTML5 basic structure.</title> </head> <body> <div class="header"> </div> <div id="new"> </div> </body> </html>
Let's work on this to reduce our items to be differentiated to 2. As concerned with
<br\> they are the same representation just the gap which has a minor effect on the code output.
Main Language of use :
In XML(Extended Markup Language) all tags can be self-enclosed like this
<tag-name \>. That being said
<br \>is the syntax for break statement in XHTML and XML.
In HTML earlier versions
<br>was not used instead the break statement in use was the borrowed break
<br />from XML.
Some browsers interpret the
<br />in different manners.
Before jumping into or going deeper into your web dev journey, revise all the new features and special tags that are always coming up.