CITS1231 Web Technologies. HTML Tables and Page Design Issues

Similar documents
IMY 110 Theme 7 HTML Tables

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

COMSC-030 Web Site Development- Part 1. Part-Time Instructor: Joenil Mistal

Html basics Course Outline

Tutorial 5 Working with Tables and Columns. HTML and CSS 6 TH EDITION

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Structuring Documents for the Web 1

Web Design and Application Development

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

INFS 2150 / 7150 Intro to Web Development / HTML Programming

Chapter 4 Notes. Creating Tables in a Website

Table of Contents. MySource Matrix Content Types Manual

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

Web Development & Design Foundations with HTML5

Table-Based Web Pages

Creating Web Pages with SeaMonkey Composer

Web Development IB PRECISION EXAMS

THE ASIAN SCHOOL. Class-10. ch8. A. Check the Right Answer (1*9)

Dreamweaver Basics. Planning your website Organize site structure Plan site design & navigation Gather your assets

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

Web Design and Development ACS Chapter 12. Using Tables 11/23/2017 1

Certified HTML5 Developer VS-1029

Chapter 4 Creating Tables in a Web Site Using an External Style Sheet

1. Please, please, please look at the style sheets job aid that I sent to you some time ago in conjunction with this document.

Lecture 08. Tables in HTML. Mr. Mubashir Ali Lecturer (Dept. of Computer Science)

Certified HTML Designer VS-1027

Bixby Public Schools Course Essential Elements Grade: Desktop Publishing

Tables *Note: Nothing in Volcano!*

Chapter 1 Introduction to Dreamweaver CS3 1. About Dreamweaver CS3 Interface...4. Creating New Webpages...10

Intermediate HTML Using Dreamweaver

HTML and CSS COURSE SYLLABUS

Chapter 7 Tables and Layout

Bridges To Computing

The figure below shows the Dreamweaver Interface.

Indian Institute of Technology Kharagpur. HTML Part III. Prof. Indranil Sen Gupta Dept. of Computer Science & Engg. I.I.T.

HTML BEGINNING TAGS. HTML Structure <html> <head> <title> </title> </head> <body> Web page content </body> </html>

Chapter 7 Tables and Layout

HyperText Markup Language/Tables

Chapter 5. Introduction to XHTML: Part 2

Dreamweaver CS3 Concepts and Techniques

Introducing Web Tables

Advanced HTML Scripting WebGUI Users Conference

Mobile MOUSe WEB SITE DESIGN ONLINE COURSE OUTLINE

Midterm Review. October 17

Developing a Basic Web Page

CSC 121 Computers and Scientific Thinking

CITS1231 Midterm Test (A total of 45 marks)

Index. CSS directive, # (octothorpe), intrapage links, 26

Exercise #2: your Profile

By Ryan Stevenson. Guidebook #2 HTML

Using Dreamweaver CC. 6 Styles in Websites. Exercise 1 Linked Styles vs Embedded Styles

Deccansoft Software Services

Eng 110, Spring Week 03 Lab02- Dreamwaver Session

Introduction to Computer Science (I1100) Internet. Chapter 7

Tables & Lists. Organized Data. R. Scott Granneman. Jans Carton

HTML Hyperlinks (Links)

COMS 359: Interactive Media

Welcome. Web Authoring: HTML - Advanced Topics & Photo Optimisation (Level 3) Richard Hey & Barny Baggs

How to use the Dealer Car Search ebay posting tool. Overview. Creating your settings

Page Layout Using Tables

HYPERTEXT MARKUP LANGUAGE ( HTML )

ADOBE Dreamweaver CS3 Basics

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

ABOUT WEB TECHNOLOGY COURSE SCOPE:

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

HTML, XHTML, and CSS 8/21/2011. Chapter Objectives. Chapter 4. Chapter Objectives. Chapter Objectives

Website Development with HTML5, CSS and Bootstrap

Using Dreamweaver CS6

CSS MOCK TEST CSS MOCK TEST III

HTML & XHTML Tag Quick Reference

1.264 Lecture 12. HTML Introduction to FrontPage

Creating Tables in a Web Site Using an External Style Sheet

Duke Library Website Preliminary Accessibility Assessment

Guidelines for doing the short exercises

epromo Guidelines DUE DATES NOT ALLOWED PLAIN TEXT VERSION

Advanced Web Programming C2. Basic Web Technologies

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

Dreamweaver MX Overview. Maintaining a Web Site

