The <br> tag is used to add an empty space or line between two elements such as a paragraph.
The <br> doesnt contain a closing tag so we only use a single tag
Let us see the example belowRun
The <hr> is very simialr to the <br> tag however this doesn't just add a spacing it also adds a line to seperate the html document like the example belowRun
These are the very basic HTML elements you need to know! To add some form of content to your html documents
There are a vast variety and range of HTML elements so you can refer to the reference guide for more tags and elements
What to remember is that most tags have a closing tag except <hr> and <br> and the <img> tags do not have closing tags
You also need to know when each type of element is used for creating webpages
You also need to know what the <html> and <body> and <title> and <head> elements do - As this gives the structure of the webpage
Some HTML elements will display correctly, even if you forget the end tag
Let us see an exampleRun
However, never rely on this! Unexpected results and errors may occur if you forget the end tag!
HTML tags are not case sensitive: <P> means the same as <p>.
The HTML standard does not require lowercase tags, but W3C recommends lowercase in HTML, and demands lowercase for stricter document types like XHTML.
At Revisezone we always use lowercase tag names.