Presentation is loading. Please wait.

Presentation is loading. Please wait.

What is HTML? HTML is a language for describing web pages. –HTML stands for Hyper Text Markup Language –HTML is a markup language –A markup language is.

Similar presentations


Presentation on theme: "What is HTML? HTML is a language for describing web pages. –HTML stands for Hyper Text Markup Language –HTML is a markup language –A markup language is."— Presentation transcript:

1 What is HTML? HTML is a language for describing web pages. –HTML stands for Hyper Text Markup Language –HTML is a markup language –A markup language is a set of markup tags –The tags describe document content –HTML documents contain HTML tags and plain text –HTML documents are also called web pages

2 HTML Tags HTML markup tags are usually called HTML tags –HTML tags are keywords (tag names) surrounded by angle brackets like –HTML tags normally come in pairs like and –The first tag in a pair is the start tag, the second tag is the end tag –The end tag is written like the start tag, with a forward slash before the tag name –Start and end tags are also called opening tags and closing tags content

3 HTML Page Structure

4 HTML Versions

5 The Declaration Help the browser to display a web correctly. Common Declarations HTML5 – HTML 4.01 – XHTML 1.0 –

6 HTML Elements An HTML element starts with a start tag / opening tag An HTML element ends with an end tag / closing tag The element content is everything between the start and the end tag Some HTML elements have empty content Empty elements are closed in the start tag Most HTML elements can have attributes

7 HTML Elements Example This is my first paragraph. المنت های این سند را مشخص کنید. آیا المنت های تودرتو دارد؟

8 HTML Attributes HTML elements can have attributes Attributes provide additional information about an element Attributes are always specified in the start tag Attributes come in name/value pairs like: name="value"

9 HTML Attribute Example This is a link. نام Tag چیست؟ این tag چه تعداد صفت دارد؟ نام صفت آن چیست؟ مقدار صفت چیست؟ محتوای این element چیست؟

10 HTML Headings Defines an HTML document Defines the document's body to Defines HTML headings to This is a heading Defines a horizontal line This is a paragraph. This is a paragraph. Defines a comment

11 HTML Headings Example

12

13

14 Paragraph & Line Break Paragraphs are defined with the tag. Use the tag if you want a line break Example: This is a para graph with line breaks

15 Paragraph & Line Break Example

16

17

18 HTML Text Formatting Defines bold text Defines emphasized text Defines a part of text in an alternate voice or mood Defines smaller text Defines important text Defines subscripted text Defines superscripted text Defines inserted text Defines deleted text

19 HTML Text Formatting

20 HTML Text Formatting Example

21 HTML Hyperlinks (Links) The HTML tag defines a hyperlink. HTML Link Syntax: Link text Example: Google Site

22 HTML Hyperlinks (Links) Example

23 HTML Links - The target Attribute The target attribute specifies where to open the linked document. Example: Google site! باعث خواهد شد سایت google در یک صفحه جدید باز شود.

24 HTML Images In HTML, images are defined with the tag. Syntax: صفت alt جمله ایست که اگر تصویر موجود نبود آن متن نوشته شود. Example:

25 HTML Images Example


Download ppt "What is HTML? HTML is a language for describing web pages. –HTML stands for Hyper Text Markup Language –HTML is a markup language –A markup language is."

Similar presentations


Ads by Google