Chapter4: HTML Table and Script page, HTML5 new forms. Asst. Prof. Dr. Supakit Nootyaskool Information Technology, KMITL

Lesson 5 Introduction to Cascading Style Sheets

Intro to html. --- define every element, attribute, and entity along with the rules for their use

Introduction to the Internet and World Wide Web p. 1 The Evolution of the Internet p. 2 The Internet, Intranets, and Extranets p. 3 The Evolution of

Dreamweaver Basics Outline

Designing for Web Using Markup Language and Style Sheets

CompuScholar, Inc. Alignment to Utah's Web Development I Standards

Programmazione Web a.a. 2017/2018 HTML5

Chapter 1 Self Test. LATIHAN BAB 1. tjetjeprb{at}gmail{dot}com. webdesign/favorites.html :// / / / that houses that information. structure?

Microsoft Expression Web Quickstart Guide

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

LING 408/508: Computational Techniques for Linguists. Lecture 14

Styles, Style Sheets, the Box Model and Liquid Layout

E-Business Systems 1 INTE2047 Lab Exercises. Lab 5 Valid HTML, Home Page & Editor Tables

Final Exam Study Guide

Adobe Dreamweaver CS5/6: Learning the Tools

HTML TIPS FOR DESIGNING.

The [HTML] Element p. 61 The [HEAD] Element p. 62 The [TITLE] Element p. 63 The [BODY] Element p. 66 HTML Elements p. 66 Core Attributes p.

Slightly more advanced HTML

ICT IGCSE Practical Revision Presentation Web Authoring

introduction to XHTML

Overview 14 Table Definitions and Style Definitions 16 Output Objects and Output Destinations 18 ODS References and Resources 20

Transcription:

CITS1231 Web Technologies HTML Tables and Page Design Issues

Lecture Content Defining Tables Creating Hyperlinks Formatting Text Meta-data Good HTML practices 2

Creating a Newspaper-Style Layout 3

Table for Page Layout HTML tables are most often used to define the layout of an entire Web page If you want to design a page that displays text in newspaper style columns, or separates the page into distinct sections, you ll find tables an essential and useful tool 4

5

A Simple Table <body> <table border> <caption>the Caption</caption> <tr><th>heading1</th><th>heading2</th></tr> <tr><td>line1</td><td>line1</td></tr> <tr><td>line2</td><td>line2</td></tr> </table> The Caption </body> Heading1 Heading2 Line1 Line2 Line1 Line2 6

Table Elements The basic elements in tables are: table border A table with borders tr Table Row th Table Heading (appeared in bold face and centered) td Table Data Additional Attributes to add complexity: th and td have the attribute colspan and rowspan 7

A Complex Table <body> <table border> <caption>the Caption</caption> <tr><th>heading1</th><th>heading2</th></tr> <tr><td rowspan= 2 >Weekends</td><td>Saturday</td></tr> <tr><td>sunday</td></tr> </table> </body> The Caption Heading1 Heading2 Weekends Saturday Sunday 8

Another Complex Table <body> <table border> <caption>the Caption</caption> <tr><th colspan= 2 >Heading</th></tr> <tr><td>1</td><td>2</td></tr> <tr><td>3</td><td>4</td></tr> </table> </body> The Caption Heading 1 2 3 4 9

Example of Spanning Cells This cell spans two columns and two rows This cell spans three columns This cell spans three rows 10

More Table Attributes The th and td element also supports the following attributes width as a number of pixels, or a % of table width, or relative real number to other columns (may auto-adjust according to window width if unspecified) height as a number of pixels (may auto-adjust according to the amount of text if unspecified) align left, center, or right valign top, middle, or bottom The thickness of the border of a table can be set using the border attribute, e.g. <table border= 2 > 11

The align and valign attribute 12

More Table Attributes (cont.) The colour scheme can be adjusted as attributes tableor td. For example, <td bgcolor= yellow > cellpadding and cellspacing are often used in table element cellpadding adjusts the space around content within cells cellspacing adjusts the space between cells Blank table cells need something in them so they don t collapse on themselves. <td> </td> 13

Creating Links Within a Document 14 14

Hyperlinks and Anchors A hyperlink is a reference (an address) to a resource on the web: an HTML page an image a sound file a movie, etc. An anchor is a term used to define a hyperlink destination inside a document. The HTML anchor element <a>, is used to define both hyperlinks and anchors. 15

