Professional Documents
Culture Documents
HTML5
Session 1.1
Objectives
Explore the history of the Internet, the
Introducing HTML
Web pages are written in HTML
HTML = HyperText Markup Language
Characteristics:
Describes the content and structure of a
document
Uses tags
HTML Ancestor
SGML = Standard Generalized Markup
Language
Adding an Attribute to an
Element
To add an element attribute, use the format
<element attribute1=value1
attribute2=value2
...>content</element>
where attribute1, attribute2, etc. are the
names of attributes associated with the
element, and value1, value2, etc. are the
values of those attributes.
<p align =left>CBIS 3219: Web
Development</p>
8
HTML is like a
Sandwich???
Practice
Create a new html page and save it as
basic.html
Create the root html element and nest the
head and body elements within it.
Document Type
Declaration
Practice
Add the doctype for HTML5 to the basic
page.
Head Element
Page Title (appears in the title bar of the
browser)
Syntax:
<title>document title</title>
Example:
Practice
Set the page title of the Basic page to The
Adding Comments
Purpose: Explain your code to yourself or
others.
Comments are not displayed in the browser.
Comments can be spread over several lines if
necessary.
Syntax:
<!-- comment -->
Example:
Practice
Within the head element, insert the
comment
The J-Prop Shop
Sample Page for the Basic Stick
Author: Your name
Date: the date
<header>
</header>
<nav>
</nav>
<section>
</section>
<aside>
</aside>
<footer>
</footer>
No Structural Element in
HTML 4.01 or XHTML
Replace the structural elements with div
elements.
Syntax:
<div id=id>
content
</div>
Practice
Within the body element, create structural
Summary of tags
<doctype>
<html>
<head>
<body>
<title>
<header>, <section>, <article>, <nav>,