0% found this document useful (0 votes)
1 views

Lesson 1.2 - HTML Elements,Structure and Web Browser Purpose

HTML

Uploaded by

JADE ELLONE Lara
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views

Lesson 1.2 - HTML Elements,Structure and Web Browser Purpose

HTML

Uploaded by

JADE ELLONE Lara
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

WHAT IS AN HTML

ELEMENT?
HTML Element
An HTML element is a component of an HTML document that tells a web browser how to
structure and interpret a part of the HTML document. An HTML element is defined by a
start tag, some content, and an end tag:

<tag name> Content goes here… </tag name>

The HTML Element is everything from the start tag to the end tag:

<h1> My First Heading </h1>

<p> My First Paragraph </p>


HTML Element
Start Tag Element Content End Tag
<h1> My First Heading </h1>
<p> My First Paragraph </p>
<br> none none

Note:

Some HTML elements have no content (like the <br> element). These elements are called empty
elements. Empty elements do not have an end tag!
WHAT IS THE PURPOSE
OF WEB BROWSERS IN
HTMLS?
W E B B ROW S E RS
• A web browser is a software program
that allows a user to locate, access, and
display web pages.
• A web browser is usually shortened to
"browser".
• Web browsers are used primarily for
displaying and accessing websites on
the internet, as well as other content
created using languages such as
Hypertext Markup Language (HTML).
Examples:

The purpose of a web browser (Chrome, Edge, Firefox, Safari) is to read HTML documents
and display them correctly. A browser does not display the HTML tags but uses them to
determine how to display the document:
HTML PAGE
STRUCTURE
Below is a visualization of an HTML page structure:
<html>

<head>

<title> Yo u r t i t l e h e r e </title> NOTE:


The content inside the <body>
</head> section (the white area above)
will be displayed in a browser.
The content inside the <title>
<body> element will be shown in the
browser's title bar or in the
page's tab.
<p> Yo u r c o n t e n t </p>

</body>

</html>

You might also like