[email protected]. 2 internet is a hot topic today. it has opened new ways of opportunities...

61
WEB DESIGNING Concept of Creating Web Pages for Webs 1 BY: ANOOP KUMAR TIWARI [email protected]

Upload: nigel-gallagher

Post on 22-Dec-2015

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

[email protected] 1

WEB DESIGNINGThe Concept of Creating Web Pages for Website

BY: ANOOP KUMAR TIWARI

Page 2: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

[email protected]

Have a Glance on

WEB DESIGNING

in Our Views

Page 3: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

[email protected] 3

Internet is a hot topic today. It hasopened new ways of opportunities for education and helped increase productivity, as well efficiency in areas like fashion, publicity, marketing, healthcare, banking, governance, and manufacturing all over the world.

COURSE INTRODUCTION

Page 4: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

[email protected] 4

As IT Professionals we have to deal with the whole range of Web Technologies starting from the Internet , i.e. to HTML, Advanced HTML, CSS, Java Script, VB Script, XML, COM, JSP, ASP, PHP etc.

The purpose of the course is to introduce with some of these technologies and to teach that ‘How a Web Page is created?’. After the creation of Web Page we have to upload this Web Page on the Internet known as Hosting of Website.

Page 5: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

[email protected] 5

Computer

Requirements

Page 6: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

[email protected] 6

Editor Program (for input)

Page 7: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

[email protected] 7

Browser (for Output)

Page 8: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

[email protected] 8

Hosting Program

Page 9: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

[email protected] 9

Free Space through ISP or other Domain Names.

Page 10: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

[email protected] 10

LANGUAGE AND STYLES FOR

WEB PAGE1. Markup Langauges-

a) HTML (Hyper text Markup Language)

b) DHTML (Dynamic HTML) c) Advanced HTML d) XML (eXtensive Markup Language)

2. CSS (Cascade Sheet Style)

Page 11: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

[email protected] 11

3. Scripting Language- a) Java Script b) VB Script

4. Advanced Technologies-a) Java

b) .Net c) PHP d) ASP e) JSP

Page 12: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

Static,

Advanced, and

[email protected]

Types of Web Pages

Page 13: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

[email protected]

13

BackgroundHeadingsHorizontal RowsAlignments (left, right, center, justify)Paragraphs Text Formatting (color, size, and type)ImagesHyperlinks

Static Page Contents

Page 14: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

[email protected]

14

Advanced Page Contents

Tables Option Values Radio Buttons Check Box Input Box Text Area Buttons (Submit, Reset, Login ,

etc.)

Page 15: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

[email protected]

15

Dynamic AnimationsFlash Videos

Dynamic Page Contents

Page 16: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

By: Mr. Anoop Kumar Tiwari

HYPER TEXT MARKUP LANGUAGE(STATIC)

Page 17: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

<html><head><title>Index</title></head>

<body> Here type your information or document that you want to look on the Web page.

</body></html>

Structure of HTML-

Page 18: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

To Break a line… <BR> Tag

HTML CODE OUTPUT

This is first line. <br> This issecond line.

This is first line.This is second line.

Page 19: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

To create a new Paragraph… <P> Tag

HTML CODE OUTPUT

This is first para. <P> This issecond para.

This is first para.

This is second para.

Page 20: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

To align a Paragraph… <P align=“_”> Tag

HTML CODE OUTPUT<p align=“left”>This is

first para.

<P align=“right”> This issecond para.</p>

<p align=“center”> This is central para.</p>

<p align=“justify”>This para is highly justified.</p>

This is first para.

This is second para.

This is central para.

This is highly justified para.

Page 21: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

<b> Hyper Text Markup Language </b>

Hyper Text Markup Language

Use of Bold (<B>) Tag.

Page 22: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

<i> Hyper Text Markup Language </i>

Hyper Text Markup Language

Use of Italic (<I>) Tag.

Page 23: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

<u> Hyper Text Markup Language </u>

Hyper Text Markup Language

USE OF UNDERLINE (<U>) TAG.

Page 24: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

<Body bgcolor=“red”>

This is the background color of the WEB PAGE….

To give background colour

Page 25: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

<body background=“C:\Documents and Settings\Documents\My Pictures\Sunset.jpg”>

We are able to type upon this picture.

To add a picture in the background of the Web Page.

Page 26: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

Use a PICTURE as a IMAGE…

<img src=“path_of_image.jpg”>

Note: “jpg” in the above code is a format type of image it can be change with the formats of picture as PNG, GIF also..

Note: For getting the path of any image you need to Right Click on that picture and click on Properties option after this you have to copy its Location…

Page 27: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

To set with Alignment to an image…

To set an image in center of the page

<img src=“path_of_image.jpg” align=“center”>

Page 28: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

To set with Alignment to an image…

