Course Name: Web Programming Course Code:CS406: Credit Hours: 3 Prerequisites: NA
Course Name: Web Programming Course Code:CS406: Credit Hours: 3 Prerequisites: NA
Course Name: Web Programming Course Code:CS406: Credit Hours: 3 Prerequisites: NA
Course Code:CS406
Credit Hours: 3
Prerequisites: NA
Instructor: Muhammad Haris
Week 1
Instructor
Muhammad Haris
Office: G29-F
Office timings : TBD
Class Timings
Time Table
Internet
Network of networks
Browser
Browsers are the interpreters of the web.
Internet explorer: Microsoft
Chrome: Google
Safari: Apple
HTML
Hyper text markup Language.
It provides the structure of a website so that web
browsers know what to show.
Hypertext means machine readable text and Markup means to structure it in a
specific format. So, HTML is called hypertext markup language
CSS
CSS mean Cascading Style Sheet.
CSS let’s web designers change colors, fonts,
animations, and transitions on the web.
They make the web look good.
Programming Languages
JavaScript
PHP
Objective-C
Java
Python
Ruby
GO
Frameworks
To enable the developer to work with programming
language easier
.NET
Drupal
Laravel
Angular.js
Libraries
jQuery
Databases
MySQL
SQL Server
Oracle
MongoDB
Server
Client
The server
Processes requests from clients
Never blocks
13
HTML
“Normal text” surrounded by bracketed tags that
tell browsers how to display web pages
Pages end with “.htm” or “.html”
HTML Editor – A word processor that has been
specialized to make the writing of HTML
documents more effortless.
17
Some common examples
<BODY BGCOLOR=“#FFFFFF”
TEXT=“#FF0000”></BODY>
<BODY BGCOLOR=“#FFFFFF” TEXT=“#FF0000”
LINK=“#0000FF” VLINK=“#FF00FF” >
</BODY>
<BODY BACKGROUND=“hi.gif”
BGCOLOR=“#FFFFFF”> </BODY>
<body>
<p>Hello<br />
You delivered your assignment ontime.<br />
Thanks<br />
Mahnaz</p>
</body>
Example
<body>
<p align = "left">This is left aligned</p>
<p align = "center">This is center aligned</p>
<p align = "right">This is right aligned</p>
</body>
<body>
<p>Hello HTML5!</p>
</body>
<tr>
<td>row 1, column 1</td><td>row 1,
columnn 2</td>
</tr>
<tr>
<td>row 2, column 1</td><td>row 2,
columnn 2</td>
</tr>
</table>Department of Computer Science | FAST-NU 37
Lists
HTML offers web authors three ways for
specifying lists of information. All lists must
contain one or more list elements. Lists may
contain −
<ul>
<li>Beetroot</li>
<li>Ginger</li>
<li>Potato</li>
<li>Radish</li>
</ul>
</div>
<!-- Second group of tags -->
<div style = "color:green">
<h4>This is second group</h4>
<p>Following is a list of fruits</p>
<ul>
<li>Apple</li>
<li>Banana</li>
<li>Mango</li>
<li>Strawberry</li>
</ul>
</div>
Department of Computer Science | FAST-NU 52
Some important tags
The <HR> element causes the browser to display
a horizontal line (rule) in your document.
Size
Width
Align
Color