34
حات ف ص م ي م ص ت ة ي ل ع ا ف ت ل ا ب ي و ل اBy Eng. Aws Nabeel Email: [email protected] http://www.aws-nabeel.com

Interactive Web design 1

Embed Size (px)

Citation preview

Page 1: Interactive Web design 1

تصميم صفحات الويب التفاعلية

By Eng. Aws Nabeel

Email: [email protected]

http://www.aws-nabeel.com

Page 2: Interactive Web design 1

2

TOPICS OF THE COURSEo Fundamentals of HTML (Hypertext Markup Language).

o CSS (Cascade Style Sheet).o PHP (PHP: Hypertext Preprocessor).o Database Fundamentals.o Xampp and its Purpose.o MySQL (Structure Query Language).o PHPMyAdmin.o Adobe Dreamweaver CS5.

Page 3: Interactive Web design 1

3

WHAT IS THE INTERNET ?Internet is a network of computer networks

Page 4: Interactive Web design 1

4

WHAT IS A WEB PAGE ?A Document Written in Plain Text with Formatting Instruction of HTML (Hypertext Markup Language).

Page 5: Interactive Web design 1

5

WEB BROWSERS

Web pages are then displayed in web browsers with the correct formatting and content

Page 6: Interactive Web design 1

6

WEB SITES

Page 7: Interactive Web design 1

7

HTML

ImagesSWF, FLV

ADOBE DREAMWEAVER

Page 8: Interactive Web design 1

8

PUBLISH TO A WEB SERVER

Page 9: Interactive Web design 1

9

ACCESS YOUR WEB SITE

Page 10: Interactive Web design 1

10

ACCESS YOUR WEB SITE

Page 11: Interactive Web design 1

11

FIRST THING YOU NEED TO START A WEBSITE

Page 12: Interactive Web design 1

12

PLANNING AND DESIGNING A WEBSITE. What is the goal of your website ?

Depending on the goal, result will be the content of the website.

Can the user find the website ?

Is the website easy to use ?

Does it deliver the information expected ?

Page 13: Interactive Web design 1

13

NAVIGATION OF THE WEBSITE

• About your website

Easy to Learn

• Hyperlink and the Buttons from content

Clearly differentiate

• to arrive at the next destination

Minimal Clicks

Page 14: Interactive Web design 1
Page 15: Interactive Web design 1

15

THE BEST WAY TO LEARN HTMLThe best way to learn HTML (or any programming language) is by Examples.

You can read many books but practice, i.e. writing your own HTML pages and learning from example WWW pages online, is the best way to learn tips and constructs.

Page 16: Interactive Web design 1

16

BASIC HTML PROGRAMMINGHTML stands for Hypertext Markup Language.HTML files are basically special text files:• Contain special control sequences or tags that control how text isto be formatted.• HTML files are the “source code” for Web Browsers

A browser reads the HTML file and Tries to display it using the tags to control layout.

• Text file created by:– Any text editor : Notepad– Special HTML editors : Dreamweaver

Page 17: Interactive Web design 1

17

BASIC HTML PROGRAMMINGHTML source document

A text-only documentConsists of (1) actual text, and (2) tags

A tag is an html code that is enclosed in angel brackets <>; used to layout the web page.

XHTML is a simple, more standardized version of HTMLXHTML/HTML can be created using a simple text editor like notepad

File extension must be .html or .htm

Page 18: Interactive Web design 1

18

HTML DOCUMENT

Head : provides page title and general page formatting commandsBody : put the main HTML text in this part.

Page 19: Interactive Web design 1

19

HTML TAGSAll HTML commands or tags have the following form:

<name of tag>...</name of tag>

Tags control the structure, formatting and hypertext linking or HTML pages.

Tags are made active by <name of tag> and must be made inactive by an associated </name of tag>.

Page 20: Interactive Web design 1

20

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="content-type" content="text/html; charset=utf-8" />

