Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2

27
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create lists using HTML View an HTML document

description

Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create lists using HTML View an HTML document. Section 4.3 Insert images using HTML Insert links using HTML - PowerPoint PPT Presentation

Transcript of Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2

Page 1: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

Section 4.1• Format HTML tags• Identify HTML guidelines

Section 4.2• Organize Web site files and folder• Use a text editor• Use HTML tags and attributes• Create lists using HTML• View an HTML document

Page 2: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

Section 4.3• Insert images using HTML• Insert links using HTML• Debug and test a Web page

Section 4.4• Re-create an existing HTML document in FrontPage• Test a Web page in FrontPage

Page 3: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

4.1 HTML CodingGuide to Reading

Main Ideas

An HTML document is composed of instructions, or tags. These tags tell Web browsers how to display the content contained in a Web page. The World Wide Web Consortium establishes guidelines and standards for using HTML.

Key Terms

Hypertext Markup Language (HTML)

HTML tag

starting tag

ending tag

nested tag

empty tag

source code

pp. 92-94

Page 4: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

4.1 HTML CodingHTML Tags

You create Web page documents by inserting HTML tagsHTML tags into a text document.

Hypertext Markup Language (HTML) The code used to create Web pages. (p. 92)

HTML tag Text contained between two angle brackets (< >) that tells the Web browser how to display a page’s content. (p. 92)

pp. 92-94

Page 5: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

4.1 HTML CodingHTML Tags

HTML tags often come in startingstarting and ending tagending tag sets.

Nesting tagsNesting tags refers to placing the tags in particular order.

Empty tagsEmpty tags do not require an ending tag.

pp. 92-94

starting tag The first of a pair of HTML tags; also known as an opening tag. (p. 92)

ending tag The last of a pair of HTML tags; also known as a closing tag. (p. 92)

nested tag An HTML tag that is enclosed within another set of tags. (p. 93)

empty tag An HTML tag that requires only an opening tag; also known as an orphan tag. (p. 93)

Page 6: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

Understanding and using the basic guidelines for HTML code will help you see the relationship between the code you write and what you see in the Web browser. For example, extra spaces between elements in an HTML document will not necessarily display in a Web browser.

4.1 HTML CodingHTML Guidelines

pp. 92-94

Page 7: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

4.1 HTML CodingHTML Guidelines

Viewing source codesource code will allow you to see the text and the HTML commands used to create the Web site.

source code The text and HTML commands used to create the Web page.

(p. 94)

pp. 92-94

Page 8: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

4.2 Using a Text EditorGuide to Reading

Main Ideas

You can use a text editor to create text documents that can be displayed in a Web browser. These documents must contain HTML commands. Always organize your folders and files carefully when creating a Web site.

Key Terms

file name extension

attribute

ordered list

unordered list

pp. 96-102

Page 9: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

Every Web site is composed of folders and files.

Whether you use a text editor or a Web site development application, you must keep your files organized.

4.2 Using a Text EditorOrganizing Files and Folders

pp. 96-102

Page 10: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

4.2 Using a Text EditorUsing Notepad

Notepad can be used as a text editor for creating Web sites.

When you save a file for the first time in Notepad, use the Save As function to name the file and choose the file name file name extensionextension.

file name extension The three or four characters after a period in a file name that tell the computer system what type of file it is reading. (p. 97)

pp. 96-102

Page 11: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

4.2 Using a Text EditorAdding Attributes using HTML

Some HTML tags can contain attributes to specify the tags characteristics. Some attributesattributes include:

• Font color• Background color• Heading• Alignment

attribute An HTML instruction that is included in an HTML tag to specify a characteristic of a Web page element. (p. 98)

pp. 96-102

Page 12: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

4.2 Using a Text EditorCreating Lists Using HTML

Creating lists can make text easier to read and add visual interest to a page.

There are two types of lists: ordered listsordered lists and unordered listsunordered lists.

pp. 96-102

ordered list A type of list that contains items, usually numbered, that must appear in a particular sequence. (p. 100)

unordered list A list that contains items that can appear in any order. (p. 100)

Page 13: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

With text editors you cannot see how your page will appear in a Web browser while you are creating it. You must save the HTML document and then view it in a browser.

4.2 Using a Text EditorViewing an HTML Page

pp. 96-102

Page 14: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

• Activity 4A – Creating Folders to Organize a Site (p. 96)• Activity 4B – Creating and Saving an HTML Document

