Creating Web Pages with Links, Images, and Formatted Text
260 likes | 291 Vues
Learn how to create a homepage and enhance web pages with images, links, and formatting techniques. Use absolute and relative paths, align text, change bullet types, and add background images.
Creating Web Pages with Links, Images, and Formatted Text
E N D
Presentation Transcript
Project 3 Creating Web Pages with Links, Images, and Formatted Text
Project Objectives • Create a home page and enhance a Web page using images • Use absolute and relative paths • Align and add bold, italics, and color to text • Change the bullet type used in an unordered list • Add a background image • Add a text link to a Web page in the same Web site • Add an e-mail link • Add an image with wrapped text • Add links to targets within a Web page Project 3: Creating Web Pages with Links, Images, and Formatted Text
Entering HTML Tags to Define the Web Page Structure <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Plant World Homepage</title> </head> <body> </body> </html> Project 3: Creating Web Pages with Links, Images, and Formatted Text
Adding an Image <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Plant World Homepage</title> </head> <body> <img src="plantworldlg.jpg“ width="720“ height="84“ alt="Plant World logo" /> </body> </html> Project 3: Creating Web Pages with Links, Images, and Formatted Text
Adding a Left-Aligned Heading with a Font Color <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Plant World Homepage</title> </head> <body> <img src="plantworldlg.jpg“ width="720“ height="84“ alt="Plant World logo" /> <h1><font color="#000066">Welcome to Plant World!</font></h1> </body> </html> Project 3: Creating Web Pages with Links, Images, and Formatted Text
Entering a Paragraph of Text <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Plant World Homepage</title> </head> <body> <img src="plantworldlg.jpg“ width="720“ height="84“ alt="Plant World logo" /> <h1><font color="#000066">Welcome to Plant World!</font></h1> <p>For the finest in indoor and outdoor plants,…</p> </body> </html> Project 3: Creating Web Pages with Links, Images, and Formatted Text
Creating Unordered (Bulleted) Lists ….. <p>For the finest in indoor and outdoor plants,…</p> <h2> Our company</h2> <ul type = "square"> <li>Founded in 1989 by Margaret Anne Coles</li> <li>Headquartered in Surprise, Arizona</li> <li>25 store locations throughout the Southwest</li> </ul> <h2> Our Services</h2> <ul type = "square"> <li>Residential and commercial landscaping</li> <li>Plant and lawn maintenance</li> <li>online information for all varieties of plants</li> </ul> </body> </html> Project 3: Creating Web Pages with Links, Images, and Formatted Text
Adding a Background Image <html> <head> <title>Plant World Homepage</title> </head> <body > <img src="plantworldlg.jpg“ width="720“ height="84“ alt="Plant World logo" /> <h1><font color="#000066">Welcome to Plant World!</font></h1> <p>For the finest in indoor and outdoor plants,…</p> <h2> Our company</h2> <ul type = "square"> … </ul> </body> </html> Project 3: Creating Web Pages with Links, Images, and Formatted Text
Adding a Background Image <html> <head> <title>Plant World Homepage</title> </head> <body background=“greyback.jpg” > <img src="plantworldlg.jpg“ width="720“ height="84“ alt="Plant World logo" /> <h1><font color="#000066">Welcome to Plant World!</font></h1> <p>For the finest in indoor and outdoor plants,…</p> <h2> Our company</h2> <ul type = "square"> … </ul> </body> </html> Project 3: Creating Web Pages with Links, Images, and Formatted Text
Adding a Text Link to Another Web Page within the Same Web Site <html> <head> <title>Plant World Homepage</title> </head> <body background=“greyback.jpg” > <img src="plantworldlg.jpg“ width="720“ height="84“ alt="Plant World logo" /> <h1><font color="#000066">Welcome to Plant World!</font></h1> <p>For the finest in indoor and outdoor plants,…</p> <h2> Our company</h2> <ul type = "square"> … </ul> <p>To learn more about the Plant World products and services.. this month's featured desert plants, …</p> </body> </html> Project 3: Creating Web Pages with Links, Images, and Formatted Text
Adding a Text Link to Another Web Page within the Same Web Site <html> <head> <title>Plant World Homepage</title> </head> <body background=“greyback.jpg” > <img src="plantworldlg.jpg“ width="720“ height="84“ alt="Plant World logo" /> <h1><font color="#000066">Welcome to Plant World!</font></h1> <p>For the finest in indoor and outdoor plants,…</p> <h2> Our company</h2> <ul type = "square"> … </ul> <p>To learn more about the Plant World products and services.. this month's featured <a href="desertplants.htm"> desert plants</a>, …</p> </body> </html> Project 3: Creating Web Pages with Links, Images, and Formatted Text
Adding an E-Mail Link <html> <head> <title>Plant World Homepage</title> </head> <body background=“greyback.jpg” > <img src="plantworldlg.jpg“ width="720“ height="84“ alt="Plant World logo" /> <h1><font color="#000066">Welcome to Plant World!</font></h1> <p>For the finest in indoor and outdoor plants,…</p> <h2> Our company</h2> <ul type = "square"> … </ul> <p>To learn more about the Plant World products and services.. this month's featured <a href="desertplants.htm"> desert plants</a>, …</p> <p>Have a question or comment? Call us at (206) 555-PLANT or e-mail us at plantworld@isp.com. </p> </body> </html> Project 3: Creating Web Pages with Links, Images, and Formatted Text
Adding an E-Mail Link <html> <head> <title>Plant World Homepage</title> </head> <body background=“greyback.jpg” > <img src="plantworldlg.jpg“ width="720“ height="84“ alt="Plant World logo" /> <h1><font color="#000066">Welcome to Plant World!</font></h1> <p>For the finest in indoor and outdoor plants,…</p> <h2> Our company</h2> <ul type = "square"> … </ul> <p>To learn more about the Plant World products and services.. this month's featured <a href="desertplants.htm"> desert plants</a>, …</p> <p>Have a question or comment? Call us at (206) 555-PLANT or e-mail us at <a href="mailto:plantworld@isp.com">plantworld@isp.com</a>. </p> </body> </html> Project 3: Creating Web Pages with Links, Images, and Formatted Text
Formatting Text in Bold <p>For the finest in indoor and outdoor plants,…</p> Project 3: Creating Web Pages with Links, Images, and Formatted Text
Formatting Text in Bold <p>For the finest in <b>indoor and outdoor</b> plants,…</p> Project 3: Creating Web Pages with Links, Images, and Formatted Text
Formatting Text in Italics <p>For the finest in <b>indoor and outdoor</b> plants,…</p> Project 3: Creating Web Pages with Links, Images, and Formatted Text
Formatting Text in Italics <p>For the finest in <b><em>indoor</em> and outdoor</b> plants,…</p> Project 3: Creating Web Pages with Links, Images, and Formatted Text
Formatting Text with a Font Color <li>Founded in 1989 by Margaret Anne Coles</li> Project 3: Creating Web Pages with Links, Images, and Formatted Text
Formatting Text with a Font Color <li> <font color="#000099"> Founded in 1989 by Margaret Anne Coles</ font ></li> Project 3: Creating Web Pages with Links, Images, and Formatted Text
Adding an Image with Wrapped Text <a name="agaveamericana"></a><font size="+1">Agave Americana</font> <img src="agave.jpg" align=“left" alt= "Agave" width="212" height="203" /> Project 3: Creating Web Pages with Links, Images, and Formatted Text
Clearing the Text Wrapping <a name="agaveamericana"></a><font size="+1">Agave Americana</font> <img src="agave.jpg" align="left" alt= "Agave" width="212" height="203" /> Project 3: Creating Web Pages with Links, Images, and Formatted Text
Clearing the Text Wrapping <a name="agaveamericana"></a><font size="+1">Agave Americana</font> <img src="agave.jpg" align="left" alt= "Agave" width="212" height="203" /> <br clear="left" /> Project 3: Creating Web Pages with Links, Images, and Formatted Text
Adding a Text Link to a Web Page in Another Web Site <p>To find out more information about desert plants, visit the <a href="http://www.desertmuseum.org">Arizona-Sonora Desert Museum</a>.</p> </body> Project 3: Creating Web Pages with Links, Images, and Formatted Text
Setting Link Targets <a name="agaveamericana"></a><font size="+1">Agave Americana</font> (already created) Project 3: Creating Web Pages with Links, Images, and Formatted Text
Adding Links to Link Targets within a Web Page • Go to top (or anyplace which is far from the target) and type <a href="#agaveamericana"> Agave Americana </a> and then press the ENTER key Project 3: Creating Web Pages with Links, Images, and Formatted Text
Project 3 Complete Creating Web Pages with Links, Images, and Formatted Text