02 - HTML Elements
02 - HTML Elements
1.
3 2.
4
5.
Recap
❑ <!DOCTTYPE html>
- a document declaration that defines that this document is an html document. It helps the browser to
display a webpage correctly.
❑ <html> </html>
- a root element of an HTML page which encloses all other elements in the HTML page.
❑ <head> </head>
Contains information about the page, such as the title and metadata
❑ <title> </title>
Specifies a title for the HTML page which is shown in the browser’s title bar
❑ <body> </body>
- Contains information about the page, such as the title and metadata
Recap
1.
4
Parts of the website
1. Navigation Bar
Header
Body
Footer
Activity 3: Do you
know me?
Activity 3: Do you
know me?
Definition
HTML or HyperText Markup Language is used to structure and
format the content of websites on the World Wide Web.
❑ HyperText
- a way of organizing text that allows the reader to easily navigate
and access related information.
❑ Markup language
- It is a computer language that is used to add structure and
formatting to a text document. It uses a system of tags to define
the structure and content of a document.
Definition
❑ Web pages
- Web page stored on a web server, which makes the page available to users of
the Web, to view a Web page, the user runs a Web browser.
❑ Web browsers
- Are software program that retrieves the page and displays the web page.
- Examples Google Chrome, Safari, Internet Explorer
Activity 1
HTML
ELEMEN
TS
Learning
Objectives
At the end of the lesson, the student should be able to:
It is not an HTML tag but it is a document declaration that helps the browser to
display a webpage correctly.
M E TA D ATA
Metadata is information or data about data. It is about the HTML document which
is placed in the head part and will not be displayed on the page.
M E TA D ATA
❑ Head – represents a collection of metadata for the document
❑ Title – represents the document title or name
❑ Base – Specifies document base URL for the purpose of resolving relatives URLs and name of the default
browsing context for the purposes of the following hyperlinks
❑ Link – Specifies the link of the document to other resources. It must have a real attribute
❑ Meta- represents the various kinds of metadata that cannot be expressed using the title, base, link, style
and script.
❑ Style – allows authors to embed style information in the document.
Three Major Markup
Components of HTML
Elements
Attributes
Values
HTML
❑ Elements
Components
- These are everything between the start tag and the end tags, including the tags.
❑ Attributes
- Provide additional information about the HTML elements
❑ Values
- It specifies the properties of the attribute which provide additional information about the HTML element
<h1> Hello
</h1>
Ta g s
• Tags are the basic units or building blocks of an HTML file. Web pages are
designed and HTML codes are made up of these tags – they control how
HTML does its structuring, laying out and formatting.
• They are enclosed in angle brackets < and >
?
< h1 > Hello </h1> ?
?
S t r u c t u re o f a n E l e m e n t