+ All Categories
Home > Documents > HTML (continued). Assignment 3 Creating a web page with: Images Hyperlinks to some websites ...

HTML (continued). Assignment 3 Creating a web page with: Images Hyperlinks to some websites ...

Date post: 12-Jan-2016
Category:
Upload: edwina-byrd
View: 218 times
Download: 0 times
Share this document with a friend
19
HTML (continued)
Transcript
Page 1: HTML (continued). Assignment 3 Creating a web page with:  Images  Hyperlinks to some websites  Hyperlinks to your email  Information about a company,

HTML (continued)

Page 2: HTML (continued). Assignment 3 Creating a web page with:  Images  Hyperlinks to some websites  Hyperlinks to your email  Information about a company,

Assignment 3

Creating a web page with: ImagesHyperlinks to some websitesHyperlinks to your email Information about a company, products, etc.

Post your web page on the pegasus server

Page 3: HTML (continued). Assignment 3 Creating a web page with:  Images  Hyperlinks to some websites  Hyperlinks to your email  Information about a company,

Inserting an image

<img src=“path” />path: the location of image file Absolute path: full path

<img src = “http://www.google.com/images/logo.gif” />

Relative path: relation of file to the current HTML document.

<img src = “./logo.gif” />

<img src = “logo.gif” /> The same

Page 4: HTML (continued). Assignment 3 Creating a web page with:  Images  Hyperlinks to some websites  Hyperlinks to your email  Information about a company,

public_html

img home.html

logo.gif building.jpg

<img src=“img/logo.gif” />

Or<img src= “http://pegasus.cc.ucf.edu/~your_nid/img/logo.gif” />

<img src=“img/logo.gif” />

Or<img src= “http://pegasus.cc.ucf.edu/~your_nid/img/logo.gif” />

Page 5: HTML (continued). Assignment 3 Creating a web page with:  Images  Hyperlinks to some websites  Hyperlinks to your email  Information about a company,

Inserting an image

Important!

file-location or filename is case sensitive!

img.GIF ≠ img.gif IMg.gif ≠ img.gif Don’t use blank in the filename

Page 6: HTML (continued). Assignment 3 Creating a web page with:  Images  Hyperlinks to some websites  Hyperlinks to your email  Information about a company,

Heading

<h1> H1 heading </h1>

<h2> H2 heading </h2>

<h3> H3 heading </h3>

<h4> H4 heading </h4>

<h5> H5 heading </h5>

<h6> H6 heading </h6>

Page 7: HTML (continued). Assignment 3 Creating a web page with:  Images  Hyperlinks to some websites  Hyperlinks to your email  Information about a company,

Block quoteExample:

Heading

Block quote

Page 8: HTML (continued). Assignment 3 Creating a web page with:  Images  Hyperlinks to some websites  Hyperlinks to your email  Information about a company,

Block quote

Using <h#> and <blockquote> tag:<h1> (or <h2>,...) Heading content </h1><blockquote> Quote content here......</blockquote>

Example:<h1> Grading issue</h1><blockquote> Quote content.</blockquote>

Page 9: HTML (continued). Assignment 3 Creating a web page with:  Images  Hyperlinks to some websites  Hyperlinks to your email  Information about a company,

BlockQuote

To make Indented textUse embedded blockquote element<blockquote>

Text …<blockquote>Text …</blockquote>

</blockquote>

Page 10: HTML (continued). Assignment 3 Creating a web page with:  Images  Hyperlinks to some websites  Hyperlinks to your email  Information about a company,

Characters formatting

Bold <b> Bold Text </b> result: Bold Text

Italic <i> Italic Text </i> result: Italic Text

Underlined<u> Underlined Text </u> result: Underlined

Text

Page 11: HTML (continued). Assignment 3 Creating a web page with:  Images  Hyperlinks to some websites  Hyperlinks to your email  Information about a company,

Characters formatting

Superscripted Text Text <sup> supscript </sup>

result:

Subscripted Text Text <sub> subscript </sub>

result:

Page 12: HTML (continued). Assignment 3 Creating a web page with:  Images  Hyperlinks to some websites  Hyperlinks to your email  Information about a company,

Add character tags into webpage

.......<body><h1 >CGS2100 Lab </h1><ol>

<li> <b>Student's name:</b> your name </li> <li> <b>Lab section:</b> 00## </li> <li><b>Lab instructor:</b><i>Yuping Shen</i></li> <li><b>Email:</b><u>[email protected] </u></li></ol><body>....

Page 13: HTML (continued). Assignment 3 Creating a web page with:  Images  Hyperlinks to some websites  Hyperlinks to your email  Information about a company,

Horizontal line

<hr />

Page 14: HTML (continued). Assignment 3 Creating a web page with:  Images  Hyperlinks to some websites  Hyperlinks to your email  Information about a company,

Special Characters

Special characters like ©, ®, ° HTML supports the use of character

symbols that are identified by a code number or code name.

&code

Example: &copy or &#169 ©

Page 15: HTML (continued). Assignment 3 Creating a web page with:  Images  Hyperlinks to some websites  Hyperlinks to your email  Information about a company,

Special Characters

Page 16: HTML (continued). Assignment 3 Creating a web page with:  Images  Hyperlinks to some websites  Hyperlinks to your email  Information about a company,

Decoration of the text

<font color=“color” size= number face=“face_name”>

Text displaying

</font>

Example: <font color=“blue” size=10 face=“impact”>Text </font>

Page 17: HTML (continued). Assignment 3 Creating a web page with:  Images  Hyperlinks to some websites  Hyperlinks to your email  Information about a company,

Applying style to a list

Change the marker of a list Attribute style of <ol> or <ul>

Order list: style=“list-style-type:lower-alpha”Unordered list: style = “list-style-type:square” Image as marker:

style = “list-style-image:url(Arrow.gif)”

Page 18: HTML (continued). Assignment 3 Creating a web page with:  Images  Hyperlinks to some websites  Hyperlinks to your email  Information about a company,

Applying style to a list

E.g. <ul style=“list-style-image:url(Arrow.gif)”> <li>Line 1</li> <li>Line 2</li> </ul>

Page 19: HTML (continued). Assignment 3 Creating a web page with:  Images  Hyperlinks to some websites  Hyperlinks to your email  Information about a company,

Other issues

Alignment attribute

<p align=“center”> Title </p>

<p align=“right”> Address:.... </p>

<h1 align=“center”>Heading</h1>


Recommended