Jump to content

Difference between <br> </br> and /n


inVINCEable

Recommended Posts

Here's what I'm (almost) sure of...

 

<br>

is HTML.

<br />

is XHTML (and as such, most recommended).

\n

is a newline in the code (doesn't get output to the screen).

 

Basically the first one is old HTML, second is new HTML, and third is a way so that you files don't have the code structure of

<html><head><title>Title</title></head><body>Hello World</body></html>

when looked at it the source code.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.