SlideShare a Scribd company logo
HTML 4
Hypertext Markup Language
Tables, Lists & Links
Science & Art MultimediaScience & Art Multimedia
HTML – Tables
Why tables are important:
• to maintain the elements of your website
• to be creative with the design of pages
• to separate & organize different formatting styles
<table> to begin table
<tr> defines beginning of first row
<td> defines beginning of the cell
</td> to complete cell
</tr> to complete row
</table> to end table
Basic Table tags:
These attributes all rest inside the first table tag:
<table
border=0 (invisible border – very common)
border=10 (by default takes up 2 pixels of space)
bordercolor=“red”
bgcolor=“yellow”
width=320 (there is a height tag but not often used)
align=center (left or right) (allows text to wrap)
<br clear=left or right or all> (to stop wrap)
valign=top (top, middle, bottom or baseline)
hspace=20 vspace=20 (border around picture)
colspan=2 (cell spanning more then one column)
rowspan=2 (cell spanning more then one row)
>
Table Code: Exploring Different Attributes
cellspacing=0 determines the number of pixels
between each cell
(default is 2 pixels)
cellpadding=0 determines the number of pixels
between the contents and the cell
wall
(default is 1 pixel)
Setting cells to =0 is common in layout design
<!--browsers can be finicky so make sure to set
border=0 to ensure there is no space between any
web page elements (if desired)-->
Table Code:
HTML – Lists
Why lists are important:
• they are widely used on links pages
• they help in the organization of data
• they are quick and easy to create
Creating Lists:
• first determine the style of list
• then determine the content
(sometimes writing this out first helps)
• there are two main types of lists:
• ordered lists: perfect for giving step-by-step
instructions to a visitor
(numbers, roman numerals or letters)
• unordered lists: mostly used to simply list items
on a web page such as links
(discs, round or square bullets)
<ol> to begin ordered list
<li> list item </li>
</ol> to end ordered list
<ul> to begin unordered list
<li> list item </li>
</ul> to end unordered list
Basic List tags:
List Code: in Notepad
These all rest inside the first list tag:
<ol
type=I or i (for large or small roman numerals)
type=A or a (for capital or small letters)
type=1 (for numbers, which is the default)
>
<ul
type=disc (the default for first level lists)
type=round (the default for second level lists)
type=square (the default for third level lists)
>
List Code: Exploring Different Attributes
Nested Lists are useful for creating website
site maps , and are simply just lists inside of lists:
<ol>
<li> Introduction </li>
<ol> <!-- indenting helps organize code -->
<li> Are lists fun? </li>
<li> Are lists not fun? </li>
</ol>
<li> Conclusion </li>
<ol>
<li> Lists are fun  </li>
<li> Lists are not fun  </li>
</ol>
</ol>
List Code: Nested Lists (pg.141)
HTML – Links
Why links are important:
• to let visitors easily browse your webpages
• to execute or download files (ie. movies, pdf’s, etc.)
• to create the ability to browse via a text or image
• to let users easily move to & from a particular spot
Links have three parts: destination, label & target
• destination: determines where link will go
(another page, a movie or an anchor)
• label: determines what visitors see and click on
(text, image or combination)
• target: determines where destination is seen
(in new window or frame, etc.) (pg. 122)
Creating Links:
NOTE: Planning determines where viewers can and cannot go?
• Absolute: shows entire path to file “elephant.jpg”
(http://www.site.com/web/images/elephant.jpg)
• Relative: seen when on website (zoo.html)
(“images/elephant.jpg”)
Another type of link is:
• Local: an anchor to and from a particular spot
(<a href=“#bottom”>Go to Bottom</a>)
(<a name=“bottom”></a>)
Two types of Links: Absolute & Relative
Relative: as if going to page on your site
<a href=“welcome.html”>Welcome</a>
Absolute: as if going to another site
<a href=
“http://www.ibm.com/web/home.html”>
IBM Home</a>
Basic Link tags:
Link Code: in Notepad
Changing the color of links:
Must reside in the <body tag:
link= changes color of link not used yet
vlink= changes color of link already visited
alink= changes color of link when clicked
> example: (<body link=“black”>)
<!-- used to coordinate colors on pages.
If a clients website is black & red, you may
not want to have the standard blue links.
Viewers still need to know it’s a link-->
Link Code: Exploring Different Attributes
Link Pages to Make a Website:
a b o u tu s .h tm l s e r v ic e s .h tm l c o n ta c tu s .h tm l
m a r k e tin g .h tm l
h o m e .h tm l
in d e x .h tm l
Write out an organization chart for the
pages your website will contain.
* most browsers only
look for index.html
(contain meta tags)
Link Pages to Make a Website:
• create a new folder on your desktop
(site name?) (remember to use lowercase)
• in notepad create index.html (in folder)
• in notepad create the home, aboutus,
services and contactus pages
• create folder in website called marketing
and create a page called marketing.html
• link all the pages
HTML – Practice Assignment
Create a Links page for your website:
• put links inside a table using a list
• do research for relevant links
• explore your textbook for all the
different options you can utilize
• maybe use a picture link
NOTE: This is not for marks but is valuable to include in your website.

More Related Content

PDF
Web front end development introduction to html css and javascript
PPT
Basic css
PPTX
Css ppt
PDF
Basic-CSS-tutorial
ODP
PDF
Girls Can Code East Brunswick Workshop Slides
Web front end development introduction to html css and javascript
Basic css
Css ppt
Basic-CSS-tutorial
Girls Can Code East Brunswick Workshop Slides

What's hot (20)

PPTX
Responsive web design with html5 and css3
PDF
Girls Can Code East Brunswick Workshop Notes
PPTX
Cascading style sheet
PDF
PPTX
PPTX
PPTX
(Fast) Introduction to HTML & CSS
PDF
CSS Refresher
PPT
CSS 101
PPTX
PDF
Intro to HTML and CSS basics
PPTX
GCC 10-9-15
PDF
HTML(5) and CSS(3) for beginners - I
PDF
Introduction to HTML and CSS
PPTX
Beginners css tutorial for web designers
PDF
HTML CSS Basics
PDF
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
Responsive web design with html5 and css3
Girls Can Code East Brunswick Workshop Notes
Cascading style sheet
(Fast) Introduction to HTML & CSS
CSS Refresher
CSS 101
Intro to HTML and CSS basics
GCC 10-9-15
HTML(5) and CSS(3) for beginners - I
Introduction to HTML and CSS
Beginners css tutorial for web designers
HTML CSS Basics
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
Ad

Similar to Table tags 2 (20)

PPT
Introduction to HTML, CSS, and Scripting In the world of web development, thr...
PPTX
UNIT 3 presentation for subj ITWS 01.pptx
PPT
PPTX
Html.ppt
PPTX
HTML Webinar Class
PPTX
Html and css
PPTX
web page.pptxb dvcdhgdhdbdvdhudvehsusvsudb
PDF
Web Design
PPTX
FFW Gabrovo PMG - HTML
PPTX
HTML introduction for beginners Slides .pptx
PPT
HTML_JavaScript_Malaysia_2008 (2).ppt
PPTX
Howcssworks 100207024009-phpapp01
PDF
Scalar quick guide
PPTX
Web Design HTML for beginners and advanced learners .pptx
PPTX
1-22-24 INFO 2106.pptx
PPTX
LS2.1_V1_HTML.pptx
PPTX
HTMLforbeginerslearntocodeforbeginersinfh
Introduction to HTML, CSS, and Scripting In the world of web development, thr...
UNIT 3 presentation for subj ITWS 01.pptx
Html.ppt
HTML Webinar Class
Html and css
web page.pptxb dvcdhgdhdbdvdhudvehsusvsudb
Web Design
FFW Gabrovo PMG - HTML
HTML introduction for beginners Slides .pptx
HTML_JavaScript_Malaysia_2008 (2).ppt
Howcssworks 100207024009-phpapp01
Scalar quick guide
Web Design HTML for beginners and advanced learners .pptx
1-22-24 INFO 2106.pptx
LS2.1_V1_HTML.pptx
HTMLforbeginerslearntocodeforbeginersinfh
Ad

More from cherrybear2014 (12)

PPTX
Excel.t01
PPTX
Excel functions
PDF
Basics excel 20102
PPT
Session2
PPT
11 scripting languages
PPT
5 software design
PPTX
Intro to html
PPTX
Designing the product page
PPTX
Conditional statements
PPTX
Check,combo,list,picture box
PPTX
Forms and buttons
Excel.t01
Excel functions
Basics excel 20102
Session2
11 scripting languages
5 software design
Intro to html
Designing the product page
Conditional statements
Check,combo,list,picture box
Forms and buttons

Recently uploaded (20)

PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Getting Started with Data Integration: FME Form 101
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PPTX
cloud_computing_Infrastucture_as_cloud_p
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Heart disease approach using modified random forest and particle swarm optimi...
PPTX
TLE Review Electricity (Electricity).pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Tartificialntelligence_presentation.pptx
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Spectroscopy.pptx food analysis technology
PPTX
A Presentation on Artificial Intelligence
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Machine learning based COVID-19 study performance prediction
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Getting Started with Data Integration: FME Form 101
Group 1 Presentation -Planning and Decision Making .pptx
cloud_computing_Infrastucture_as_cloud_p
Programs and apps: productivity, graphics, security and other tools
Heart disease approach using modified random forest and particle swarm optimi...
TLE Review Electricity (Electricity).pptx
Spectral efficient network and resource selection model in 5G networks
SOPHOS-XG Firewall Administrator PPT.pptx
Reach Out and Touch Someone: Haptics and Empathic Computing
Tartificialntelligence_presentation.pptx
Empathic Computing: Creating Shared Understanding
Spectroscopy.pptx food analysis technology
A Presentation on Artificial Intelligence
Building Integrated photovoltaic BIPV_UPV.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Machine learning based COVID-19 study performance prediction
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...

Table tags 2

  • 1. HTML 4 Hypertext Markup Language Tables, Lists & Links Science & Art MultimediaScience & Art Multimedia
  • 2. HTML – Tables Why tables are important: • to maintain the elements of your website • to be creative with the design of pages • to separate & organize different formatting styles
  • 3. <table> to begin table <tr> defines beginning of first row <td> defines beginning of the cell </td> to complete cell </tr> to complete row </table> to end table Basic Table tags:
  • 4. These attributes all rest inside the first table tag: <table border=0 (invisible border – very common) border=10 (by default takes up 2 pixels of space) bordercolor=“red” bgcolor=“yellow” width=320 (there is a height tag but not often used) align=center (left or right) (allows text to wrap) <br clear=left or right or all> (to stop wrap) valign=top (top, middle, bottom or baseline) hspace=20 vspace=20 (border around picture) colspan=2 (cell spanning more then one column) rowspan=2 (cell spanning more then one row) > Table Code: Exploring Different Attributes
  • 5. cellspacing=0 determines the number of pixels between each cell (default is 2 pixels) cellpadding=0 determines the number of pixels between the contents and the cell wall (default is 1 pixel) Setting cells to =0 is common in layout design <!--browsers can be finicky so make sure to set border=0 to ensure there is no space between any web page elements (if desired)--> Table Code:
  • 6. HTML – Lists Why lists are important: • they are widely used on links pages • they help in the organization of data • they are quick and easy to create
  • 7. Creating Lists: • first determine the style of list • then determine the content (sometimes writing this out first helps) • there are two main types of lists: • ordered lists: perfect for giving step-by-step instructions to a visitor (numbers, roman numerals or letters) • unordered lists: mostly used to simply list items on a web page such as links (discs, round or square bullets)
  • 8. <ol> to begin ordered list <li> list item </li> </ol> to end ordered list <ul> to begin unordered list <li> list item </li> </ul> to end unordered list Basic List tags:
  • 9. List Code: in Notepad
  • 10. These all rest inside the first list tag: <ol type=I or i (for large or small roman numerals) type=A or a (for capital or small letters) type=1 (for numbers, which is the default) > <ul type=disc (the default for first level lists) type=round (the default for second level lists) type=square (the default for third level lists) > List Code: Exploring Different Attributes
  • 11. Nested Lists are useful for creating website site maps , and are simply just lists inside of lists: <ol> <li> Introduction </li> <ol> <!-- indenting helps organize code --> <li> Are lists fun? </li> <li> Are lists not fun? </li> </ol> <li> Conclusion </li> <ol> <li> Lists are fun  </li> <li> Lists are not fun  </li> </ol> </ol> List Code: Nested Lists (pg.141)
  • 12. HTML – Links Why links are important: • to let visitors easily browse your webpages • to execute or download files (ie. movies, pdf’s, etc.) • to create the ability to browse via a text or image • to let users easily move to & from a particular spot
  • 13. Links have three parts: destination, label & target • destination: determines where link will go (another page, a movie or an anchor) • label: determines what visitors see and click on (text, image or combination) • target: determines where destination is seen (in new window or frame, etc.) (pg. 122) Creating Links: NOTE: Planning determines where viewers can and cannot go?
  • 14. • Absolute: shows entire path to file “elephant.jpg” (http://www.site.com/web/images/elephant.jpg) • Relative: seen when on website (zoo.html) (“images/elephant.jpg”) Another type of link is: • Local: an anchor to and from a particular spot (<a href=“#bottom”>Go to Bottom</a>) (<a name=“bottom”></a>) Two types of Links: Absolute & Relative
  • 15. Relative: as if going to page on your site <a href=“welcome.html”>Welcome</a> Absolute: as if going to another site <a href= “http://www.ibm.com/web/home.html”> IBM Home</a> Basic Link tags:
  • 16. Link Code: in Notepad
  • 17. Changing the color of links: Must reside in the <body tag: link= changes color of link not used yet vlink= changes color of link already visited alink= changes color of link when clicked > example: (<body link=“black”>) <!-- used to coordinate colors on pages. If a clients website is black & red, you may not want to have the standard blue links. Viewers still need to know it’s a link--> Link Code: Exploring Different Attributes
  • 18. Link Pages to Make a Website: a b o u tu s .h tm l s e r v ic e s .h tm l c o n ta c tu s .h tm l m a r k e tin g .h tm l h o m e .h tm l in d e x .h tm l Write out an organization chart for the pages your website will contain. * most browsers only look for index.html (contain meta tags)
  • 19. Link Pages to Make a Website: • create a new folder on your desktop (site name?) (remember to use lowercase) • in notepad create index.html (in folder) • in notepad create the home, aboutus, services and contactus pages • create folder in website called marketing and create a page called marketing.html • link all the pages
  • 20. HTML – Practice Assignment Create a Links page for your website: • put links inside a table using a list • do research for relevant links • explore your textbook for all the different options you can utilize • maybe use a picture link NOTE: This is not for marks but is valuable to include in your website.