L02 - HTML Basics Part 1
L02 - HTML Basics Part 1
Web Programming
By: Bernard Mussa
+
HTML5
+
Introduction
HTML5 (HyperText Markup Language 5)
Markup language that specifies the structure and content of
documents that are displayed in web browsers
Clients
(such as web browsers running on your local
computer or smartphone) request specific resources
such as HTML5 documents from web servers.
+ First HTML5 Example
Create an HTML5 document named main.html,
which is stored in the examples/folder.
This
first example displays the message “Welcome to
HTML5!” in the browser.
+ First HTML5 Example
+ Document Type Declaration
The html element encloses the head section (represented by the head
element) and the body section (represented by the body element).
The head section contains information about the HTML5 document, such
as the character set (UTF-8, the most popular character-encoding
scheme for the web) that the page use which helps the browser determine
how to render the content and the title.
The body section contains the page’s content, which the browser displays
when the user visits the web page.
+ Start Tags and End Tags
HTML5 documents delimit most elements with a start tag and end tag.
There are several so-called “void elements” that do not have end tags.
END!