(p. 98)• Activity 4C – Adding Color and Formatting Text Using HTML

(p. 100)• Activity 4D – Creating an Unordered List Using HTML

(p. 101)• Activity 4E – Viewing HTML in a Browser (p. 102)

4.2 Using a Text Editorpp. 96-102

Page 15: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

4.3 Enhancing and Testing Your PageGuide to Reading

Main Ideas

Use image tags to insert graphics using HTML. You can create links by using an anchor tag to specify the clickable area. A link can be absolute or relative. Web pages must be tested.

Key Terms

text link

graphic link

anchor tag

absolute link

relative link

debugging

testing

pp. 103-108

Page 16: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

You can insert images into pages using the <img> tag and assign the five common attributes:

• Source (src)• Alternative text (alt)• Align (align)• Width (width)• Height (height)

4.3 Enhancing and Testing Your PageAdding Images Using HTML

pp. 103-108

Page 17: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

4.3 Enhancing and Testing Your PageInserting Links Using HMTL

There are several different types of links using HTML.

• Anchor tagAnchor tag• Text linkText link• Graphic linkGraphic link

anchor tag An HTML tag used to create hyperlinks. The tag identifies what is clicked on and where it links to. (p. 104)

text link A type of link in which users click text to activate the link. (p. 105)

graphic link A type of link in which users click on an image to activate the link. (p. 105)

pp. 103-108

Page 18: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

4.3 Enhancing and Testing Your PageInserting Links Using HMTL

Text and graphic links are either absoluteabsolute or relativerelative.

absolute link A type of link that contains the complete URL or path of the file being linked to. (p. 105)

relative link A type of link that is used when linking to a local file, such as one within the same Web site. (p. 105)

pp. 103-108

Page 19: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

4.3 Enhancing and Testing Your PageTesting a Web Page

You should debugdebug and test test your Web site often to make sure that the page displays properly and all links are connected correctly.

debugging The process of locating and correcting errors in a Web site’s HTML code. (p. 107)

testing The process of repeatedly checking the Web page and site to make certain that elements display as designed. (p. 107)

pp. 103-108

Page 20: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

The World Wide Web Consortium (W3C) releases specifications, called recommendations, on HTML.

You can read the complete specifications on the W3C Web site.

The specifications developed by this governing body help ensure that Web designers create pages that follow specific standards and can be displayed by any browser that also follows these specifications.

4.3 Enhancing and Testing Your PageHTML and the W3C

pp. 103-108

Page 21: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

• Activity 4F – Inserting and Image Using HTML (p. 104)• Activity 4G – Inserting Absolute Links using HTML (p. 106)• Activity 4H – Testing an HTML Document (p. 107)

4.3 Enhancing and Testing Your Pagepp. 103-108

Page 22: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

4.4 FrontPage versus NotepadGuide to Reading

Main Ideas

A Web site development application allows you to create Web sites by clicking buttons instead of typing HTML commands into a text document.

Key Terms

border

embedded file

pp. 110-114

Page 23: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

The major advantage of using FrontPage is that you can see how your final page will appear.

FrontPage allows you to quickly change attributes, such as color, and see how they look.

4.4 FrontPage versus NotepadAdding Color and Formatting Text in

FrontPage

pp. 110-114

Page 24: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

4.4 FrontPage versus NotepadAdding Graphics and Links

When using FrontPage, adding a borderborder can add visual interest to your page.

When you save a page, you will be asked where to save embedded filesembedded files.

border A visual break on the page that is used to add interest and to separate elements. (p. 113)

embedded file File that you add to the FrontPage document from other applications. (p. 113)

pp. 110-114

Page 25: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

Always spell check and proofread your Web page.

Also view your Web page in more than one browser to make sure each line works properly.

4.4 FrontPage versus NotepadTesting a Web Page

pp. 110-114

Page 26: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

• Activity 4I – Creating and Formatting a page in FrontPage

(p. 110)• Activity 4J – Adding Headings and Unordered Lists in

FrontPage (p. 112)• Activity 4K – Inserting a Graphic and Links in FrontPage

(p. 63)• Activity 4L – Testing a Web Page in FrontPage (p. 114)

4.4 FrontPage versus Notepadpp. 110-114

Page 27: Section 4.1  Format HTML tags  Identify HTML guidelines Section 4.2

For more resources on this chapter, go to the Introduction to Web Design Web site at webdesign.glencoe.com.

Chapter 4Resources