1 of 22

HTML

Hyper Text Markup Language

MUHAMMAD AHMED BUTT

2 of 22

HTML

  • Hyper Text Markup Language (HTML) is the markup Language Currently used on the World wide web.
  • HTML is used to tell browsers how to structure and display Web pages
  • An HTML document is simply a text file contains the information you want to publish.
  • It also contains embedded instructions, called elements, which indicates how a web browser should structure or present the document.

3 of 22

HTML

  • An element is made up of a start tag such as <b>, and also might include an end tag, which indicated by a slash within tag such as </b>.

​

​

<title> Opening tag

</title> Closing tag

4 of 22

HTML

  • Some HTML elements, called empty elements because they do not need of closing tag

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

5 of 22

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

6 of 22

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>

​

​

7 of 22

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

​

8 of 22

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">

​

​

9 of 22

HTML

Commonly used Character Entities

​

Result

Description

Entity Name

Entity Number

​

Non-breaking space

&nbsp;

&#160;

<

Less than

&lt;

&#60;

>

Greater than

&gt;

&#62;

&

ampersand

&amp;

&#38;

₵

cent

&cent;

&#162;

£

pound

&pound;

&#163;

¥

yen

&yen;

&#165;

€

euro

&eruo;

&#8364;

§

section

&sect;

&#167;

©

copyright

&copy;

&#169;

®

Registered trademark

&reg;

&#174;

TM

Trade Mark

&trade;

&#153;

10 of 22

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

​

​

11 of 22

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

​

​

12 of 22

Cascading Style Sheets

  • Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation semantics (the look and formatting) of a document written in a markup language . Its most common application is to style web pages written in  HTML and XHTML.

​

​

Syntax

<style type=“text/css”>

​

​

</style>

13 of 22

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

​

​

14 of 22

Image

15 of 22

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>

16 of 22

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>

​

​

17 of 22

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>

18 of 22

My computer

  • Input Devices
    1. Keyboard
    2. Mouse
  • Output Devices
    • Monitor
      • CRT Monitor
      • LCD Monitor
    • Printer
      • Laser Printer
      • Inkjet Printer
  • Processor
    • Control Unit
    • ALU
      • Arithmetic Unit
      • Logic Unit

​

19 of 22

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>

20 of 22

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

21 of 22

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>

22 of 22

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>

​

​