html

40
HTML Web Design Course [email protected] Web Design

Upload: it-big-dig

Post on 13-Jun-2015

375 views

Category:

Education


0 download

DESCRIPTION

HTML tutorial (Basics) language: English

TRANSCRIPT

Page 1: HTML

HTMLWeb Design Course

[email protected]

Web Design

Page 2: HTML

AgendaWhat is HTML.

HTML Simple Example.!DOCTYPE.

title.h tag.p tag.Lists.

Attributes.Links.

Images.Lines.

Comments.Text format.

Tables.

Page 3: HTML

HTMLHyper Text Markup Language

Markup Language

Set of markup tags

Tags

Keywords surrounded by angle brackets

Normally come in pairs

Start Tag

Opening Tags

<>

End Tag

Closing Tags

</>

Page 4: HTML

HTML Basic Structure<!DOCTYPE html>

<html><head>

<title></title>

<head><body></body>

</html>

Page 5: HTML

Simple Example

Page 6: HTML

The <!DOCTYPE> Declarationhelps the browser to display a web

page correctly.

Page 7: HTML

Page Titles

Page 8: HTML

HTML Headings

Headings are

important

<h1> For most

importantheader

SE use your

headings

البحث مواقع تستخدمهاموقعك لفهرسة

<h1>………..<h6>

Page 9: HTML

HTML Headings

Page 10: HTML

HTML Paragraphs

Page 11: HTML

Don't Forget the End Tag

النتيجة • نفس تعطى أن يمكن التاجز بعض

يكون ألنة األقفال تاج نضيف لم اذا حتى

أختياري.

ثم • ذلك على تعتمد أن تستطيع ال ولكنك

فيها مرغوب غير نتائج يعطي موقعك تجد

المتصفحات بعض .على

Page 12: HTML

Lists

• The ul tag is used to define

unordered lists.

• The ol tag is used to define

ordered lists.

• Inside the lists, the li tag is used

to define each list item.

<ul> <li> </li> <li> </li> <li> </li></ul>

<ol> <li> </li> <li> </li> <li> </li></ol>

Page 13: HTML

Lists

Unordered

Lists

Page 14: HTML

ListsOrdered Lists

Page 15: HTML

ListsSource Code

Result

Page 16: HTML

HTML Attributes

• HTML elements can have att ributes.

• Att ributes provide additional information about

an element.

• Att ributes are always specified in the start tag.

Always Quote Att ribute Values = " value "

Page 17: HTML

HTML Links

An anchor tag <a> is used to define a

link, but you also need to add the

destination of the link. The destination of the link is defi ned in the

href attribute of the tag.

The link can be absolute, such as:

"http://www.google.com", or it can be

relative to the current page.

Page 18: HTML

HTML Links

<!DOCTYPE html> <html> <body>

<a href="http://www.yahoo.com"> link </a> </body> </html>< a href= "destination " target="_blank" > Visit this page

in a new tab </a>

Page 19: HTML

Mailto link

To create a link on your Web site that

opens an email window .

<a href="mailto:e-mail">Send </a>

Send email to more than one address

<a href="mailto:e-mail1, e-mail2">Send </a>

Page 20: HTML

HTML Images

<img

src="facebook.jpg">

img Tag

<img src="Destination" alt="Text" width= "Number" height= "Number" >

Page 21: HTML

HTML Images

<img src="facebook.jpg" alt= "facebook

image" >Image source Alternate text

The alt attribute provides alternative information for an image if a user for some reason cannot view it .

Alternate Text

Page 22: HTML

HTML Images

<img src="facebook.jpg" alt= "facebook

image" width="300" height=“500">

If the image cannot be displayed, the value of the alt attribute will be displayed

Width & Height

Page 23: HTML

HTML Lines

The <hr> tag creates a horizontal line in HTML

Doc.

Page 24: HTML

HTML Comments

مفيد ذلك و الكود لوصف التعليقات أدراج يمكن

كنت اذا خاصا� و جدا

مرة تعود سوف كنت اذا أو مجموعة في تعمل

الكود لتعديل .أخرى

<!-- -->

Page 25: HTML

HTML Text Formatting

Often strong renders as bold<strong>............

</strong>

<b> …………………</b>

Page 26: HTML

HTML Text Formatting

Often italic renders as emphasis<i>............ </i>

<em>

…………………</em>

Page 27: HTML

HTML Text Formatting

Page 28: HTML

Table DataTable rowTable

<table></table>

<tr>

</tr>

<td>

</td>

<td>

</td>

<tr>

</tr>

<td>

</td>

HTML Tables

Page 29: HTML

HTML Tables

Table DataTable rowTable

<table></table>

<tr>

</tr>

100

200

<tr>

</tr>100

Page 30: HTML

HTML Tables

Table DataTable rowTable

<table ></table>

<tr>

</tr>

row 1, cell 1

row 1, cell 2

<tr>

</tr>

row 2, cell 1

row 2, cell 2

Page 31: HTML

HTML Tables

Table DataTable rowTable

<table border=“ ”></table>

<tr>

</tr>

row 1, cell 1

row 1, cell 2

<tr>

</tr>

row 2, cell 1

row 2, cell 2

Page 32: HTML

HTML Tables

Table DataTable rowTable

<table border=“ ”></table>

<tr>

</tr>

row 1, cell 1

row 1, cell 2

<tr>

</tr>

row 2, cell 1

row 2, cell 2

Page 33: HTML

HTML Tables

Page 34: HTML

HTML Tables

Page 35: HTML

HTML Tables

Page 36: HTML
Page 37: HTML

End of HTML Coding Part 1

Page 38: HTML

Forms used to send data across the web and

are often used as contact forms to

convert information inputted by a user

into an email.

Extra

Page 39: HTML

know

Visual Illusion

Extra

Page 40: HTML

know

Visual Illusion

Extra