Advanced HTML Scripting WebGUI Users Conference

Similar documents
CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0

HTML & XHTML Tag Quick Reference

Chapter 2:- Introduction to XHTML. Compiled By:- Sanjay Patel Assistant Professor, SVBIT.

Internet publishing HTML (XHTML) language. Petr Zámostný room: A-72a phone.:

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

IT350 Web and Internet Programming. XHTML Tables and Forms (from Chapter 4 of the text 4 th edition Chapter 2 of the text 5 th edition)

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

Summary 4/5. (contains info about the html)

introduction to XHTML

Web Development & Design Foundations with HTML5

2.1 Origins and Evolution of HTML

Web Design and Application Development

XHTML & CSS CASCADING STYLE SHEETS

INFS 2150 / 7150 Intro to Web Development / HTML Programming

COSC 2206 Internet Tools. Brief Survey of HTML and XHTML Document Structure Formatting

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

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

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

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

HTTP and HTML. We will use HTML as a frontend to our webapplications, therefore a basic knowledge of HTML is required, especially in forms.

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

Chapter 5. Introduction to XHTML: Part 2

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

IMY 110 Theme 7 HTML Tables

HTML. HTML Evolution

LAB MANUAL SUBJECT: WEB TECHNOLOGY CLASS : T.E (COMPUTER) SEMESTER: VI

Copyright 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 2 Introduction to XHTML

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM Advanced Internet Technology Lab.

Chapter 4 Notes. Creating Tables in a Website

HTML: The Basics & Block Elements

Creating a Web Page with HTML

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

Name Related Elements Type Default Depr. DTD Comment

Introducing Web Tables

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

Structure Bars. Tag Bar

Web Technologies - by G. Sreenivasulu Handout - 1 UNIT - I

Part A Short Answer (50 marks)

Module 2 (III): XHTML

Advanced Web Programming C2. Basic Web Technologies

2.1 Origins and Evolution of HTML. 2.3 HTML Document Structure

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

Html basics Course Outline

Skill Area 323: Design and Develop Website. Multimedia and Web Design (MWD)

Web Technology. HTML & xhtml

Deccansoft Software Services

Tables *Note: Nothing in Volcano!*

HTML 5.0 KKCC INFO SYSTEMS. K.SrinivasaRao

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

HYPERTEXT MARKUP LANGUAGE ( HTML )

CSC Web Technologies, Spring HTML Review

Chapter 7 Tables and Layout

Dreamweaver CS3 Concepts and Techniques

Chapter 7 Tables and Layout

Which of the following is/are a valid value for the type attribute of the input tag? a. text. b. icon. c. reset. d. password

Certified HTML5 Developer VS-1029

c122sep2214.notebook September 22, 2014

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

Web Programming Week 2 Semester Byron Fisher 2018

(X)HTML. Internet Engineering. Spring Bahador Bakhshi CE & IT Department, Amirkabir University of Technology

Wireframe :: tistory wireframe tistory.

Creating A Web Page. Computer Concepts I and II. Sue Norris

The Hypertext Markup Language (HTML) Part II. Hamid Zarrabi-Zadeh Web Programming Fall 2013

Introduction to HTML5

HTML 5 Tables and Forms

Table-Based Web Pages

HTML Tables and Forms. Outline. Review. Review. Example Demo/ Walkthrough. CS 418/518 Web Programming Spring Tables to Display Data"

2.1 Origins and Evolution of HTML

Announcements. Paper due this Wednesday

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

Spring 2014 Interim. HTML forms

Certified HTML Designer VS-1027

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

HTML HTML. Chris Seddon CRS Enterprises Ltd 1

CITS1231 Web Technologies. HTML Tables and Page Design Issues

Chapter 9 Table Basics Key Concepts. Copyright 2013 Terry Ann Morris, Ed.D

JSF - H:PANELGRID. JSF Tag. Rendered Output. Tag Attributes. The h:panel tag renders an HTML "table" element. Attribute & Description.

Motivation (WWW) Markup Languages (defined). 7/15/2012. CISC1600-SummerII2012-Raphael-lec2 1. Agenda

HTML HTML/XHTML HTML / XHTML HTML HTML: XHTML: (extensible HTML) Loose syntax Few syntactic rules: not enforced by HTML processors.

