Presentation is loading. Please wait.

Presentation is loading. Please wait.

McGraw-Hill/Irwin © The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T10 Creating Web pages Using HTML.

Similar presentations


Presentation on theme: "McGraw-Hill/Irwin © The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T10 Creating Web pages Using HTML."— Presentation transcript:

1 McGraw-Hill/Irwin © The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T10 Creating Web pages Using HTML

2 T10-2 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

3 T10-3 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

4 T10-4 Anatomy of an HTML Tag

5 T10-5 The Tags The tags identify the document as an HTML document To use the tags, enter them in your document like this:

6 T10-6 The Tags The tags contain information about the document, including its title, scripts used, style definitions, and document descriptions To use the tags, enter them between the tags, for example:

7 T10-7 HTML tags are case- insensitive. For example is the same as

8 T10-8 The Tags The tags are contained in the document title The title does not appear within the browser window, although it is usually visible in the browser's title bar A HTML Tutorial

9 T10-9 The Tags The tags enclose all the tags, attributes, and information that you want a visitor's browser to display To use the tags, enter them below the closing tag and above the closing tag: A HTML Tutorial All the tags, attributes, and information in the document body go here. This is what the browser displays on the screen.

10 T10-10 Applying Style Tags And Attributes Style tags tell the browser exactly how to present the labeled text These elements constitute the basic HTML document components and, unlike the structure tags, do appear in the browser window

11 T10-11 Paragraphs One of the most common tags you will use is the paragraph tag,, which is appropriate for regular body text HTML automatically adds an extra blank line before and after a paragraph To use the paragraph tags, put them around the text you want to format as a paragraph, for example: A whole paragraph goes right here.

12 T10-12 Paragraphs HTML does not respect more then one blank space character. HTML does not respect blank line, unless is used.

13 T10-13 Creating Headings Headings break up large areas of text, announce topics to follow, and arrange information according to a logical hierarchy HTML provides six levels of headings: … The largest … … The smallest

14 T10-14 Creating Headings

15 T10-15 Creating Headings By default, all browsers align headings on the left To use the alignment attributes, include them in the initial heading tag, such as: Left-aligned Heading Centered Heading Right-aligned Heading

16 T10-16 CREATING HYPERLINKS A hyperlink is a bit of text or a graphic that you can click to… –Move to a different location on the page –Open a different Web page –Start an e-mail message –Download a file –View a movie –Listen to a sound clip –Activate a Web-based program

17 T10-17 Hyperlinking to a Web Page No matter what type of hyperlink you want to create, the basic syntax is the same It starts with the tag, and then uses an HREF= attribute that provides the URL (the path to the destination) This is followed with the text to display in the browser Example: StFX University

18 T10-18 Hyperlinking to an E-Mail Address To create a hyperlink to an e-mail address, use the same HREF= argument as before, but instead of a Web address, attribute is MAILTO: followed by the e-mail address. Contact Me Or… Contact Me jdoe@abc.com? SUBJECT=WebCOMMENT (which adds a subject line to the email)

19 T10-19 Hyperlinking

20 T10-20 Hyperlinking to Other Content A hyperlink can reference any file, not just a Web document You can take advantage of this to link to other content such as… –Microsoft Office documents –Compressed archive files such as.zip files –Executable program files such as setup utilities

21 T10-21 Applying Bold, Italic, and Other Emphases You can apply formatting to individual letters and words For example, you can make a word appear italic, bold, underlined, or superscript (as in e 2 ) Example: This is the end of a paragraph that also uses boldface. This is the beginning of the following paragraph.

22 T10-22 Applying Bold, Italic, and Other Emphases

23 T10-23 Common Character Formatting Tags

24 T10-24 Using Horizontal Rules Horizontal rules are lines that break up long sections of text, indicate a shift in information, or help improve the overall document design The tag is a nonpaired tag; it has no ending tag To use a horizontal rule, put the tag where you want the rule to appear: Long passages of text should often be broken into sections with headings and, optionally, horizontal rules. A Heading Also Breaks Up Text A new long passage can continue here.

