Survey of Computer Science CSCI 110, Spring 2011 Lecture 23 HTML

Slides:



Advertisements
Similar presentations
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Advertisements

Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
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.
Creating a Web Page with Tables. Objectives Create a text table with preformatted text Create the basic structure of a graphical table Organize table.
XP Creating Web Pages with HTML Using Tables. XP Objectives Create a text table Create a table using the,, and tags Create table headers and captions.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Introduction to HTML II Shih-Heng Chin. Preface Structure of a HTML File Elements used frequently Tables.
Using HTML Tables.
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.
Images and Tables. Displaying Image Attributes: SRC= " mypic.gif " – Name of the picture file SRC= " pic/mygif.jpg " – Name of file found in pic directory.
What is a TABLE? The HTML table allows web designers to arrange & organize data -- text, images, hyperlinks, forms, form fields, other tables, etc. Tables.
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.
Identifies the Structure Table Row Column 1 Table Heading Column 2.
1 The Structure of a Web Table beginning of the table structure first row of three in the table end of the table structure table cells You do not need.
CS105 Introduction to Computer Concepts HTML
Chapter 4 Fluency with Information Technology L. Snyder Marking Up With HTML: A Hypertext Markup Language Primer.
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
Understanding HTML Code
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
1 Ethics of Computing MONT 113G, Spring 2012 Session 8 The Internet HTML.
>> Introduction to HTML: Tables. HTML is used to give websites structure 5 Basic Tags Element = Start-Tag+Content+End-Tag Heading Tags [h1-h6] Paragraph.
CS105 INTRODUCTION TO COMPUTER CONCEPTS HTML Instructor: Cuong (Charlie) Pham.
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.
1 Ethics of Computing MONT 113G, Spring 2012 Session 10 HTML Tables Graphics on the Web.
HTML (Hypertext Markup Language) – Class 3 Recap: HTML Special Characters (ex: ©). Including Images – using the tag. Lists – Ordered and Unordered.
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.
Computer Science 101 Lists and Tables. Lists Unordered lists - use a bullet Ordered lists - use a number, Roman numeral, or letter.
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.
HTML. Adding Background Color The bgcolor attribute lets you change the background color of the Web page. Located in the body tag See common Web Page.
1 Lecture 12 Lecture 12 Basic HTML ITEC 1000 “Introduction to Information Technology”
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
Building a Web Page. Create A New Folder  Right click on the desktop and select New / Folder  Name the folder playpen.
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
TABLES IN HTML No, not that kind of table!! THIS KIND!!
1 HTML. 2 Full forms WWW – world Wide Web HTTP – Hyper Text Transfer Protocol HTML – Hyper Text Markup Language.
Chapter 4 HTML Tags. HTML is written in something called tags. Tags come in pairs, an opening one and a closing one. The first pair of tags we'll write.
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.
Designing a Web Page with Tables
CNIT 131 HTML5 - Tables.
Marking Up with XHTML Tags describe how a web page should look
Semester - Review.
Computers and Society HNRS 299, Spring 2017 Session 19 HTML
Elements of HTML Web Design – Sec 3-2
>> HTML: Tables.
LAB Work 02 MBA 61062: E-Commerce
Chapter 5 Introduction to XHTML: Part 2
Web Programming– UFCFB Lecture 5
H T M L A B E S X P I N D.
TABLES.
Computers and Scientific Thinking David Reed, Creighton University
Using HTML Tables SWBAT: - create tables using HTML
TABLES.
TABLES IN HTML No, not that kind of table!! THIS KIND!!
Web Design and Development
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
If You Know Nothing About HTML, This is Where You Start.
HTML Tables & Frames Internet Technology.
Introduction to HTML.
Chapter 4: Marking Up With HTML: A Hypertext Markup Language Primer
H T M L A B E S X P I N D.
Marking Up with XHTML Tags describe how a web page should look
Basic HTML.
Marking Up with XHTML Tags describe how a web page should look
HTML Tables & Frames Internet Technology.
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

Survey of Computer Science CSCI 110, Spring 2011 Lecture 23 HTML

