INTRODUCTION �TO �WEB DESIGNING �AND �HTML
PrePARED BY
Dr.R.Rajadevi, AP/IT, KEC
Dr.K.R.Prasanna Kumar, IT, KEC
Outline
Client/Server Architecture
Server
Client/Server Architecture
Client
Server
Request “document A”
Response :”document A”
Web Client/ Web Server
Web Server
Web Client
Clients & Servers Example
Clients (Browser)
Servers
6
Web Essentials
Domain Name, URL’s and IPs
Structure of a Uniform Resource Locators
http://www.chicagosymphony.org/civicconcerts/index.html
protocol
Domain name
pathname
filename
http => Hypertext Transfer Protocol
Mapping IP to Domain Name
Domain Name System – a mapping between the human-readable name (domain name) of a host and its IP address
https://www.kongu.ac.in/departments/civil.php
Mapping IP to Domain Name
Internet Use
Internet Vs WWW
Web Page - The Making of a Good Design
Content is important, but content alone will not make your site work.
�Good Design is:
WYSIWYW (What You See Is What You WANT)
Web Evolution
Technologies & Tools
Web Page Vs Website
HTML-Hyper Text Markup Language�
HTML – Fundamentals�Document Structure
<Head> <!- -optional tag - - >
<Body>
< / HTML>
< HTML >
HTML – Basic Structure
<html>
<head> <! - - optional tag- -> //nested element
<title> The title of your html page </title> //nested element
</head>
<body>
<! - - your web page content and markup - ->
</body>
</html>
Example
<!DOCTYPE html>�<html>�<head>�<title>Page Title</title>�</head>�<body>��<h1>My First Heading</h1>�<p>My first paragraph.</p>��</body>�</html>
Description
HTML - Comment lines
<!--This is a comment. -->
HTML Tags
HTML Heading Tag
<h1>This is heading 1</h1>
<h2>This is heading 2</h2>
<h3>This is heading 3</h3>
<h4>This is heading 4</h4>
<h5>This is heading 5</h5>
<h6>This is heading 6</h6>
HTML ATTRIBUTES
<body bgcolor=“green” >
<p> hai </p>
</body>
HTML colors�
<BODY bgcolor=“color” >
<BODY bgcolor=“blue”>
<BODY bgcolor=rgb(255,0,0) >
<BODY bgcolor=“#0000FF”>
27
�HTML -Colors
Color is the combination of red green and blue
color = “red” (Browser compatibility issues)
color=rgb(122,255,0)
color = “#FF0000”
values vary from 00 to FF (hexadecimal)
0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f
28
Red
Green
Blue
#FF FF FF
HTML Links- anchor tag
Example
Test.html
<a href="http://www.kongu.ac.in"> kongu</a>
HTML Links- anchor tag � -Example output
HTML Links- anchor tag
1.html
<body>
<a href=“bio.html”> read my BIO </a>
<body>
bio.html
<body>
welcome to arun Page
</body>
Hyperlink Example
QUESTION
Design a web page which creates a hyperlink named
as flower. when I click on the hyperlink flower it has
to open a page that describes rose flower[rose.html]
HTML Links- anchor tag - Target attribute value
Target=“value”
Value can be
HTML Links- anchor tag
<a href=“bio.html” target=“_blank” > BiO DATA </a>
<a href=“bio.html” target=“_self” >Bio Data</a>
35
HTML-Internal Linking[bookmarking]
Note :page should Exceed more than one page to understand the output
HTML- Linking to Mail
<html>
<body>
<a href = "mailto:keerthika.cse@kongu.edu"> Send an email</a>
</body>
</html>
HTML Images
<img src=“ group.jpg" alt="Tour" width="600" height="300“/>
HTML Element-<img>
HTML Element-<img>
(OR)
HTML Element-<img>
HTML Element Image Maps <map>
<img src="workplace.jpg" alt="Workplace" usemap="#workmap">�
<map name="workmap">
<area shape="rect" coords="34,44,270,350" alt="Computer" href="computer.html">
</map>
HTML Element Image Maps <map>
Image as hyper link
Image as link.html
Image as hyper link example-output
flower.html
Image as link.html
The title Attribute
<p title=“KEC">
Kongu Engineering College
</p>
<!DOCTYPE html>
<html>
<head> Paragraph</head>
<body>
<p title="WWW“ >
The World Wide Web (WWW), commonly known as the Web</p>
</body>
</html>
Nested HTML Elements
HTML Empty Tags
Horizontal Rule and break tag
<html>
<body>
<p title="Web"> The three primary colors, <hr> red, green and blue, <br> are made </p>
</body>
</html>
HTML Display
<p>�This paragraph�contains a lot of spaces�in the source code,�but the browser �ignores it.�</p>
HTML <pre> Element
<html>
<body>
<pre> The three primary colors,
hello
welcome </pre>
</body>
</html>
HTML Formatting Elements
HTML Formatting Elements
Output of Formatting tags
HTML Formatting Elements - Quotations
HTML Formatting Elements - Quotations
HTML Attributes - <Style>
HTML Attributes- <Style>
HTML Lists
HTML Lists
Unordered list
Ordered list
60
Unordered HTML List- type attributes
Value | Description |
disc | Sets the list item marker to a bullet (default) |
circle | Sets the list item marker to a circle |
square | Sets the list item marker to a square |
none | The list items will not be marked |
HTML Elements-Unordered List
Ordered HTML List type attributes
Type | Description |
type="1" | The list items will be numbered with numbers (default) |
type="A" | The list items will be numbered with uppercase letters |
type="a" | The list items will be numbered with lowercase letters |
type="I" | The list items will be numbered with uppercase roman numbers |
type="i" | The list items will be numbered with lowercase roman numbers |
HTML Elements-Ordered List
Ol tag- start attribute
Nested HTML Lists
<ol>
<li>Coffee</li>
<li>Tea
<ul>
<li>Black tea</li>
<li>Green tea</li>
</ul>
</li>
<li>Milk</li>
</ol>
Design a web page like this
HTML Tables
HTML Table tags
HTML TABLES
<thead>, <tbody>, <tfoot>
<table>� <thead>� <tr>� <th>Month</th>� <th>Savings</th>� </tr>� </thead>� <tbody>� <tr>� <td>January</td>� <td>$100</td>� </tr>
<tr>� <td>February</td>� <td>$80</td>� </tr>� </tbody>
<tfoot>� <tr>� <td>Sum</td>� <td>$180</td>� </tr>� </tfoot>�</table>
Colgroup and col tag in table
Design a table like this
72
ROWSPAN vs COLUMN SPAN
HTML TABLES
HTML TABLES
HTML TABLES
HTML TABLES
CELL PADING vs CELL SPACING
Iframe Tag
Iframe output
Media Tags
Media Tags
Media Tags - <video>
<source src="movie.mp4" type="video/mp4">
</video>
Video Tag- example
Media Tags - <audio>
<audio controls>
<source src="horse.ogv" type="audio/ogg">
<source src="Vathi coming.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
Audio example
Media Tags - Plug-ins
object tag
<object width="100%" height="500px" data="snippet.html"></object>
<object data="audi.jpeg"></object>
Embed tag
<embed src="audi.jpeg">
<embed width="100%" height="500px" src="snippet.html">
Iframe tag
<iframe width="420" height="315“ src=“https://www.youtube.com/embed/D4jj3HHrnSU>
</iframe>
Thank you