interactive web design 2

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

Upload: aws-nabeel

Post on 14-Feb-2017

7 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Interactive Web design 2

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

By Eng. Aws Nabeel

Email: [email protected]

http://www.aws-nabeel.com

Page 2: Interactive Web design 2

2

HTML TEXT FORMATTING ELEMENTS <h2>HTML <small>Small</small> Formatting</h2> (Small Text)

<h2>HTML <mark>Marked</mark> Formatting</h2> (Highlighted Text)

<p>My favorite color is <del>blue</del> red.</p> (Deleted Text)

Page 3: Interactive Web design 2

3

HTML CONT.<img src= "pic1.jpg" alt=“yahoo.com" width="104" height="142">

Page 4: Interactive Web design 2

4

HTML STYLING<body style="background-color:lightgrey">

<h1>This is a heading</h1>

<p>This is a paragraph.</p>

</body>

Page 5: Interactive Web design 2

5

HTML TEXT COLOR<!DOCTYPE html><html>

<body>  <h1 style="color:blue">This is a heading</h1>  <p style="color:red">This is a paragraph.</p></body>

</html>

Page 6: Interactive Web design 2

6

HTML TEXT FONTS<!DOCTYPE html><html>

<body>  <h1 style="font-family:verdana">This is a heading</h1>  <p style="font-family:courier">This is a paragraph.</p></body>

</html>

Page 7: Interactive Web design 2

7

HTML TEXT SIZE<!DOCTYPE html><html>

<body>  <h1 style="font-size:300%">This is a heading</h1>  <p style="font-size:160%">This is a paragraph.</p></body>

</html>

Page 8: Interactive Web design 2

8

HTML TEXT ALIGNMENT<!DOCTYPE html><html>

<body>  <h1 style="text-align:center">Centered Heading</h1>  <p>This is a paragraph.</p></body>

</html>

Page 9: Interactive Web design 2

CASCADING STYLE SHEETS (CSS)

Page 10: Interactive Web design 2

10

WHAT IS CSS?

Cascading Style Sheets (CSS): is a simple mechanism for adding style (e.g. fonts, colors, layouts) to Web documents.

Styles provide powerful control over the presentation of web pages.

Page 11: Interactive Web design 2

11

STYLE SHEETA style sheet consists of a set of rules.Each rule consists of one or more selectors and a declaration block.

A declaration block consists of a list of declarations in curly braces ({}).

Each declaration consists of a property, a colon (:), a value, then a semi-colon (;).

Page 12: Interactive Web design 2

12

STYLE SHEET SYNTAX EXPLAINED

selector propert

yvalue

rule

Page 13: Interactive Web design 2

13

BASIC CSS SYNTAXCSS Syntaxselector {property: value;}

Page 14: Interactive Web design 2

14

THREE DIFFERENT SCOPES OF CSS

Localconfined to a single element (tag)

Internalaffect elements in an entire page

Externalcan affect multiple pages

Page 15: Interactive Web design 2

15

LOCAL STYLE SHEET Example

<h1 style="color:white; background:orange; font-weight:bold;">Internal Style Sheet Applied to Header 1</h1>

Page 16: Interactive Web design 2

16

INTERNAL STYLE SHEETHow to create?

Put <style> </style> tag between <head> and </head> tags of your HTML page

Use type attribute to indicate the style sheet type, usually type=“text/css”

Specify a default style sheet language for the whole document by<meta http-equiv="Content-Style-Type" content="text/css" />

Put your set of style sheet rules in between <style> and </style> tags

Page 17: Interactive Web design 2

17

EXTERNAL STYLE SHEETAn external style sheet is simply a text-only file that contains only CSS rules.

How to link to external style sheet?<link href=“URL of CSS File" rel="stylesheet" type="text/css" />

Page 18: Interactive Web design 2

18

CSS USING DREAMWEAVER

Using Page properties

How to Modify the CSS Rule “Important”

Create your own CSS ClassCool Thing ;).

Page 19: Interactive Web design 2

19

CREATING A CSS-BASED LAYOUT

Using AP DIV Tag

Using DW

Page 20: Interactive Web design 2

20

USING PREBUILT LAYOUT IN DWExploring the prebuilt layouts.Using the prebuilt layouts.

Page 21: Interactive Web design 2

21

SPRAY MENU IN DWAdding a menu bar.Customizing the Spry menu bar.