25 T10-25 Using Horizontal Rules

26 T10-26 Horizontal Rule Attributes

27 T10-27 Inserting Line Breaks You can easily break paragraph lines by inserting the tag where you want the lines to break: There once was an HTML writer, Who tried to make paragraphs wider. She found with a shock All the tags did mock The attempt to move that text outside. Normally is used for poetry writing

28 T10-28 Creating Lists Lists are a great way to provide information in a structured, easy-to-read format Lists come in several varieties: 1.Numbered (ordered) 2.Bulleted (unordered) 3.Alphabetical

29 T10-29 Creating Lists 1.Start with text you want to format as a list: Lions Tigers Bears Oh, My! 2.Insert the tags around the list text: Lions Tigers Bears Oh, My! 3.Type the tag for each list item: Lions Tigers Bears Oh, My!

30 T10-30 Creating Lists

31 T10-31 Creating Lists For ordered list use the tag Lions Tigers Bears Oh, My! So it displays as 1.Lions 2.Tigers 3.Bears 4.Oh, My!

32 T10-32 List Attributes Outlines use sequential lists with letters. And numbering schemes for documentation. Use bullets for non-sequential items. Use different bullets for visual interest.

33 T10-33 Sample List

34 T10-34 DISPLAYING GRAPHICS Web pages are more interesting and attractive when they include graphics In a word-processing program such as Microsoft Word, graphics are embedded in the document In HTML each graphic displayed on a Web page is stored in a separate file, which must be stored on a Web server

35 T10-35 Inserting Graphics Inserting a graphic on a Web page is as simple as placing an tag where you want the graphic to appear, like this: When a file is stored in the same folder as the HTML document in which it is referenced, you can refer to the file name only, without any location information

36 T10-36 Inserting Graphics If you want to store your graphics in a subfolder of the folder containing the text files (to organize your files more tidily), you must refer to the graphic with the subfolder name, such as:

37 T10-37 Inserting Graphics By default, unless you place the image within a block-level tag such as a paragraph or heading, the image blocks off all the space horizontally.

38 T10-38 Using an Image as a link

39 T10-39 Creating Tables 1 2 apple orange pear

40 T10-40 Using Tables anywhere Make of use of tables anywhere in the webpage to organize your text, images, etc. Use border=‘0’ for borders not showing.

41 T10-41 Adding Comments Comments are sections of your HTML document that you may add to improve readability, but the Web browser ignores comments when interpreting HTML documents. Comments are enclosed as follows;

42 T10-42 Adding Comments Comments can span multiple lines as follows; <!-- This is a multiline comment. Everything between opening and closing tags is considered a comment and is ignored by the Browser -->

43 T10-43 ADDING COLORS SETTING BACKGROUND COLORS – SETTING FONT COLOR AND FONT SIZES –

44 T10-44 Summary: Structural and Style Tags

45 T10-45 HTML TOOLS In general, HTML editors fall into two categories: 1.Text- or code-based, which allows you to see the HTML code as you are creating documents. 2.WYSIWYG (What You See Is What You Get), which shows the results of code, similar to the way it will appear in a browser, as you are formatting your document.

46 T10-46 KompoZer-Easy Web Authoring! KompoZer is designed to be extremely easy to use, making it ideal for non-technical computer users who want to create an attractive, professional-looking web site without needing to know HTML or web coding. KampoZer is located at: S:\Lab Menu\Kompozer KompoZer is also a FREE download at http://kompozer.net/ http://kompozer.net/

47 T10-47 HTML Reference Best HTML tutorial website: http://www.w3schools.com/html/


Download ppt "McGraw-Hill/Irwin © The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T10 Creating Web pages Using HTML."

Similar presentations


Ads by Google