Advanced HTML 5.1 INTRODUCTION 5.2 OBJECTIVES

CSC309 Tutorial CSS & XHTML

I will link the following rough sketch of my mom to our class homepage: Code Used

Unit 5 Web Publishing Systems Page 1 of 13 Part 4 HTML Part 4

LESSON 3. Coding Tables Continued

XHTML. XHTML stands for EXtensible HyperText Markup Language. XHTML is the next generation of HTML. XHTML is almost identical to HTML 4.

Basic HTML. Lecture 14. Robb T. Koether. Hampden-Sydney College. Wed, Feb 20, 2013

Basic HTML. Lecture 14. Robb T. Koether. Hampden-Sydney College. Wed, Feb 20, 2013

What is XHTML? XHTML is the language used to create and organize a web page:

HTML What is HTML Hyper Text Markup Language is a computer based language used to create WebPages.

Document Object Model. Overview

Creating Web Pages Using HTML

Lecture 2: Tools & Concepts

HTML Tags <A></A> <A HREF=" CNN </A> HREF

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

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

HTML and CSS COURSE SYLLABUS

Web Publishing with HTML

Introduction to Computer Science (I1100) Internet. Chapter 7

Oliver Pott HTML XML. new reference. Markt+Technik Verlag

Transcription:

Advanced HTML Scripting 2004 WebGUI Users Conference

XHTML where did that x come from?

XHTML =? Extensible Hypertext Markup Language Combination of HTML and XML More strict than HTML

Things to Remember Always include closing tags. Close empty elements with a slash. Must include values in attributes. Attributes must be enclosed in quotes. Write code in lowercase. Tags must be correctly nested. Always include a <!DOCTYPE> declaration in every document.

Closing Tags BAD GOOD <p>this XHTML is great stuff. <p>it sure is flexible! <p>this XHTML is great stuff.</p> <p>it sure is flexible!</p>

Close Empty Elements BAD GOOD Look at this cool photo <br> <img src= cool_photo.gif > Look at this cool photo <br /> <img src= cool_photo.gif />

Include Values in Attributes BAD GOOD <input type= radio id= bad checked> <input type= radio id= good checked= checked />

Enclose Attributes in Quotes BAD GOOD <table border=1 cellpadding=0> <td>bad</td> </table> <table border= 1 cellpadding= 0 > <td>good</td> </table>

Lowercase Code BAD GOOD <TABLE border=1 cellpadding=0> <TR> <TD>Bad</TD> </TR> </TABLE> <table border= 1 cellpadding= 0 > <td>good</td> </table>

Nest Your Tags BAD GOOD <b><p><i>look ma,</i> I m eating some delicious chicken! </b></p> <p><b><i>look ma,</i> I m eating some delicious chicken! </b></p>

Document Type Declarations Transitional DTD: allows for use of HTML s deprecated elements and attributes. Strict DTD: doesn t permit the use of any presentational (deprecated) elements or attributes. Must use CSS to add style to your site. Frameset DTD: used for frame based pages.

Document Type Declarations Transitional DTD: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> Strict DTD: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> Frameset DTD: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-frameset.dtd">

Tables 101 table building basics

KEEP IT SIMPLE

Key Elements <table> </table> Table element creates the table Table row element establishes a row <td></td> Table data element creates individual cells in a row (the columns) Content should be placed between the TD tags.

Tags in Use <table> </table> X X X X X X X X X

Headings Use the <th></th> element rather than <td></td> to add a heading. <table> <th>col 1</th> <th>col 2</th> <th>col 3</th> </table> Col 1 Col 2 Col 3 X X X X X X

Captions Use the <caption></caption> to add a title to your table. <table> <caption>title Here </caption> <th>col 1</th> <th>col 2</th> <th>col 3</th> </table> TITLE HERE Col 1 Col 2 Col 3 X X X X X X

Grouping Elements Allow you to organize tables by section. <thead> </thead> Specifies a header for the table. <tbody></tbody> Specify the body section. <tfoot></tfoot> Specify the footer section.

Grouping Elements <table> <thead> <td>header</td> </thead> <tfoot> <td>footer</td> </foot> <tbody> <td>body</td> </tbody> </table> Header Body Footer

