Unit 4 Lesson 3 HTML Power Techniques Textbook Authors: Knowlton, Barksdale, Turner, & Collings PowerPoint Lecture by Mr. Clausen.

Slides:



Advertisements
Similar presentations
Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
Advertisements

Chapter 3 – Web Design Tables & Page Layout
Internet Basics & Way Beyond!
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
Tutorial 4: Designing a Web Page with Tables
1 HTML Markup language – coded text is converted into formatted text by a web browser. Big chart on pg. 16—39. Tags usually come in pairs like – data Some.
Creating Web Page Forms. Objectives Describe how Web forms can interact with a server-based program Insert a form into a Web page Create and format a.
Tutorial 6 Working with Web Forms
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
XP 1 New Perspectives on Creating Web Pages with HTML Tutorial 4: Designing a Web Page with Tables.
XP 1 Designing a Web Page with Tables Tutorial 4 Creating a News Page.
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.
Using HTML Tables.
Tutorial 6 Working with Web Forms. XP Objectives Explore how Web forms interact with Web servers Create form elements Create field sets and legends Create.
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
Creating Web Page Forms
HTML. Goals How to use the Komodo editor HTML coding and testing Basic HTML tags List and Images Tables and Links At least 2 pages and navigation
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.
INTRODUCTION TO WEB DEVELOPMENT AND HTML Lecture 06: Tables - Spring 2011.
HTML Tables and Forms Creating Web Pages with HTML CIS 133 Web Programming Concepts 1.
With Alex Conger – President of Webmajik.com FrontPage 2002 Level I (Intro & Training) FrontPage 2002 Level I (Intro & Training)
XP 1 Tutorial 4 Designing a Web Page with Tables.
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.
Chapter 4 Fluency with Information Technology L. Snyder Marking Up With HTML: A Hypertext Markup Language Primer.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
XP Tutorial 6New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Creating Web Page Forms Designing a Product Registration Form Tutorial.
XP Tutorial 6New Perspectives on HTML and XHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
1 Creating Web Forms in HTML Web forms collect information from customers Web forms include different control elements including: –Input boxes –Selection.
HTML HTML stands for "Hyper Text Mark-up Language“. Technically, HTML is not a programming language, but rather a markup language. Used to create web pages.
Web Technologies Website Development Trade & Industrial Education
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.
Basic HTML Workshop By: Preeda Chunjongkolkul (Pete) Systems Librarian/Webmaster
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
DHTML AND JAVASCRIPT Genetic Computer School LESSON 2 HTML TAGS G H E F.
XP Mohammad Moizuddin Creating Web Pages with HTML Tutorial 1 1 New Perspectives on Creating Web Pages With HTML Tutorial 1: Developing a Basic Web Page.
CNIT 132 – Week 7 HTML - Tables. Tables on the World Wide Web A table can be displayed on a Web page either in a text or graphical format. A text table:
1 Lesson 3 Power Techniques HTML and JavaScript BASICS, 4 th Edition Barksdale / Turner.
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.
XP Creating Web Pages with HTML, 3e Prepared by: C. Hueckstaedt, Tutorial 4 1 New Perspectives on Creating Web Pages with HTML Tutorial 4: Designing a.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Adding Graphical Elements Essentials for.
HTML Lesson 3 Hyper Text Markup Language. Assignment Part 2  Set the file name as “FirstName2.htm”  Set the title as “FirstName LastName First Web Site”
CIS234A- Lecture 7 Instructor Greg D’Andrea. Tables A table can be displayed on a Web page either in a text or graphical format. A text table: – contains.
HTML ( HYPER TEXT MARK UP LANGUAGE ). What is HTML HTML describes the content and format of web pages using tags. Ex. Title Tag: A title It’s the job.
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.
Internet Applications Development Lecture 4 L. Obead Alhadreti.
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.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
1 Start TextEdit. 2 Creating a Home Page  A home page is the main page of a Web site –Visitors usually view the home page first –Identify the purpose.
Basic HTML Programming Technology Education Ellsworth Community Middle School Communication Systems.
XP Review 1 New Perspectives on JavaScript, Comprehensive1 Introducing HTML and XHTML Creating Web Pages with HTML.
What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup.
20-753: Fundamentals of Web Programming 1 Lecture 6: Advanced HTML Fundamentals of Web Programming Lecture 6: Advanced HTML.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
REEM ALMOTIRI Information Technology Department Majmaah University.
HTML AN INTRODUCTION TO WEB PAGE PROGRAMMING. INTRODUCTION TO HTML With HTML you can create your own Web site. HTML stands for Hyper Text Markup Language.
XP Tutorial 6New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Creating Web Page Forms Designing a Product Registration Form Tutorial 6.
Designing a Web Page with Tables
CNIT 131 HTML5 - Tables.
Marking Up with XHTML Tags describe how a web page should look
With Microsoft FrontPage 2000
LAB Work 02 MBA 61062: E-Commerce
Chapter 5 Introduction to XHTML: Part 2
Using HTML Tables SWBAT: - create tables using HTML
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