To set an image in right of the page

<img src=“path_of_image.jpg” align=“right”>

Page 29: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

To set with Alignment to an image…

To set an image in Left of the page

<img src=“path_of_image.jpg” align=“center”>

By default a picture comes automatically in Left side of a page…

Page 30: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

To set a size to an image…

To set the height of the image…<img src=“path_of_image.jpg” height=“20%”>

To set the width of the image…<img src=“path_of_image.jpg” width=“50%”>

Page 31: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

To set a size to an image…

To set the height and with also of the image…<img src=“path_of_image.jpg” height=“80%”

width=“50%>

Page 32: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

<Body text=“blue”>

Hyper Text Markup Language

BEFORE : Hyper Text Markup Language

AFTER: Hyper Text Markup Language

To give the default colour to thetext in the WEB Page.

Page 33: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

<font color=“green”>

As: Hyper Text <font color=“green”>Markup Language.

Hyper Text Markup Language

Note: Here default colour of the text is BLUE as we had done before.

To change the font colour-

Page 34: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

<font face=“Arial”> This is in Arial Font</font>

This is in Arial Font.

To change the type of any FONT:

Page 35: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

<font size=“10”>This is in size 10</font>

Before: This is in normal form.

After: This is in size 10.

TO CHANGE THE SIZE OF THE TEXT-

Page 36: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

Can we use all the attributes in a tag?Ans: Yes.

<font color=yellow face=Arial size=10>

All the attributes had used in a tag like this….

Page 37: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

<hr> is used to draw a simple line.

<hr noshade> is used to draw a solid line.

To draw a line on the Web Page-

Page 38: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

<hr color=“red”>

<hr size=“5”>

<hr color=red size=5>

To change the size & color of <hr>-

Page 39: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

<hr width=“200”>

Where as <hr> will show a complete line-

We can use all the attributes of <hr> tag as-<hr size=10 color=red width=200 noshade>

To change the width of <HR>..

Page 40: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

There are 6 Levels of headings by default-<h1> HTML</h1>

<h2> HTML</h2>

<h3> HTML</h3>

<h4> HTML</h4>

<h5> HTML</h5>

<h6> HTML</h6>

HTMLHTML

HTML

HTML

HTML

HTML

WE CAN ALSO ADD HEADINGS IN WEB PAGES-

Page 41: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

Use of Subscript & Superscript-

IN H2O ‘2’ IS IN SUBSCRIPT FORM, WE SHALL USE <SUB> TAG

We shall write H2O like this:

IN A2 ‘2’ IS IN SUPERSCRIPT FORM, WE WILL USE <SUP> TAG. We shall write A2 like

this:H<sub>2</sub>O

A<sup>2</sup>

Page 42: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

ORDERED LIST

It shows an order of sequence.Order List may be in following kinds-1, 2, 3, 4, 5, …………A, B, C, D, E, ……….a, b, c, d, e, ………..I, II, III, IV, V, ……….i, ii, iii, iv, v, ………..

UNORDERED LIST

It does not show any order of sequence.Order List may be in following kinds-Disc ( )Circle ( )Square( )

There is two types of lists in HTML:

We can create lists in HTMl-

Page 43: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

Ordered ListHTML CODE

<ol>Four Directions: <li>EAST</li> <li>WEST</li> <NORTH</li> <li>SOUTH</li> </ol>

OUTPUT

Four Directions:1. EAST2. WEST3. NORTH4. SOUTH

Page 44: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

ORDERED LIST (TYPE ATTRIBUTE)

<OL TYPE=“A”><LI>EAST</LI><LI>WEST</LI><LI>NORTH</LI><LI>SOUTH</LI></OL>

A. EASTB. WESTC. NORTHD. SOUTH

HTML CODE OUTPUT

NOTE: You can change the List Type ‘A’ in ‘I’ for Capital Roman numbers, ‘i’ for smallcaps roman numbers and ‘a’ for smallcaps english alphabets also but by default it creats the list in regular Numerals…

Page 45: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

Ordered List (Start Attribute)

INPUT CODE (HTML)

<OL start=“11”>Four Directions:

<li>EAST</li> <li>WEST</li> <li>NORTH</li> <li>SOUTH</li> </OL>

OUTPUT

Four Directions:11. EAST12. WEST13. NORTH14. SOUTH

Page 46: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

Unordered ListHTML CODE OUTPUT<UL><li>EAST</li><li>WEST</li><li>NORTH</li><li>SOUTH</li></UL>

• EAST• WEST• NORTH• SOUTH

Page 47: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

Unordered List with ‘TYPE’attribute…HTML CODE OUTPUT

<UL type=“circle”><li>EAST</li><li>WEST</li><li>NORTH</li><li>SOUTH</li></UL>

o EASTo WESTo NORTHo SOUTH

