Professional Documents
Culture Documents
Web Technology
Asst. Prof. Manop Phankokkruad, Ph.D.
Faculty of Information Technology
King Mongkut’s Institute of Technology Ladkrabang
Outline
MP.WEBTECH.IT.KMITL
Overview
1
❑ A website is a group of self-contained, individual
pages, sent to the browser from the server one-
page at a time.
Web server
[ Server Request
]
Front-end
Back-end
[Server Response]
HTML, CSS, JavaScript, …
MP.WEBTECH.IT.KMITL
Overview
MP.WEBTECH.IT.KMITL
Element Tags
<element>Content</element>
Formatting Elements
▪ em
▪i
▪ strong
▪b
▪q
▪ blockquote
▪ span
MP.WEBTECH.IT.KMITL
HTML: Basic Elements
For example
MP.WEBTECH.IT.KMITL
Element Attributes
MP.WEBTECH.IT.KMITL
HTML Basic Structure
<!DOCTYPE html>
<html></html>
MP.WEBTECH.IT.KMITL
HTML Basic Structure
<head></head>
<body></body>
MP.WEBTECH.IT.KMITL
HTML Basic Structure
<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
</head>
<body>
<p>This is my first paragraph.</p>
</body>
</html>
MP.WEBTECH.IT.KMITL
HTML Basic Structure
MP.WEBTECH.IT.KMITL
HTML : Nesting
<parent x> x
<child u> </child u>
<child y> </child y>
<child z> </child z>
</parent x> u y z
MP.WEBTECH.IT.KMITL
HTML: Document Hierarchy
<html> html
<head></head>
<body>
head body
<div id=“logo”>
<img src=“dog.jpg”>
<h3></h3> div
</div>
</body> img h3
</html>
MP.WEBTECH.IT.KMITL
HTML : Tables
Available at https://www.w3schools.com/html/html_tables.asp
MP.WEBTECH.IT.KMITL
HTML : Lists
❑ Ordered Lists
❑ Unordered Lists
MP.WEBTECH.IT.KMITL
HTML : Lists
❑ Description Lists
MP.WEBTECH.IT.KMITL
HTML : Comments
Adding Comments
❑ A comment is descriptive text that is added to
the HTML file but that does not appear in the
browser window when the page is displayed.
Comments are added with the following markup:
MP.WEBTECH.IT.KMITL
Introduction to CSS
MP.WEBTECH.IT.KMITL
CSS : Cascading + Style Sheet
MP.WEBTECH.IT.KMITL
Link an HTML document to a Style Sheet
MP.WEBTECH.IT.KMITL
Link an HTML document to a Style Sheet
❑ Inline Styles
MP.WEBTECH.IT.KMITL
CSS : Inheritance
HTML relationship
<body> parent of site
<div> parent of ul and li, child of
<ul> body
<li></li> parent of li, child of div and
</ul> body
</div> child of ul, div, and body
</body>
MP.WEBTECH.IT.KMITL
CSS : Specificity
p
make the paragraph blue
p.pink
make the paragraph pink
MP.WEBTECH.IT.KMITL
CSS : Rules
MP.WEBTECH.IT.KMITL
CSS : Selector
body {
font-family: Arial, Helvetica;
}
p {color: #666666;}
a {color: blue;}
h1, h2, h3 { font-weight: bold; }
MP.WEBTECH.IT.KMITL
CSS : Selectors
#logo {declaration}
CSS
.ingredients {declaration}
/*
Comment
*/
@charset "encoding";
MP.WEBTECH.IT.KMITL
Creating a Style Sheet
MP.WEBTECH.IT.KMITL
Working with Color
MP.WEBTECH.IT.KMITL
Working with Color
MP.WEBTECH.IT.KMITL
Working with Color
MP.WEBTECH.IT.KMITL
Working with Fonts - Web Fonts
MP.WEBTECH.IT.KMITL
More Information
❑ HTML5 Tutorial
https://www.w3schools.com/html/
❑ CSS Tutorial
https://www.w3schools.com/css/default.asp
MP.WEBTECH.IT.KMITL