1.03k likes | 1.23k Views
Project 2. Creating a Web Site with Links. Objectives. Describe linking terms and definitions Add a link to another Web page Create a home page Enhance a Web page using images Add bold, italics, and color to text Change bullet type Insert a background image. Objectives.
E N D
Project 2 Creating a Web Sitewith Links
Objectives • Describe linking terms and definitions • Add a link to another Web page • Create a home page • Enhance a Web page using images • Add bold, italics, and color to text • Change bullet type • Insert a background image
Objectives • Insert a horizontal rule image • Add an e-mail link • View the HTML file and test the links • Edit the second Web page • Insert an image and wrap text around an image • Add a text link to another Web site
Objectives • Add an image link to another Web site • Create links within a Web page • Set link targets • Add links to set targets • Describe types of image files • Control image sizing • Locate images
Introduction to Links • Hyperlinks (or links) are used to connect a Web page to another Web page • Links can also be used to create an email link • Either text or an image can be used as a hotspot for a link • The mouse pointer usually changes when positioned over a hotspot • URL appears on status bar when the mouse pointer is over a hotspot
image link text link status bar Introduction to Links
Introduction to Links • With text links, always use descriptive text as the clickable word(s) • Unless otherwise stated, the color of text links is dependent upon browser-defined defaults • Format to change link colors: <BODY LINK=“color” VLINK=“color” ALINK=“color”>
Introduction to Links normal link (LINK) visited link (VLINK) active link (ALINK)
Linking within a Web Page • Allows visitors to move quickly from one section of the Web page to another • Important for large Web pages • Commands • Table of contents
links to targets targets Linking within a Web Page
Start Notepad • Click the Start button on the taskbar and then point to Programs on the Start menu • Point to Accessories on the Programs submenu and then point to Notepad on the Accessories submenu • Click Notepad • If necessary, click the Maximize button • Click Edit on the menu bar • If Word Wrap is not checked, click Word Wrap
Creating a Home Page • A home page is the main page of a Web site • Visitors usually view the home page first • Identify the purpose of your Web site • Links should be apparent • Include an e-mail link
Entering a Heading • The <FONT> tag can enhance the heading • Various FONT attributes
normal text text with color different font face different font size Sample Font Attributes
heading code Enter the Heading You should always end the tags in the opposite direction from which you started them
Enter the Bulleted Lists • Enter two bulleted lists, using the code below:
code for bulleted lists Modified HTML Document
Web Page Images • Classes of Images • Inline images • External images • Image types • JPEG • GIF • Interlaced GIF • PNG
Image Attributes • Attributes that can be used with the <IMG> tag
Inserting a Background Image • The BACKGROUND attribute inserts the background image on a Web page
Inserting a Horizontal Rule Image • Setting the HEIGHT and WIDTH attribute helps the image display faster • Defining an image too large will make it appear grainy
Copying and Pasting Text • Eliminates the need to type the same command more than once • Helps eliminate errors in typing commands repeatedly • Copy and Paste functionality is also available in other Windows applications
highlight the text you wish to copy Click the Edit menu Copying and Pasting Text
Point to and click Copy Copying and Pasting Text
Click the Edit menu Position your cursor where you want to paste the text Copying and Pasting Text
Point to and click Paste Copying and Pasting Text
Copying and Pasting Text pasted line
Adding a Link to the Second Web Page • The <A> and </A> tags are used to create links • Referred to as anchortags • Use the Hyperlink REFerence (HREF) attribute to link to another Web page • Two items required • Text or image to act as hotspot • Name of the file to which you want to link
Adding a Link to Another Web Page Enter the following text into your document
Add this command before the word “sample” Add this command after the word “sample” Adding a Link to Another Web Page
link to sample1.htm page text used for link end oflink Anchor Tag Anatomy <A HREF=“sample1.htm”>sample</A>
Adding an E-Mail Link • It is necessary to instruct visitors to contact you with any information or suggestions • The <A> and </A> tags are also used to create email links
Adding an E-Mail Link add this text
link to e-mail address e-mailaddress end oflink E-Mail Link Anatomy <A HREF=“mailto:webres@isp.com”>webres@isp.com</A>
Saving and Printing the HTML File • Insert the HTML Data Disk in drive A: • Select Save As from the File menu • Save to your A: drive • Save with the filename webreshome.htm • Click the Save button • Select Print from the File menu
Viewing the Web Page • To View the Web Page • Start your browser • Maximize your browser window • Click the Address bar • Type a:\webreshome.htm in the Address text box • Press the ENTER key
horizontal ruleimage horizontal ruleimage background image changed bullet types changed bullet types home page text link to second page e-mail link Viewing the Web Page
Printing the Web Page • Click the Print button on the Standard Buttons toolbar
Point to and click the e-mail link Testing the Links
click theclose button e-mail address inTo: text box Testing the Links
With the HTML Data Disk in drive A, point to and clickthe link, sample Testing the Links
Testing the Links Second Web page should appear