Week 3 HTML Links Table List - Lab
Week 3 HTML Links Table List - Lab
& TABLE
LINK
The syntax of creating an anchor:
<a href="url">Text to be displayed</a>
The <a> tag is used to create an anchor to link from, the href
attribute is used to address the document to link to, and the
words between the open and close of the anchor tag will be
displayed as a hyperlink.
This anchor defines a link to a website:
<a href=“http://www.google.com”>Visit Google</a>
These anchors defines a link to a document
<a href=“hello.html”>hello.html file</a>
<a href=
“http://www.w3schools.com/html/html_links.asp”>Learn
HTML Link</a>
LINK
LINK
Using Image as anchor:
Instead of writing the label of the link,
sometimes you might want to use an image
to link to other pages. Here is the example:
<html>
<html>
<head><title></title>
<head><title></title>
</head>
</head>
<body>
<body>
<a
<a href=#Sectionname>Display
href=#Sectionname>Display title
title here</a>
here</a>
<a
<a name=Sectionname>Write
name=Sectionname>Write all
all contents
contents here</a>
here</a>
</body>
</body>
</html>
</html>
LIST
There are two types of list tag namely:
Unordered list
Ordered list
Unordered list has the following format:
<ul>
<ul> Other
Other methods:
methods: Output:
Output:
<li>
<li> text
text </li>
</li> <ul
<ul type=
type= “disc”>
“disc”> ••
<li>
<li> text
text </li>
</li> <ul
<ul type=
type= “square”>
“square”> ▪▪
</ul>
</ul> <ul
<ul type=
type= “circle”>
“circle”> oo
UNORDERED LIST
Web 2.0 Applications
<ul>
<li> Blog</li>
<li> Social network </li>
</ul>
CASCADED UNORDERED LIST
Web 2.0 Phenomenon
<ul>
<li> Social Networking
Websites
</li>
<ul>
<li> Facebook </li>
<li> Twitter </li>
</ul>
<li> Wikis </li>
<li> Blog </li>
<ul>
<li> Photoblog</li>
<ul>
<li>Photopages</li></ul>
<li> Videoblog </li>
</ul>
</ul>
ORDERED LIST
Other
Other methods:
methods:
<ol>
<ol> <ol
<ol type=
type= “A”>
“A”>
<li>
<li> text
text </li>
</li> <ol
<ol type=
type= “a”>
“a”>
<li>
<li> text
text </li>
</li> <ol
<ol type=
type= “I”>
“I”>
</ol>
</ol> <ol
<ol type=
type= “i”>
“i”>
<OL>
Educational websites:
<ol>
<li> www.w3schools.com
</li>
<li> www.javascript.com
</li>
<li> www.aspeasy.com</li>
</ol>
<OL>
Brands of Laptop:
<ol type="A">
<li> Dell </li>
<li> Toshiba </li>
<li> Acer </li>
</ol>
<ol type="i">
<li> Compaq </li>
<li> Lenovo </li>
<li> Apple Macbook </li>
</ol>
TABLE
<TABLE>
<TR><TD>Text </TD></TR>
</TABLE>