01. Introduction to Web Programming
01. Introduction to Web Programming
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
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.
5
Web Hosting Service
§ Need to have a web server computer on which to
store the uploaded files.
6
Web Hosting Service (2)
7
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)
• …
8
Web Page Example
9
HTML
10
HTML Tags
11
Structural Elements
<!DOCTYPE html>
<html>
<head>…</head>
<body>…</body>
</html>
12
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
14
head Element
§ The head element contains two types of elements—
meta and title
15
title Element
§ First element in the head section.
§ The text between the <title> and </title> tags will
appear in the title bar of the browser window.
§ This title text is accessed when web pages are
bookmarked and printed.
§ 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.
§ A descriptive title that includes the website or
organization name is a crucial component for
establishing a brand or presence on the Web.
16
meta Element
§ The meta elements provide information about the
web page.
17
HTML Attributes
§ HTML attributes provide additional information
about HTML elements.
18
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
20
meta name Element (2)
§ In the following examples, the name attribute uses
the values “description” and “keywords”:
21
body Elements: hr, p, br, div
§ <hr> èhorizontal line.
§ <div>…</div> èdivision.
22
History of HTML
23
References
§ W3 Schools – w3schools.com
§ Web Programming with HTML5, CSS, and
JavaScript – John Dean – Jones & Bartlett
Publishers, 2019.
24