240 likes | 372 Views
CGS 2100 Lab Session 33. Assignment 1 grade is posted online. Assignment 2 is due by midnight Feb 5. Announcement. Talk to me if you are not happy with your grade. Late assignments are NOT accepted, for ANY reason. There is NO extension for ANY reason.
E N D
CGS 2100 Lab Session 33 • Assignment 1 grade is posted online. • Assignment 2 is due by midnight Feb 5.
Announcement • Talk to me if you are not happy with your grade. • Late assignments are NOT accepted, for ANY reason. • There is NO extension for ANY reason. • Please sign the sign-in sheet. Without your signature, I have NO way to verify your attendance.
Ways to get help • Email me (Use the correct subject format to get a quick response) • Ask me during office hours (Tue 10:30 – 11:30, CSB 114) • Open labs (Refer to the schedule on course webpage)
Complain your lab instructor • If you can not get a satisfied answer in front of me, please come to see Mr. Steven Freund Ph # (407)823-4697 Computer Center I 207 sfreund@cs.ucf.edu
Today’s topic More about HTML
Heading Tag Heading 1 Heading 2 <h1 align=“center”>CGS2100 Lab Section 26</h1> <h2 align=“center”>Fei Lu</h2>
Character Tags • Character Tags allow you to format individual characters. There are two kinds of character tags: logical and physical. Physical character tags will be covered in lab. • Physical Character Tags:
Add character tags to a HTML file <html> <head> <title>CGS2100 Lab</title> </head> <body> <h1 align="center">CGS2100 Lab Session 33</h1> <p><b>Student's name:</b> your name</p> <p><b>Lab section:</b> 33<p> <p>Lab instructor name: <i>Fei Lu</i><p> <body> </html>
You may see in web browser Bold Italic text
Insert an image • file is the full name of an image file (with extension name gif, jpg or jpeg) • Place the image file in the same folder (i.e. public_html if using Pegasus) as your HTML file. <img src=“file”>
Insert an image into HTML file <html> <head> <title>CGS2100 Personal Information</title> </head> <body> <h1 align="center">CGS2100 Lab Session 33</h1> <p><b>Student's name:</b> your name</p> <p><b>Lab section:</b> 33<p> <p>Lab instructor name: <i>Fei Lu</i><p> <p align=“center”><img src=“csbanner4.gif”></p> <body> </html> Image file name should be exactly the same (case sensitive) Add one line into the previous example
What we see from the browser Don’t forget to put the image in the same place as your HTML file
Add Hyper Links • A Hypertext Link may point to a document, an email address, another webpage etc. Link to an email Links to other websites
Linking to a website/webpage • Linking to a document on your computer • Using text editor, locate the text or image you want to act as a link. • Before the text or image, insert the code: <a href = “URL”> URL is the cyber address of destination website • After the text or image link, place the closing tag </a>
Linking to a website/webpage (con) The URL of the website, make sure “http://” is enclosed here
What you see in browser A hyper link is created
Displaying linked documents in a new window • By default, each web page you open is displayed in the main browser window, replacing the one you were viewing last. • To force a document to appear in a new window, we use the targetattribute in the href tag. General syntax is: <a href=“URL” target=“window”>Hypertext</a> Force to open a new window
E-mail Link • Linking to an E-mail address <a href=“mailto:abc@abc.com”>abc’s email</a>
Specify colors • <font color="000000">example </font> “red”, “blue”, “yellow”… or six hex numbers, “ABCDEF”…
Specify colors (con) • Change background color <body bgcolor=“FFFFFF"> … </body>
Assignment 3 • Read the instructions very carefully before you start. • Due by 11:59pm Feb 12 • You DO NOT need to submit anything for assignment 3
Log out • Please log out the computer before you leave.