Creating Hyperlinks Hyperlink <a> element Requires an hrefattribute. Value of the hrefattribute is an addressidentifying destination/target. Visit <a href=http://www.abc.net.au/>abc Online!</a> The code above will display like this in a browser: Visit ABC Online! 16

Creating Anchors Anchor <a> element requires a nameor an idattribute. <a name= conclusion">the Conclusion</a> line!</a> Value of attribute may be used with hrefto link to the anchor. Jump to the <a href= #conclusion >conclusion</a>! The code above will display like this in a browser: Jump to the conclusion! 17

Creating Anchors An anchor elementmarks a specific location within a document. An anchorcan include most inline elements and empty elements; however, anchors cannot include block-level elements. A link s content is not limited to text, an image can be used as a link contentas well. 18

Anchor Using idor name? Use id or name?should consider: The id attribute can act as more than just an anchor name (e.g., style sheet selector, processing identifier, etc.). Some older browsers don't support anchors created with the idattribute. The nameattribute allows richer anchor names (e.g. with special characters). 19

Quoting Quotations can be incorporated in HTML using the blockquote tag (the quoted tag will be indented). For example, <p>quotation of the day by Robert X. Cringely at InfoWorld Magazine:</p> <blockquote> If the automobile had followed the same development cycle as the computer, a Rolls-Royce would today cost $100, get a million miles per gallon, and explode once a year, killing everyone inside. </blockquote> Produces 20

Centering <center>this goes in the center.</center> <div align= center >This goes in the center.</div> <div style= text-align:center >This goes in the center.</div> All produce: This goes in the center. However, first two usages are deprecated in favourof Cascading Style Sheets (CSS). We will discuss controlling presentation using CSS later. 21

Preformatting Preformatted text is often necessary in cases of including source code in a web page. The <pre>tag can be used. <pre> #!/usr/bin/perl -w if (@ARGV) { @files = @ARGV; } else { @files = <[a-z]*>; } foreach $name (@files) { if (-d $name) { print "\n\ntest for $name","\n"; } } </pre> 22

Inside HTML s head A HTML document is made of two main parts: a <head>and a <body>. As we have seen so far, displayable document content goes in <body>. The <head>element is used as a container for information about the document, additional to the document content. We ve already used the <title>elements. Other possible elements are <meta>, <link>, <script> and <style>. <script>and <style>will be introduced when we discuss JavaScript and Cascading Style Sheets in later lectures. 23

META-data The <meta> element is used to store metadata about a document, such as a short description of its content, keywords that maybe used for search engine indexing, or to include details about the page author. For example, <head> <title>web Technologies</title> <meta name= author content= Wei Liu /> <meta name= description content= This is a webpage of CITS1231 at CSSE, UWA /> <meta name= keywords content= Internet, Web, HTML, CSS, JavaScript, XML /> 24

META-refresh The <meta>element can also be used to redirect vistors to another document: <meta http-equiv=refresh content= 5; url= http://web.csse.uwa.edu.au > Five seconds after loading this document containing this <meta>data, most modern browsers will start automatically loading the web pages at http://web.csse.uwa.edu.au/. 25

What you haven t seen here <object>element -used for generic chunk of data to include images, sound track, video clip, applet or another HTML document. <applet> element to include a Java Applet. <frameset>, <frame> and <iframe>elements for displaying multiple HTML documents in one browser window. hard to bookmark, difficult to maintain & navigate with nongraphical browsers, search engine problems. think really hard before using frames. 26

Tips for Good HTML Code Use line breaks and indented textto make your HTML file easier to read Insert commentsinto your HTML file to document your work Enter all tag and attribute names in lowercase Place all attribute values in quotes Close all two-sided tags Make sure that nested elementsdo not cross 27

Tips for Good HTML Code Usestylesin place of presentational elements whenever possible Use logical elements to describe an element s content Use physical elements to describe the element s appearance Include the alt attributefor any inline image to specify alternative text for non-graphical browsers Know your market and the types of browsers that your audience will use to view your Web page Test your Web page on all relevant browsers 28

Saving a file Save your work often. Use extension.html or.htm. Avoid names with embedded blanks, like My Home Page.htmlbecause blanks cause grief to some systems, and the URL for such a page would have to be My%20Home%20Page.html. Default web page is index.htmlor default.htmlor whatever the ISP has decided is the default filename. This file will be returned by the server when the request URL has no filename included. Ifyou don't have a default page, many servers will show the contents of your directory. 29

Conclusion In this lecture, we discussed the following concepts: Defining Tables Creating Hyperlinks Formatting Text Meta-data Good HTML practices 30