Note: You can also insert ‘Square’ instead of ‘Circle’…

Page 48: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

Another list in the list

Coding Output<html><head><title>Nested List</title>

<head><body>

<ol>Tags<li>Physical Tags</li> <ul><li>Bold</li>

<li>Italic</li></ul> <li>Logical Tag</li> <ul><li>Emphasis</li> <li>Strong</li></ul></ol>

</body></html>

1. Physical Tag • Bold • Italic

2. Logical Tag• Emphasis• Strong

Nested List:

Page 49: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

Definition List:

Input Output<body>

<dl><dt>Noun<dd>A noun is the name of a person, things or a place.<dt>Pronoun<dd>Pronoun are the words that are used in place of nouns to avoid the repetition of nouns.</dl>

Noun A noun is the name of a person, things or a place.

Pronoun Pronoun are the words that are used in place of nouns to avoid the repetition of nouns.

Page 50: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

CODEs in HTML<table>

<tr><td>Name</td><td>Class</td>

</tr><table>

OUTPUT

Name Class

TABLE IN HTML

Page 51: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

TR For creating a new row in the table

TD For creating a new cell in the row of the table

TH For creating a Heading in the row of the table

USE OF TR>,<TD>&<TH>

Page 52: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

Use of Border AttributeHTML CODE

<table border=“1”><tr>

<th>Name</th><th>Class</th><th>Address</th>

</tr><tr>

<td>Aditya</td><td>10</td><td>Sikandrabad</

td></tr>

<table>

OUTPUT

Name Class Address

Aditya 10 Sikandrabad

Page 53: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

Use of Bordercolor AttributeHTML CODE

<table border bordercolor=“red”>

<tr>

<th>Name</th><th>Class</th><th>Address</th>

</tr><tr>

<td>Aditya</td><td>10</td><td>Sikandrabad</td>

</tr><table>

OUTPUT

Name Class Address

Aditya 10 Sikandrabad

Page 54: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

<table height=“50%” width=“50%” border><tr> <td> Name</td><td>Class</td><td>Address

</td> </tr><tr> <td> Aditya</td><td>10</td><td>

Sikandrabad </td> </tr><tr> <td> Akash</td><td>10</td><td> Khurja

</td> </tr><tr> <td> Ajay</td><td>10</td>Ghaziabad </td>

</tr></table>

Use of “WIDTH” and HEIGHT” Attribute

Page 55: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

Output of Table

Name Class Address

Aditya 10 Sikandrabad

Akash 10 Khurja

Ajay 10 Ghaziabad

Page 56: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

Table with Two Colored Lines

<table border><tr bgcolor=“pink”> <th>Name

<th>Class</th></tr><tr bgcolor=“silver”>

<td>Aditya <td>10</td></tr></table>

Name Class

Aditya 10

Input code Output

Page 57: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

Use of ‘ALIGN’ Attribute

<table border><tr bgcolor=“pink”> <th>Name

<th>Class</th></tr><tr bgcolor=“silver” align=“center”>

<td>Aditya <td>10</td></tr></table>

Name Class

Aditya 10

HTML Code Output

Note: You can also use here: ‘align=“right”>’

Page 58: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

Use of ‘CAPTION’ Attribute in Table

<table border><caption> My Table</caption><tr bgcolor=“pink”> <th>Name

<th>Class</th></tr><tr bgcolor=“silver” align=“center”>

<td>Aditya <td>10</td></tr></table>

Name Class

Aditya 10

HTML Code Output

My Table

Note: You can also use here: ‘align=“right”>’

Page 59: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

Use of ‘CAPTION’ Attribute in Table with different color…

<table border><caption> <font color=“red”>My Table</font></caption><tr bgcolor=“pink”> <th>Name

<th>Class</th></tr><tr bgcolor=“silver” align=“center”>

<td>Aditya <td>10</td></tr></table>

Name Class

Aditya 10

HTML Code Output

My Table

Note: You can also use here: ‘align=“right”>’

Page 60: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

Use of COLSPAN in a Table…

<table border=“1”> <tr>

<th colspan=“2”>I carry 2 Columns</th></tr>

<tr><td>1</td><td>2</td></tr>

<tr><td>3</td><td>4</td></tr>

</table>

I carry 2 Columns

1 2

3 4

HTML CODE OUTPUT

Page 61: 1anoop.help4ever@gmail.com. 2 Internet is a hot topic today. It has opened new ways of opportunities for education and helped increase productivity,

Use of ROWSPAN in a Table…

<table border=“1”> <tr>

<th rowspan=“2”>I carry 2 Rows</th>

<td>1</td><td>2</td></tr>

<tr><td>3</td><td>4</td></tr>

</table>

HTML CODE OUTPUT

I Carry 2 Rows1 2

3 4