HTML documents are text files. This is defined by HTML elements.
|Start tag||Element content||End tag|
|<p>||This is a paragraph||</p>|
|<a href="index.html">||This is a link||</a>|
|<br>||Inserts a single line break.|
HTML tags are used to mark-up HTML elements.
HTML tags are surrounded by the two characters < and >
The surrounding characters are called angle brackets.
HTML tags normally come in pairs like <b> and </b>
The start tag is often called the opening tag. The end tag is often called the closing tag.
The first tag in a pair is the start tag; the second tag is the end tag.
The text between the start and end tags is the element content.
HTML tags are not case sensitive; <b> means the same as <B>
HTML Document Example
<p>This is my first <b>paragraph text</b>. </p>
The purpose of the <body> tag is to define the HTML element that contains the body of the HTML document.
The <p> element defines a paragraph in the HTML document.
The element has a start tag <p> and an end tag </p>.
The element content is: This is my first paragraph text.
The HTML element starts with a start tag: <b>
The content of the HTML element is: paragraph text
The HTML element ends with an end tag: </b>
The purpose of the <b> tag is to define an HTML element that should be displayed as bold.