Table Attributes

Adding Color With CSS Add color in the <table> element to control the color of the entire table. Add color in the element to control the color of the row. Add color in the <td> or <th> element to control the color of individual cells.

Adding Color With CSS Inline style is used below. You can also use embedded and linked stylesheets. <table> <caption>title Here </caption> <th>col 1</th> <th>col 2</th> <th>col 3</th> <td style= backgroundcolor: blue; >X</td> </table> TITLE HERE Col 1 Col 2 Col 3 X X X X X X

Adding Borders To display borders on your table use the border attribute. <table border= 1 > <caption>title Here </caption> <th>col 1</th> <th>col 2</th> <th>col 3</th> </table> TITLE HERE Col 1 Col 2 Col 3 X X X X X X

cellpadding & cellspacing Use the cellspacing attribute to adjust space between cells. Use cellpadding to adjust space inside the cells. Measured in pixels. Must be placed in your table element. CSS is advised for more padding options.

cellpadding & cellspacing To display borders on your table use the border attribute. <table border= 1 cellpadding= 10 cellspacing= 10 > <caption>title Here </caption> <th>col 1</th> <th>col 2</th> <th>col 3</th> </table> TITLE HERE Col 1 Col 2 Col 3 X X X X X X

Positioning

Horizontal Alignment Use the align attribute in each cell you want to align. Left: The Default alignment. Aligns cell content to the left. Right: Aligns cell content to the right. Center: Aligns cell content to the center Justify: Also aligns cell content to the left

Horizontal Alignment <table border= 1 > <caption>title Here </caption> <th>col 1</th> <th>col 2</th> <th>col 3</th> <td align= left >X</td> <td align= center >X</td> <td align= right >X</td> </table> TITLE HERE Col 1 Col 2 Col 3 X X X X X X

Ver tical Alignment Use the valign attribute in to align content at the top, middle, or bottom Top: Aligns cell content to the top. Middle: The Default alignment. Aligns cell content to the middle. Bottom: Aligns cell content to the bottom. Baseline: Aligns with a baseline shared by all the cells in a given row.

Ver tical Alignment <table border= 1 > <caption>title Here </caption> <th>col 1</th> <th>col 2</th> <th>col 3</th> <td align= left >X</td> <td align= center >X</td> <td align= right >X</td> <td valign= top >X</td> <td valign= middle >X</td> <td valign= bottom >X</td> </table> TITLE HERE Col 1 Col 2 Col 3 X X X X X X

Colspan & Rowspan

Colspan To make a cell span multiple columns use colspan <table border= 1 > <caption>title Here </caption> <th>col 1</th> <th>col 2</th> <th>col 3</th> <td align= left >X</td> <td align= center >X</td> <td align= right >X</td> <td valign= top >X</td> <td valign= middle colspan= 2 >X</td> </table> TITLE HERE Col 1 Col 2 Col 3 X X X X X

Rowspan To make a cell span multiple rows use rowspan <table border= 1 > <caption>title Here </caption> <th>col 1</th> <th>col 2</th> <th>col 3</th> <td align= left rowspan= 2 >X</td> <td align= center >X</td> <td align= right >X</td> <td valign= middle colspan= 2 >X</td> </table> TITLE HERE Col 1 Col 2 Col 3 X X X X

Forms

Form Uses Contact Forms Surveys Guestbooks CMS Admin Forms Search Engines Order Forms Catalogs MUCH MORE

Form Element <body> <form> </form> </body> Form Element creates the form

Form Action <body> <form action= mailto:jeff@plainblack.com > </form> </body> Action attribute tells browser where to send information (can be e-mail address or a script).

Form Method <body> <form action= mailto:jeff@plainblack.com method= post > </form> </body> Method attribute tells browser how to send information. Get or Post

<input type= text /> <body> <form action= mailto:jeff@plainblack.com method= post > First Name: <input type= text name= fname size= 15 maxlength= 30 /> </form> </body> First Name:

<textarea> <body> <form action= mailto:jeff@plainblack.com method= post > First Name: <input type= text name= fname size= 15 maxlength= 30 /><br /> <textarea name= message rows= 10 cols= 45 ></textarea> </form> </body> First Name:

