Introduction To Web Programming
Introduction To Web Programming
to
Web Programming
Presented by
Nguyễn Đức Thái
Ho Chi Minh City University of Technology
Outline
§ Introduction
§ Creating a Website
§ Web Page Example
§ HTML Tags
§ Structural Elements
§ title Element
§ meta Element
§ HTML Attributes
§ body Elements: hr, p, br, div
§ History of HTML
2
Creating a Website
§ A website is a collection of related web pages that
are normally stored on a single web server computer.
§ A web server: refer to the web page-accessing
software that runs on the web server computer.
3
Text Editor
§ Plain text editor: such as Microsoft’s Notepad
§ There are many different text editors, with varying
degrees of functionality.
§ Another feature common to all web authoring tools is
WYSIWYG, pronounced “wizeewig”.
§ It stands for “What You See Is What You Get”.
§ WYSIWYG means that as you’re editing your text, you
can see what your text will look like after it’s
eventually uploaded to a website.
§ Good Text Editors: Dreamweaver, Sublime Text 3,
…
4
WYSIWYG Editor
5
Upload / Publishing Tools
§ Publishing means that you upload your web page to
a web server computer so other users can access it on
the Web.
6
Web Hosting Service
§ Need to have a web server computer on which to
store the uploaded files.
7
Web Hosting Service (2)
8
Browsers
§ A browser is a piece of software that enables a user to
retrieve and view a web page.
• Google Chrome
• Mozilla Firefox
• Internet Explorer
• Safari (for Mac devices)
• Opera (for Android devices)
• …
9
Web Page Example
10
HTML
11
HTML Tags
12
Structural Elements
<!DOCTYPE html>
<html>
<head>…</head>
<body>…</body>
</html>
13
HTML Structure
<!DOCTYPE html> Declaration of HTML5 document
<html> root element of an HTML page
<head> meta information about the
<title>Page Title</title>
HTML page
</head> element defines a large heading
15
head Element
§ The head element contains two types of elements—
meta and title
16
title Element
§ First element in the head section.
17
title Element
§ Search engines, such as Google, use the title text to
help determine keyword relevance and even display
the title text on the results page of a search.
18
meta Element
§ The meta elements provide information about the
web page.
19
HTML Attributes
§ HTML attributes provide additional information
about HTML elements.
20
HTML Attributes
§ Element
• Container elements: provide information between their start and end tags
• Void elements: have no end tags, so they can’t provide information that way
22
meta name Element (2)
§ In the following examples, the name attribute uses
the values “description” and “keywords”:
23
body Elements: hr, p, br, div
§ <hr> èhorizontal line.
§ <div>…</div> èdivision.
24
CSS Preview
25
History of HTML
26
HTML Governing Bodies
§ W3C
§ WHATWG
28
WHATWG
§ The WHATWG’s mission is narrower in scope than
the W3C’s mission.
§ WHATWG’s home page simply says that they
“maintain and evolve HTML.”
§ Maintaining and evolving HTML is a big undertaking.
§ They consider “HTML” to be an umbrella that
includes HTML5 (which they refer to as just
“HTML”), CSS, and the Document Object Model
(DOM), and they provide specifications for each of
them.
§ The W3C also provides specifications for HTML5, CSS,
and the DOM.
29
W3C vs. WHATWG
§ So, what’s the difference between the two
organizations?
31