Presentation is loading. Please wait.

Presentation is loading. Please wait.

HTML Assoc. Prof. Rozinah Jamaludin 28 January 2010.

Similar presentations


Presentation on theme: "HTML Assoc. Prof. Rozinah Jamaludin 28 January 2010."— Presentation transcript:

1 HTML Assoc. Prof. Rozinah Jamaludin 28 January 2010

2 HTML HyperText Markup Language The language used to create documents on the World Wide Web. The coding language used to create Hypertext documents for use on the World Wide Web. HTML files are meant to be viewed using a World Wide Web Client Program, such as Internet explorer and Netscape. Hypertext is text in a Web page that contains links to other pages.

3 What’s in an address? Each Web page has an address, called a URL (Uniform Resource Locator) http://www.usm.my/waheeb/index.html Directories can be nested, just like your Windows or Macintosh computer. protocolserverDirectory (folder) domain Document (filename)

4 Creating HTML An HTML file must have an.htm or.html file extension Text Editor: NotePad, SimpleText WYSIWYG HTML Editors:  Macromedia Dreamweaver  Adobe GoLive  Netobjects Fusion  Netscape Composer  MS Word  MS FrontPage

5 HTML Structure Copyright 2005 Christopher Brewer. All rights reserved. my website

6 Section: tag The tag is used to embed scripts such as Javascript or PHP into an HTML document.

7 Section: tags Example: Hello World That’s a wrap Creates a new row

8 Section: tags Table Data “cells” ( ) can contain tables (tables within tables): Contact: First Name Last Name

9 Section: tags Forms are the primary method for gathering data from site visitors. Create a form block with

10 Section: tags Hidden fields contain data that isn’t shown to user: Text fields are single-line entry fields: Text areas can contain multiple lines of text: This is a multi-line text area

11 Section: tags Create a checkbox: Radio button sometimes called birdseye: Radio buttons can be grouped, allowing only one to be selected in the group:

12 Section: tags Pull down menu: Male Female Other Submit button:

13 Head Tag  The head tag contains general information, also called meta-information, about a document.  The head tag needs to be closed before using the BODY tag  According to the HTML standard, only a few tags are legal inside the head section. These are:,,,, and.

14  Defines information about the document  Defines the document title  Defines a base URL for all the links on a page  Defines a resource reference  Defines meta information

15 tag The body element defines the documents' body. It contains all the contents of the document (like text, images, colors, graphics, etc.). tag is a paired tag.

16 tag Attributes  bgcolor  background  aLink  vLink  link  leftmargin  rightmargin  topmargin  title  class  text  style

17 Heading Heading 1 Heading 2 Heading 3 Heading 4 Heading 5 Heading 6

18 Other text formatting tags Bold Text Italic Text line break (single tag) horizontal rule (single tage)

19 Paragraph tag The tag defines a paragraph. Attributevalues alignleft right center justify

20 HTML document structure You can type in real text HERE to appear on the

21 Example My First Page You can type in real text HERE to appear on the page.

22 HTML Syntax: Block Items Comments: contains information for the browser contains information to display. End tags with or with start tag: My Awesome Site My Photograph Tack in the Box Twice!

23 Example: Insert image My Awesome Site My Photograph Tack in the Box Twice!

24 Example: Create Table Coding Contest Winner Loser Hosam Ahmed

25 Tables Cell A Cell B Cell C Cell D Cell A Cell B Cell C Cell D

26 Links Your harddrive.

27 Tables Border: value in pixels; specifies border width Cellpadding: value in pixels or percentage (%); specifies space between cell walls and content of cell Cellspacing: value of pixels or percentage (%); specifies space between cells

28 Thanks


Download ppt "HTML Assoc. Prof. Rozinah Jamaludin 28 January 2010."

Similar presentations


Ads by Google