HTML tags are keywords surrounded by angle brackets like <html>
HTML tags normally come in pairs like <b> and </b>
The first tag in a pair is the start tag, the second tag is the end tag
Start and end tags are also called opening tags and closing tags
Creating our first html file
Lets start with the tags <html> everything that follows will go in between these two tags:
<html>
</html>
Now adding the head tags
<html>
<head></head>
</html>
Now adding the body tags
<html>
<head></head>
<body></body>
</html>
The above code is the basic html structure for a web page.
All the text that is displayed on our browsers should be added within the body tags a shown below.
<html>
<head></head>
<body>
<h1>My First HTML Header</h1>
<p>My First HTML Paragraph</p>
</body>
</html>
Save the html file as lesson_01.html
Screen-Shot Results
The <h1> tag above holds the heading
The <p> tag above holds the paragraph
Other HTML tags that are mostly used are:
<div> This describes a division in an html document
<ul> This describes an unordered list
<ol> This describes an ordered list
<br> This describes a line break