The World Wide Web

The Client/Server Model

Universal Resource Locators

The request goes out

May I Help You?

Browsers

Hypertext Markup Language

Boiler plate <HTML> <HEAD> <TITLE>My Home Page</TITLE> </HEAD> <BODY> <H1>Welcome to my homepage!</H1> <P> Hi there! This is my very first web page! </BODY> </HTML> index.html

HTML Blocks

Adding Graphics

Creating Hyperlinks

Relative addressing Relative addressing specifies a location relative to the location of the html file. Slashes indicate directory locations: <IMG SRC = "moon.gif"> (moon.gif is in the same directory (folder) as the html file that contains this tag). <IMG SRC = "pictures/cookie.gif"> (cookie.gif is in a directory named pictures that is in the same directory as the html file that contains this tag) index.html moon.gif cookie.gif pictures

Absolute Addressing Absolute addressing gives the complete web address of a file: <IMG SRC = "http://mathcs.holycross.edu/~croyden/croyden.gif"> The browser will download the image from the address given in the img tag.

Some Common Tags Start a paragraph: <P> Force a new line: <BR> Bold Text: <B>bold text</B> Italics: <I>Italics</I> Centered Text: <CENTER>Centered text</CENTER> Headlines: <H1>Big Headline</H1> ... <H6>Little headline</H6> Unordered List: <UL> <LI> Item 1 <LI> Item 2 </UL>

The FONT Tag The <FONT> tag allows you to specify font types, sizes and colors: Specifying font type: <FONT FACE = "Arial">Arial font</FONT> Specifying font size: <FONT SIZE = 6>A big font</FONT> or: <FONT SIZE = +2>Increase the size a little</FONT> Specifying font color: <FONT COLOR = "red">Red text </FONT>

Dealing with White Space Browsers ignore white space (spaces, tabs, new lines, etc.) Text fills in to the right edge of the browser window, and then the browser wraps the text to the next line. What if you want white space? Option 1: Use   to indicate a space Option 2: Use <PRE> ...</PRE> (preformatted text)

A Simple Table Holy Cross Boston College WPI 75% 07% 17% <TABLE> <TR> <TD> Holy Cross </TD> <TD> Boston College</TD> <TD> WPI </TD> </TR> <TD> 75% </TD> <TD> 07%</TD> <TD> 17% </TD> </TABLE> Holy Cross Boston College WPI 75% 07% 17%

Adding a Border Changing Cell Size <TABLE BORDER = 2> <TR> <TD> Holy Cross </TD> <TD> Boston College</TD> <TD> WPI </TD> </TR> <TD WIDTH = 120 HEIGHT = 100> 75% </TD> <TD> 07%</TD> <TD> 17% </TD> </TABLE> Holy Cross Boston College WPI 75% 07% 17%

Changing Alignment Coloring a Cell Changing Horizontal Alignment: <TD ALIGN = LEFT> <TD ALIGN = CENTER> <TD ALIGN = RIGHT> Changing Vertical Alignment: <TD VALIGN = TOP> <TD VALIGN = MIDDLE> <TD VALIGN = BOTTOM> Coloring a cell: <TD BGCOLOR = BLUE>

Inserting Links and Graphics Inserting a link: <TD><A HREF = "http://www.holycross.edu"> Holy Cross</A></TD> Adding an image: <TD><IMG SRC = "gdome.gif"></TD>

Nested Tables <TABLE BORDER = 2> <TR> <TD>First Cell</TD> <TD><TABLE> <TD>5</TD> <TD>10</TD> </TR> <TD>15</TD> <TD>20</TD> </TABLE> </TD> . . . 5 10 15 20

Spanning Columns and Rows Use COLSPAN to span multiple columns: <TR> <TD COLSPAN = 3>Favorite Colleges</TD> </TR> Favorite Colleges Similarly, use ROWSPAN to span multiple rows.

Adjusting Table Size Adjusting table width to some number of pixels: The table will have a width of 500 pixels. Adjusting table width to a percentage of the browser window width: <TABLE WIDTH = 80%> The table will have a width that is 80% of the browser window width.