HTML/XML HTML Authoring.

Slides:



Advertisements
Similar presentations
Use Tables for Layout Control Day 7. You will learn to: Understand Tables Create a Simple Table Modify Your Tables Appearance Create Page Layouts with.
Advertisements

Chapter 3 – Web Design Tables & Page Layout
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 6: HTML Tables.
Creating Tables in a Web Site
HTML/XML XHTML Authoring. Creating Tables  Table: An arrangement of horizontal rows and vertical columns. The intersection of a row and a column is called.
Chapter 4 – Intermediate HTML 4 Outline 4.1 Unordered Lists 4.2 Nested and Ordered Lists 4.3 Basic HTML Tables 4.4 Intermediate HTML Tables and Formatting.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Exploring the Internet Creating web pages with 2-d layout Instructor: Michael Krolak Instructor: Patrick Krolak See also
Tables And Lists. Slide 2 Lecture Overview Learn about the basics of tables Create simple 2-dimensional tables Format tables Create tables with complex.
HTML. Creating a Table Attributes: border: indicates the border type of the table Value: 0 (no border), 1, 2, etc. cols: indicates the number of columns.
Notes Ch. 12—Creating Tables Web Page Design. Why Use Tables? Tables are used to create a variety of items such as calendars, charts, and spreadsheets.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
HTML Essentials Tables and Table Tags. Overview Use of Tables goes beyond tabulating data Frequently used to format Web pages / control layout Especially.
1 XHTML Tables A table is a matrix of cells, for displaying content in rows and columns The cells can include almost any element Some cells display row.
XHTML1 Tables N100 Creating a Simple Web Page. XHTML2 Creating Basic Tables Tables are collections of rows and columns that you use to organize and display.
Identifies the Structure Table Row Column 1 Table Heading Column 2.
CIS 1315 – Web Development for Educators CIS 1315 HTML Tutorial 5: Working with Tables.
HTML Essentials Frames and Frame Tags. Introduction A frame used to be an effective design tool Utilized space effectively by subdividing screen One idea:
HTML, Third Edition--Illustrated Introductory 1 HTML, Third Edition Illustrated Introductory Unit F Working with Tables.
HTML Comprehensive Concepts and Techniques Second Edition Project 3 Creating Tables in a Web Site.
INTRODUCTORY Tutorial 7 Creating Tables. XP New Perspectives on Blended HTML, XHTML, and CSS2 Objectives Discern the difference between data tables and.
Tables Teppo Räisänen LIIKE/OAMK The Role of a Table Tables are quite common in computing systems In XHTML tables are used for presenting tabular.
Lecture: Tables. Table Tags (all container tags) establishes a table (________) establishes a row (________) says what’s in the row more than one TD within.
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 2.
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
Department of Information Technology Chapter 9 – Creating Tables Lecturer: Ms Melinda Chung.
XHTML 1.1  Derived from Standard Generalized Markup Language (SGML) of ISO  XHTML concerned primary with content rather than presentation and style 
XHTML1-1 Extensible HyperText Markup Language (XHTML) Part 2 Xingquan (Hill) Zhu
Introducing Web Tables. Tables for tabulating items  Better looking  More flexibility  More efficient to explain information than plain text.
A table is a rectangular arrangement of rows and columns on your screen A table is used to organize data into rows and columns and also increasingly.
TABLES 1. In this chapter you will learn that tables have many uses in HTML. Objectives: Upon completing this section, you should be able to: 1. Insert.
 2003 Prentice Hall, Inc. All rights reserved. Introduction to HTML: Tables Outline 1 Introduction 2 Basic HTML Tables 3 Intermediate HTML Tables and.
Computer Science 101 Lists and Tables. Lists Unordered lists - use a bullet Ordered lists - use a number, Roman numeral, or letter.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Project 5: Working with Tables Kelly L.
CS-3432 Electronic Commerce Lecture – 7 Sikandar Shujah Toor
CIS234A Lecture 8 Instructor Greg D’Andrea. Review Text Table contains only text, evenly spaced on the Web page in rows and columns uses only standard.
Unit 4 Create and Use Tables. TITLE CORNELL NOTES TOPIC: NOTES: Name: Date: 09/08/2009 Period : Summary: Reasons for using tables Unit 4 Page 1 Display.
Lecture 6 More Advanced HTML Boriana Koleva Room: C54
HTML Concepts and Techniques Fifth Edition Chapter 4 Creating Tables in a Web Site.
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
Creating Tables in a Web Site HTML 4 Created by S. Cox.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 5: HTML Tables.
HTML Help book. HTML HTML is the programming language used to make web pages for the Internet. HTML stands for Hyper Text Markup Language. HTML is made.
CIS101 Introduction to Computing Week 07 Spring 2004.
CNIT 131 HTML5 - Tables.
CIIT-Human Computer Interaction-CSC456-Fall-2015-Mr
Yourfriendmanoj.wordpress.com Fb/yourfriendmanoj
Working with Tables: Module A: Table Basics
>> HTML: Tables.
LAB Work 02 MBA 61062: E-Commerce
HTML Tables.
Tutorial 5 Working with Tables and Columns
Introduction to HTML.
H T M L A B E S X P I N D.
TABLES.
Using HTML Tables SWBAT: - create tables using HTML
TABLES.
LESSON Extension Module 2: HTML Basics Tables.
TABLES IN HTML No, not that kind of table!! THIS KIND!!
Web Design and Development
HTML Tables & Frames Internet Technology.
Web Development & Design Foundations with H T M L 5
H T M L A B E S X P I N D.
Site Development Foundations Lesson 6
Lesson 5: HTML Tables.
H T M L A B E S X P I N D.
HTML Tables & Frames Internet Technology.
Presentation transcript:

HTML/XML HTML Authoring

Creating Tables Table: An arrangement of horizontal rows and vertical columns. The intersection of a row and a column is called a cell. Used for: displaying tabular data in rows and columns controlling the layout and appearance of a Web page © Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017

Creating Tables Creating tables requires organisation. All tables begin with the <table> tag and end with a </table> tag. In between those tags are three other tags to be aware of: <tr> defines a horizontal row <td> defines a data cell within that row <th> specifies a data cell as a table heading (generally, a table heading cell is formatted as centered and bold). © Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017

Creating Tables Remember that Web browsers ignore any spaces, tags, and blank lines that you include in you HTML document. So feel free to use spacing to keep track of your table tags - helps you see the rows and columns lining up. © Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017

Creating Tables Formatting Tables - Attributes width (default: to fit) Width of table or cells (in pixels or as a % of the page) border (default: 0) Width of the border (in pixels - <table> tag) © Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017

Creating Tables Formatting Tables - Attributes cellspacing (default: depends on browser) Space between cells (in pixels - <table> tag). cellpadding (default: depends on browser) Space between border and content (in pixels - <table> tag) © Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017

Creating Tables Formatting Tables - Attributes valign (default: center) Vertical alignment of cell contents (top, bottom, or baseline) align (default: <td> left, <tr> center) Horizontal alignment of cell contents (left, right, center, or justify) © Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017

<title>My first formatted table</title> </head> <html> <head> <title>My first formatted table</title> </head> <body> <table border="1"> <tr><th > Column 1 </th> <th> Column 2</th></tr> <tr><td align="center"> Row 2 </td><td align="center"> Row 2</td></tr> <tr><td align="center"> Row 3 </td><td align="center"> Row 3</td></tr> </table> </body> </html> © Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017

Advanced Tables The colspan and rowspan attributes are used to create complex tables: <html> <head> <title>My first formatted table</title> </head> <body> <table border="1"> <tr><th colspan="2"> Column 1 and Column 2 are combined </th></tr> <tr><td> Row 2 </td> <td rowspan="2"> Row 2 and Row 3 are combined</td></tr> <tr><td> Row 3 </td></tr> </table> </body> </html> © Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017

How to start a valid HTML5 page There must be a DOCTYPE declaration in the document prior to the root element. The HTML layout engines in modern web browsers uses the DOCTYPE for mode selection. The DOCTYPE declaration for HTML5 is very simple: <!DOCTYPE html> This triggers “standards mode” in common browsers. © Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017

Character Encoding <meta charset="UTF-8"> We also need to Specify the character encoding for the HTML document. You do this by using the charset attribute. Do this using a <meta> tag nested within the <head> tag: The character encoding (charset) declaration for HTML5 is also very simple: <meta charset="UTF-8"> © Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017

Charset Define the your character set by using the charset attribute. Do this using a <meta> tag nested within the <head> tag: <meta http-equiv=“Content-Type” content=“text/html; charset=utf-8” /> © Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017

What is Character Encoding? ASCII was the first character encoding standard (also called character set). ASCII defined 128 different alphanumeric characters that could be used on the internet: numbers (0-9), English letters (A-Z), and some special characters like ! $ + - ( ) @ < > . ANSI (Windows-1252) was the original Windows character set, with support for 256 different character codes. ISO-8859-1 was the default character set for HTML 4. This character set also supported 256 different character codes. © Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017

What is Character Encoding? Because ANSI and ISO-8859-1 were so limited, HTML 4 also supported UTF-8. UTF-8 (Unicode) covers almost all of the characters and symbols in the world. The default character encoding for HTML5 is UTF-8. © Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017

So… <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title> Document Title </title> </head> <body> Content of the document...... </body> </html> © Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017

To Validate… Go to https://validator.w3.org/ Choose the ‘Validate by File Upload’ tab. Select ‘Choose File’ and browse to the file you wish to validate. Select ‘More Options’ Select ‘HTML5 (experimental) from the ‘Document Type’ dropdown menu. Click on the ‘Check’ button. © Nina Bresnihan, School of Computer Science & Statistics, TCD, 2017