Q2 Lesson 1 Intro To HTML w1
Q2 Lesson 1 Intro To HTML w1
INTRODUCTION TO HTML
HOW DOES THE BROWSER DISPLAY THE PAGES?
• All Web pages contain instructions for display.
• The browser displays the page by reading these instructions.
• The most common display instructions are called HTML tags.
Mark up tags – tells the Web browser how to display the page.
2 KINDS OF TAG
1. Stand Alone Tag
<br> - break rule Ex. _____ <br> _____ =
<hr> - horizontal rule/line
2. Container Tag
<i> </i> Ex. <i> computer </i> = computer
<p> </p>
HTML Tags
HTML Tags
– HTML tags are used to mark- up HTML elements
– HTML tags are surrounded by the two characters < and >
These surrounding characters are called angle
brackets
– HTML tags normally come in pairs like <b> and </b>
– The text between the start tag and the end tag is element content
<html>
<head>
<title>title of page</title>
</head>
<body>
This is my first homepage.
<b>This text is bold</b>
</body>
</html>
This is an HTML element:
<body>
This is my first homepage.
<b>This text is bold</b>
</body>