... <title>…</title></head><body>…</body></html>

Page 21: Interactive Web design 1

21

BASIC HTML CODINGHead elements• <head>....</head> tag delimits head part of document.• <title>....</title> Defines the title of the Web page.• Every Web page should have a title

– Displayed as Title of Web Browser Window– Used in Bookmarks or Hot lists to identify page– Only one title per page

Page 22: Interactive Web design 1

22

THE BODY ELEMENTo <body>....</body> tag for body part of document.

o All other commands that constitute web

page nested inside body.

o Body must follow head.

Page 23: Interactive Web design 1

23

HTML TAGS/ELEMENTSTags are also called elementsAn attribute is a special code that can enhance or modify a tag. They are generally located in the starting tag after the tag name.

Basic syntax for xhtml tags and attributes<tag attribute="value">   </tag> All tags must be lower caseall values of attributes need to surrounded by quotes

Page 24: Interactive Web design 1

24

EXAMPLE<strong>This is bold text…</strong><p style ="text-align:center">This is Center…</p>

Page 25: Interactive Web design 1

25

META TAG USED FOR SEO (SEARCH ENGINE OPTIMIZATION)<meta> tagis used to specify keywords that describe a document’s contents as well as a short description.Two necessary attributes – "name" & "content"<meta name="keywords" content="baseball, soccer, tennis"/>

<meta name="description" content="Sports information page"/>

Page 26: Interactive Web design 1

26

HEADINGSHeadings are used to title sections and subsection of a document.

HTML has 6 levels of headings labelled h1, h2, ..., h6.

The first heading should be <h1> item In most documents the first heading is the same as the page title.

Headings are displayed in larger/bolder fonts than normal body text.

Increment headings linearly—do not skip.

Page 27: Interactive Web design 1

27

HEADINGS EXAMPLE<h1>This is a heading</h1> <h2>This is a heading</h2> <h3>This is a heading</h3> <h4>This is a heading</h4> <h5>This is a heading</h5> <h6> This is a heading</h6>

Page 28: Interactive Web design 1

28

HTML COMMENTS Comments delimited by:

<!-- ......... --> Ignored by browser – No formatting function Like all good programming practice:

Use meaning comments in your HTMLSimple comment example:

<!-- THIS IS A COMMENT -->

Page 29: Interactive Web design 1

29

PARAGRAPHS<p> ....</p> tag used for a paragraph. Paragraphs can be aligned — LEFT, CENTER, RIGHT – with

the ALIGN attribute via<p align=center>

Demonstration

Page 30: Interactive Web design 1

30

LINKS AND ANCHORS Linking to Other Documents — The Bread and Butter of the Web

Regions of text can be linked to other documents via the anchor,<a>, tag which has the following format:

<a href=‘‘filename or URL’’> link text </a> The opening <a> tag has a href attribute that is used to specify

the link to URL or local file. Text between the <a> and </a> (closing tag) is highlighted by

the browser to indicate the hyperlink. Depending on browser and web page configuration highlight style can differ.

Page 31: Interactive Web design 1

31

LISTSHTML supports a variety of lists.Unordered or Bulleted lists<ul> ... </ul> delimits list.<li> indicates list items.Closing using </li>. <ul> <li> HTML. </li> <li> PHP.</li> </ul>

Page 32: Interactive Web design 1

32

LISTSOrdered or Numbered lists<ul> ... </ul> delimits list.<li> indicates list items.Closed with </li>.For Example: <ol> <li> One.</li> <li> two.</li> </ol>

Page 33: Interactive Web design 1

33

PREFORMATTED TEXTThe<PRE> tag generates text in a fixed width font and causes spaces, new lines and tabs to be significant. Often used for program listings.Example:

<pre>This is preformatted text.New lines, spaces etc. aresignificant.</pre>

Page 34: Interactive Web design 1

34

EXERCISES We will do some exercises using HTML on Text Editors before Dreamweaver.