Computer Programming Week 2
Computer Programming Week 2
PROGRAMMING
.NET TECHNOLOGY
Quarter 1 – Week 2
HTML Introduction
What I Know
Multiple choice. Select the letter of the best answer from among the
given choices.
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
</body>
</html>
Example Explained
The HTML element is everything from the start tag to the end tag:
Example.
<h1>My First Heading</h1>
<p>My first paragraph.</p>
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!
Web Browsers
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 History
Since the early days of the World Wide Web, there have been many
versions of HTML:
Year Version
1989 Tim Berners-Lee invented www
1991 Tim Berners-Lee invented HTML
1993 Dave Raggett drafted HTML+
1995 HTML Working Group defined HTML 2.0
1997 W3C Recommendation: HTML 3.2
1999 W3C Recommendation: HTML 4.01
2000 W3C Recommendation: XHTML 1.0
2008 WHATWG HTML5 First Public Draft
2012 WHATWG HTML5 Living Standard
2014 W3C Recommendation: HTML5
2016 W3C Candidate Recommendation: HTML 5.1
2017 W3C Recommendation: HTML5.1 2nd Edition
2017 W3C Recommendation: HTML5.2
Lesson 2
HTML Basics
In this chapter we will show some basic HTML examples.
HTML Documents
All HTML documents must start with a document type declaration:
<!DOCTYPE html>.
The HTML document itself begins with <html> and ends with </html>.
The visible part of the HTML document is between <body> and </body>.
Example
<!DOCTYPE html>
<html>
<body>
</body>
</html>
The <!DOCTYPE> Declaration
HTML Headings
HTML headings are defined with the <h1> to <h6> tags.
<h1> defines the most important heading. <h6> defines the least
important heading.
<!DOCTYPE html>
<html>
<body>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
Activity 1
Fill in the blanks
1. HTML stands for Hyper Text _________ Language
2. HTML describes the _________ of a Web page
3. HTML consists of a series of __________
4. HTML elements tell the _______ how to display the content
5. HTML is the standard markup language for creating __________
Activity 2
• Create a timeline chart for the history of HTML
Activity 3
What are the elements they use in this output?
Activity 4
a. Write and Create a HTML Document that will display your name,
birthday and address.