Night More

Revise Now

Cambridge AS levels

Physics Chemistry Computer Science

Programming and coding

Learn HTML Learn SEO


What do you want
to do?

Contact us Donate Support More Services Send a tweet Social media

more topic chapters

More HTML Tags & Elements

The <br> element

A br tag in html
This is an br tag in html which is used to break the Html webpage by adding an empty space line!

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 below


The <hr> element

A hr tag in html
This is a hr tag in Html which is very similar to a br tag but, instead adds a line

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 below


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

Never Skip the End Tag

Some HTML elements will display correctly, even if you forget the end tag

Let us see an example


However, never rely on this! Unexpected results and errors may occur if you forget the end tag!

HTML is Not Case Sensitive

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.

Revisezone.com Copyright 2020 Developers & Coding section