HTML2 - absolute link</a> absolute...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 170:  HTML 2 Prof. Jim Appenzeller speaker@rci.rutgers.edu
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
More required tags / attributes Font  <font>some sentence</font> Attributes:  Face    <font face=“Arial”>some text</font> Size  <font size=“2”>some text</font> Color  <font color=“Red”>some text</font> Body tag attributes <body bgcolor=”Red” ></body> Hyper links (aka Anchor tags)   <a href=“somepage.html”>anchor text</a>
Background image of page 2
More required tags / attributes Images    <img src=“someimage.jpg” /> Lists ordered  <ol> </ol> unordered  <ul></ul> list items:  <li></li> bullet attribute:   <li type=“1”></li>   <li type=“square”></li>
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
A note on color Color names ( Green ) www. w3schools.com/HTML/html_colornames.asp Also uses hexadecimal numbers  (#C1FFA3)
Background image of page 4
Hyperlinks Absolute vs relative addressing absolute:  <a href=“http://www.somesite.com/page.html”>an 
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: absolute link&lt;/a&gt; absolute links have http:// in front of them relative: &lt;a href=/page.html&gt;a relative link&lt;/a&gt; This means the location is RELATIVE TO the root of the site relative: &lt;a href=page.html&gt;a relative link&lt;/a&gt; This means the location is RELATIVE TO the current directory .. And / are used to move up and down directories Opening links in a new window use the target attribute: &lt;a href= mypage.html target=_blank&gt;&lt;/a&gt; Linking to other file types eg .MP3, .PDF, .DOC, .PPT etc sometimes displays, sometimes downloads Images (cont) Common attributes: align height, width border alt attribute vspace, hspace You can put images in the page background &lt;body background=/image.jpg &gt;&lt;/body&gt;...
View Full Document

Page1 / 6

HTML2 - absolute link&amp;amp;lt;/a&amp;amp;gt; absolute...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online