A tag is an HTML element. They are put in angle brackets and are used to mark up text elements.

Tags need to be opened (e.g. <a>) and closed (e.g. </a>) in order to be interpreted correctly. Tags that aren't opened and closed correctly create errors in the source code and can lead to display problems in the browser.


The <p> tag is used to mark up separate paragraphs:

<p>This text should be displayed as a paragraph with a line break at its end.</p>