Lecture.1 Web
Lecture.1 Web
HTML
CSS JavaScript
Chrome
Internet Explorer
Opera
Safari
Firefox
The Web Programming Triangle
Web
Programming
JavaScript
CSS
Use CSS to specify the layout of web pages Use JavaScript to program
the behavior of web pages
Basic Web Programming
• HTML
• CSS
• JavaScript
JavaScript
Server
Web
Web Architecture
Web Browser
Client
Web Server
Client-Server Example
Client
Web Browser
Response
Web Server
Request
Database
The code runs on the server and converted to Web Page (HTML)
HTML before sending to client (Web Browser)
understand HTML
• HTML 5 is the latest
• Maintained by W3C
- World Wide Web Consortium
1
3
HTML Editors
Professional HTML editors:
• Adobe Dreamweaver
• CoffeeCup HTML Editor
• Notpad++,……..
For the simple examples in this Tutorial we only
need Notepad (Windows)
What Are HTML Tags?
<!DOCTYPE html>
<html>
HTML
<head>
<title> This is document title </title>
</head>
<body>
<h1> This is a heading </h1>
<p> Hello World! </p>
</body>
</html>
Web Browser
HTML Page Structure
<!DOCTYPE html>
<html>
<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
<p>This is another
paragraph.</p>
</body>
</html>
1
5
My First HTML Web Page
<tagname>content</tagname>
</body>
paragraph
</html>
Students: Create this HTML Code in e.g., NotePad and Save the File as .htmL.
Then Open the File in a Web Browser (just double-click on the file)
In HTML, headings are written in the following elements:
•<h1>
•<h2>
•<h3>
•<h4>
•<h5>
•<h6>
As you might have guessed <h1> and <h2> should be used for the most
important titles, while the remaining tags should be used for sub-headings
and less important text.