Unit 4 Lesson 3 HTML Power Techniques Textbook Authors: Knowlton, Barksdale, Turner, & Collings PowerPoint Lecture by Mr. Clausen

Mr. Dave Clausen2 The Exciting Web The Web is full of pictures, sounds, and movies that add interest to Web pages. There are two main types of pictures, graphics, or images on the Internet. –.jpg (.jpeg) or Joint Photographic Expert Group –.gif or Graphics Interchange Format Fonts can be changed by using the tag and attributes and values. Tables allow a web page to be divided up into parts, creating special spaces for each new element or piece of information. Tables, fonts, and pictures add power to web pages.

Mr. Dave Clausen3 Tags to Emphasize Text Here are a few more tags that can enclose words or phrases to help them stand out: Bold Text Strong Text Emphasized Text Italics vs. Part 1 vs. Part 2 Page_429_Net_Tip.html

Mr. Dave Clausen4 Using the Tag The tag allows you to specify the color, the size, and the font to be used for text on a Web page. The syntax for the tag is: your text here –The size attribute allows you to specify the font size of the text –The color attribute allows you to change the color of individual characters or words –The face attribute specifies a particular font for a section of text

Mr. Dave Clausen5 Font Attributes and Values It is possible to change the size, color, or style of the font for a word, sentence, paragraph, or even the entire page. The tag’s attributes control size, style and color: Size: Text Here Style: Text Here Color: Text Here Fourteen.html

Mr. Dave Clausen6 Figure 3-2

Mr. Dave Clausen7 Net Fun To open a link in a new window use the target attribute with “_blank” as the value: Google Using _blank for a target will open the content in a new window every time. links launch your default program, and include a specified address link syntax: Send

Mr. Dave Clausen8 Graphics Pictures can be added to your web page. Pictures can be acquired from clip art, scanned images, or from digital cameras. Two common formats for pictures are.gif and.jpg The Graphics Interchange Format is abbreviated as GIF. GIF files incorporate a compression scheme to keep file sizes low, but they are limited to 8-bit (256 or fewer colors – do not use for photographs). “GIFs” can include animated pictures or pictures with a transparent background.

Mr. Dave Clausen9 Graphics 2.jpg or.jpeg is short for Joint Photographic Expert Group. This format includes compression that allow file sizes to be smaller and load faster on a web page. Unlike GIF graphics, JPEG images are full-color images (24 bit, or "true color"). Once an image is compressed using JPEG compression, data is lost and you cannot recover it from that image file. Therefore, it is recommended that you save an uncompressed original file of your graphics or photographs as backup.

Mr. Dave Clausen10 Graphics Formats Which is the best graphics format to use?

Mr. Dave Clausen11 The Image Tag HTML images are defined with the tag. To display an image on a page, you need to use the src (source) attribute. The value of the src attribute is the URL of the image you want to display on your page. IMG SRC is short for IMaGe SouRCe.

Mr. Dave Clausen12 The Image Tag Alt Attribute The alt attribute is used to define an "alternate text" for an image. The value of the alt attribute is defined by the web page creator. The "alt" attribute tells the viewer what is missing from the web page if the browser can't load the picture. The browser will then display the alternate text instead of the image, for example: It is considered a good practice to include an "alt" attribute for each image on your web page. Fifteen.htmlFifteen-2.html

Mr. Dave Clausen13 Pictures of All Sizes Pictures can be aligned in the center, left or right side of a web page. By using the HEIGHT and WIDTH attributes you can change the size of the picture. Controlling the exact size of a picture can be very helpful in making a page look the way that you want it to look. To make a picture become the background of your web page, use the background attribute of the BODY tag. For example: Sixteen.html

Mr. Dave Clausen14 Image Tag Attributes Using the align attribute, we can align the image to the right, center, left, top, or middle. The width tag will tell the browser how wide to display the image in pixels or percentages. This is useful to set a placeholder for the image as it loads. The height tag tells the browser how tall to display the image in pixels. Try experimenting with W3Schools TryIt Editor: AlignWidth and Height

Mr. Dave Clausen15 Image Tag Attributes 2 Here is a summary of image tag attributes:

Mr. Dave Clausen16 Image Hyperlinks Your pictures can also be used as hyperlinks. If you wish, you can add a border around the picture to make it obvious that it is a link. To make the image a link, precede your picture with an anchor tag, for example: <img border="2" src=" YourPic.jpg " Try it out at W3Schools

