HTML
Hyper Text Markup Language
MUHAMMAD AHMED BUTT
HTML
HTML
<title> Opening tag
</title> Closing tag
HTML
for example <img>, <br>, <hr> etc.
Attributes
The start tag of HTML element might contain attributes that modify the meaning of the tag.
E.g.
<h1 align=“right”> Welcome to Demo Company</h1>
Attribute
HTML
<h1 align=“center”>Welcome Demo Company Inc.</h1>
Tag
Name
Attribute
Name
Attribute
value
Attribute
Start Tag
Affected Content
End Tag
HTML Element
HTML Element
HTML
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” "http://www.w3.org/TR/html4/loose.dtd”>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
HTML Basic Tags
DTD = Document Type Definition
S= Strict T= Transitional F= Frameset
TAGS DTD
<!DOCTYPE> STF
<html> STF
<body> STF
<h1> to <h6> STF
<p> STF
<br> STF
<hr> STF
<!--…--> STF
HTML <!DOCTYPE>
HTML 4.01 Strict
This DTD contains all HTML elements and attributes, but does NOT INCLUDE presentational or deprecated elements (like font). Framesets are not allowed.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
HTML 4.01 Transitional
This DTD contains all HTML elements and attributes, INCLUDING presentational and deprecated elements (like font). Framesets are not allowed.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN” "http://www.w3.org/TR/html4/loose.dtd">
HTML 4.01 Frameset
This DTD is equal to HTML 4.01 Transitional, but allows the use of frameset content.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
HTML
Commonly used Character Entities
Result | Description | Entity Name | Entity Number |
| Non-breaking space | |   |
< | Less than | < | < |
> | Greater than | > | > |
& | ampersand | & | & |
₵ | cent | ¢ | ¢ |
£ | pound | £ | £ |
¥ | yen | ¥ | ¥ |
€ | euro | &eruo; | € |
§ | section | § | § |
© | copyright | © | © |
® | Registered trademark | ® | ® |
TM | Trade Mark | ™ | ™ |
Welcome to Traveler Inc.
Home || About us || Packages|| contact us
The term "travel" originates from the Old French word travail.[1] The term also covers all the activities performed during a travel (movement)[2] A person who travels is spelled "traveler" in the United States, and "traveler" in the United Kingdom[citation needed]
Our partner is PIA, and operates scheduled services to 24 domestic destinations and 38 international destinations in 27 countries across Asia, Europe and North America.
packages ( PKR)
Business 34000, only 30000
Economical 24000, only 20000
Contacts
Traveler Inc. United states
P.O. Box 57890
UAN: 111-999-777
Copyright © 2011-2012 Traveler Inc. United States , All Rights Reserved �For any queries, complaints, suggestions or information about broken links, please write to �Web Master
Welcome to Traveler Inc.
Home || About us || Packages|| contact us
The term "travel" originates from the Old French word travail.[1] The term also covers all the activities
performed during a travel (movement)[2] A person who travels is spelled "traveler" in the United States,
and "traveler" in the United Kingdom[citation needed]
Our partner is PIA, and operates scheduled services to 24 domestic destinations and 38 international
destinations in 27 countries across Asia, Europe and North America.
packages ( PKR)
Business 34000, only 30000
Economical 24000, only 20000
Contacts
Traveler Inc. United states
P.O. Box 57890
UAN: 111-999-777
Copyright © 2011-2012 Traveler Inc. United States , All Rights Reserved �For any queries, complaints, suggestions or information about broken links, please write to �Web Master
Cascading Style Sheets
Syntax
<style type=“text/css”>
</style>
WORLD HEALTH ORGANIZATION
Home || About us ||WHO Standards || contact us
WHO is anti criminal health specialized agency in US , The WHO (World Health Organization) has been working with the government of Pk. [1] The main thrust of WHOP partnership has focused on national priorities and program areas that will make a difference.[2]
H2SO4, NH3, O2, 2H2O
“The refreshing pleasure from the first view of nature, after the pain of illness, and the confinement of a sick-chamber, is above the conceptions, as well as the descriptions, of those in health. “ Ann Radcliffe (1764 - 1823), The Mysteries of Udolpho, 1764
Health is not simply the absence of sickness. Hannah Green
Contacts
UAN: 111-000-000
WHO Representative
PO Box 1013
Islamabad.
Copyright © 2011-2012 WHO, United States . All Rights Reserved �For any queries, complaints, suggestions or information about broken links, please write to �Web Master
Image
HTML Image
<img src=“name.extention" usemap="#name" border="0” />
<map name=“name">
<area shape="circle" coords=“center-x, center-y, raids" href="" target="" />
<area shape="rect" coords=“left-x, top-y, right-x, bottom-y" href="" target="" />
<area shape="poly" coords=“x1,y1,x2,y2,x3,y3,……" href="" target" />
</map>
HTML Lists
<!-- ORDER LIST -->
<h3 align="left" >Order List</h3>
<ol type="1" start="0">
<li>Computer</li>
<li value="1">Laptop</li>
<li>Digital TV</li>
</ol>
<!-- UNORDER LIST-->
<h3 align="left" >Unorder List</h3>
<ul type=“circle">
<li>Computer</li>
<li value="">Laptop</li>
<li>Digital TV</li>
</ul>
HTML Lists
<!-- DEFINITION LIST-->
<h3 align="left">Definition List</h3>
<dl>
<dt>Internet :</dt>
<dd>The Internet is al collection of millions of computers around the world that are all
conected to one another.</dd>
<dt>HTML :</dt>
<dd>HTML is stand for Hyper Text Marup Languge. It is used for formating text for the
user</dd>
<dt>E-mail :</dt>
<dd>E-mail stands for <b>Electronic Mail.</b> E-mail is the exchange of text,
message and files through internet</dd>
</dl>
My computer
HTML Tables
<table border="1">�<tr>�<th>Header 1</th>�<th>Header 2</th>�</tr>�<tr>�<td>row 1, cell 1</td>�<td>row 1, cell 2</td>�</tr>�<tr>�<td>row 2, cell 1</td>�<td>row 2, cell 2</td>�</tr>�</table>
HTML links
<a href=“http://www.google.com” target=“_blank”> google </a>
<a href=“http://www.yahoo.com” target=“_blank”> yahoo</a>
<a href=“http://www.ecommerce-edu.blogspot.com” target=“_blank”> we work for commerce generation</a>
CSS
a:hover
a:link
a:visited
a:active
HTML forms
<form action="">
First name: <input type="text" name="FirstName" value=“First Name" /><br />
Last name: <input type="text" name="LastName" value=“Last Name" /><br />
<input type="submit" value="Submit" />
</form>
<select>
<optgroup label="Swedish Cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
</optgroup>
<optgroup label="German Cars">
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</optgroup>
</select>
HTML frame
<frameset cols="25%,50%,25%">
<frame src=“http://www.yahoo.com" />
<frame src=“http://www.ecommerce-edu.blogspot.com" />
<frame src=“http://www.google.com" />
</frameset>
<iframe src=“http://www.ecommerce-edu.blogspot.com”>
</iframe>