Submit & Reset <body> <form action= mailto:jeff@plainblack.com method= post > First Name: <input type= text name= fname size= 15 maxlength= 30 /><br /> <textarea name= message rows= 10 cols= 45 ></textarea><br /> <input type= submit /> <input type= reset /> </form> </body> First Name:

<input type= text /> <table> <td>first Name:</td> <td><input type="text" name="fname" size="15" maxlength="20" /></td> <td>last Name:</td> <td><input type="text" name="lname" size="15" maxlength="20" /></ td> <td>city:</td> <td><input type="text" name="city" size="15" maxlength="20" /></td> <td>state:</td> <td><input type="text" name="state" size="15" /></td> <td>country:</td> <td><input type="text" name="country" size="15" maxlength="20" /></ td> </table> First Name: Last Name: City: State: Country:

<input type= radio /> <p>your age (choose one):</p> 13-18 <input type="radio" name="age" value="13-18" /><br /> 19-30 <input type="radio" name="age" value="19-30" /><br /> 31-40 <input type="radio" name="age" value="31-40" checked="checked" /><br /> 41-50 <input type="radio" name="age" value="41-50" /><br /> Your age (choose one): 13-18 19-30 31-40: 41-50:

< i n p u t t y p e = c h e c k b ox / > <p>fiction Preferences</p> <input type="checkbox" name="fictionpreferences" value="historical" />Historical<br /> <input type="checkbox" name="fictionpreferences" value="literary" />Literary<br /> <input type="checkbox" name="fictionpreferences" value="mystery" />Mystery<br /> <input type="checkbox" name="fictionpreferences" value="romance" />Romance<br /> <input type="checkbox" name="fictionpreferences" value="thriller" />Suspense/Thriller<br /> Fiction Preferences Historical Literary Mystery Romance Suspense

< s e l e c t i d = > < / s e l e c t > <p>your gender:</p> <select name="sex"> <option selected= 1 value="male" >Male</option> <option value="female" >Female</option> </select> Your gender: Male

< s e l e c t i d = m u l t i p l e = m u l t i p l e > < / s e l e c t > <p>bookstore Preferences</p> <select name="bookpurchasepref" multiple="multiple" size="5"> <option selected= 1 value="amazon">amazon.com</ option> <option value="bncom">bn.com</option> <option value="bn">barnes and Noble</option> <option value="borders">borders</option> <option value="halfcom">half.com</option> <option value="hastings">hastings Entertainment</ option> <option value="walden">waldenbooks</option> <option value="hpbooks">half Price Books</option> <option value="powells">powells Books</option> </select> <p>for multiple selections, hold down the Control key while clicking.</p> Bookstore Preferences For multiple selections, hold down the Control key while clicking.

Search Engine Optimization

Choose Keywords Wisely Think "specific keyword phrases" not "keywords". Think like your target audience. See what your competition is up to. Use nouns & adjectives. Too General 1. shoes 2. men's shoes 3. women's shoes Better 1. imported italian shoes 2. men's leather loafers 3. women's aerobic sneakers

Optimize Your Title Tags Search engines & directories place a high level of importance on keywords that are found in your title tag. Include a couple keywords in your title tag. Make title tag enticing.

Optimize Your Page Copy Try to have at least 200 words of copy per page. Use your keywords and keyword phrases in your copy.

Optimize Your Meta Tags Meta Description: <META NAME="description" content="keyword phrases would appear in this description"> Meta Keywords: <META NAME="keywords" content="keywords phrase 1, keyword phrase 2, keyword phrase 3, etc."> Place meta tags between <head> </head> tags. Include keyword phrases in your description. Include common misspellings in your keywords.

Optimize Your Alt Tags Use keyword phrases as well as a description. Keep keywords to a minimum. Keep alt tags brief (sentence or two).

Optimize Text Based Navigation Text based links can help improve search engine listings. Search engines can spider text based navigation.

What Not To Do List keywords outside of your meta keyword tag. Use the same color text as your background color. Submit the same page to search engines within 24 hours. Use keywords that don t relate to your site.

Resources

Online Resources http://www.w3schools.com/xhtml/ xhtml_reference.asp http://www.zvon.org/xxl/xhtmlreference/output http://www.w3.org/markup]

QUESTIONS