Mr. Dave Clausen17 Tables Tables create little boxes in which you can place things to keep them organized. To create a table use the tag Cells can have a border by adding a BORDER attribute and a number value You can make cells appear larger around pictures and text with the CELLPADDING attribute. You can align pictures and text to the center, left, or right in a table’s cell. Basic Table Tag Attributes

Mr. Dave Clausen18 Using Table Tags Tables are enclosed within the two-sided tags that identify the start and ending of the table. Each row of the table is created using a two- sided tag(for table row). Within each table row, a two-sided (for table data) tag creates individual table cells.

Mr. Dave Clausen19 Table Syntax The general syntax of a graphical table is: First Cell Second Cell Third Cell Fourth Cell –This creates a table with two rows and two columns.

Mr. Dave Clausen20 Basic table structure Row 1, Column 1 Row 1, Column 2 Row 2, Column 1 Row 2, Column 2

Mr. Dave Clausen21 HTML Structure of a Table beginning of the table structure first row of six in the table end of the table structure table cells You do not need to indent the tags or place them on separate lines, but you may find it easier to interpret your code if you do so. After the table structure is in place, you’re ready to add the text for each cell.

Mr. Dave Clausen22 Table Headings HTML provides a tag for table headings. Text using the tag is centered in the cell and displayed in bold. The tag is used for column headings, but you can use it for any cell that you want to contain centered boldfaced text.

Mr. Dave Clausen23 Table Caption HTML allows you to specify a caption for a table. The syntax for creating the caption is: caption text This tag immediately follows the tag. –alignment indicates the caption placement a value of “bottom” centers the caption below the table a value of “top” or “center” centers the caption above the table a value of “left” or “right” place the caption above the table to the left or right

Mr. Dave Clausen24 Table Attributes By default, browsers display tables without table borders. The cell spacing attribute controls the amount of space inserted between table cells. Cell padding refers to the space within the cells. All of the above values are measured in pixels. CellPaddingTryItCellSpacingTryIt

Mr. Dave Clausen25 Table & Cell Sizes The way to specify a table size is: –Size refers to the width and height of the table as measured in pixels or as a percentage of the display area. To set the width of an individual cell, add the width attribute to either the or tags. The syntax is: width=“value” –value can be expressed either in pixels or as a percentage of the table width.

Mr. Dave Clausen26 Aligning the Contents of a Table By default, cell text is placed in the middle of the cell, aligned with the cell’s left edge. By using the align and valign attributes, you can specify the text’s horizontal and vertical position. To align the text for a single column, you must apply the align attribute to every cell in that column.

Mr. Dave Clausen27 Text Alignment Example

Mr. Dave Clausen28 Table Backgrounds Table elements support the bgcolor attribute. To specify a background color for all of the cells in a table, all of the cells in a row, or for individual cells, by adding the bgcolor attribute to either the,,, or tags as follows: You can replace the color in each of the above with a graphic, for example:

Mr. Dave Clausen29 Figure 3-10 Seventeen.html

Mr. Dave Clausen30 Extraordinary Extras There are data input, or tag, options added to HTML. These options give various ways to ask questions to visitors of the web page. These tags not only give extra functionality to your web page, they also make your page more exciting and extraordinary. Four basic input tags are: Text boxes, Drop down lists, Radio buttons, and Check boxes.

Mr. Dave Clausen31 Creating Forms Forms are created using the form element, structured as follows: elements –Attributes control how the form is processed. –Elements are placed within the form.

Mr. Dave Clausen32 Form Attributes Form attributes tell the browser the location of the server-based program to be applied to the form’s data. Two attributes are available to identify the form: id and name. …

Mr. Dave Clausen33 Input Boxes The general syntax of an input element is as follows: Input types: type=“button” This displays a button that can be clicked to perform an action from a script. type=“checkbox” This displays a check box. type=“radio” This displays a radio button. type=“text” This displays an input box for text entered by the user.

Mr. Dave Clausen34 Selection List & Check Boxes A selection list is a drop down box where a user selects a particular value. –A selection list is useful when there is a predetermined set of choices. To create a selection list, use the tag. List each selection using the tag. To create a check box, use: Eighteen.html

Mr. Dave Clausen35 Forms And HTML While HTML supports the creation of forms, it does not include tools to process the information. The information can be processed through a program running on a Web server.

Mr. Dave Clausen36 Programs To Process Data in Forms Server-based programs are written in many languages. The earliest and most commonly used are Common Gateway Interface (CGI) scripts that are written in perl. Some popular languages include: –AppleScript- PHP –ASP- Perl –C/C++/C#- Visual Basic

Mr. Dave Clausen37 Client-side Programs Server-side programs can be slow. Client-side programs were developed to run programs and scripts on the client side of a Web browser. Languages like JavaScript can be used to validate the information contained in the user’s response to a form before sending the information to a server side program.