Every web page has the following elements
- Doctype Declaration
- Head
- Title
- Html
- Body
Doctype Declaration – This defines the document type, all HTML files needs to have a DOCTYPE which lets the browser know how the web document should be interpreted.
The doctype declaration is written as
<!DOCTYPE html>
Head – The head element usually contains information about the page it is normally written as <head> after the head tag you will usually find the <title> element. which usually display texts on the tabs section on the browser.
Title – The contents of the <title> element are either shown in thetop of the browser, above whereyou usually type in the URL of the page you want to visit, or on the tab for that page.
Html – this is an important element as it describes the web document <html>.
Body – This element describes the visible page content, Everything inside this element is shown inside the main browser window. This tag is written as <body>.
EXERCISE
- What does HTML stand for?
- Using examples differentiate between HTML tags and HTML elements.
- State and explain the basic elements of a HTML page.
- Outline the tools that one can use to create HTML web pages.
- Using examples differentiate between the two types of tags
