Creating a Web Page with HTML

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

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

HTML: Fragments, Frames, and Forms. Overview

Chapter 4 Notes. Creating Tables in a Website

Tables *Note: Nothing in Volcano!*

Advanced HTML 5.1 INTRODUCTION 5.2 OBJECTIVES

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

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

Objectives. Tutorial 8 Designing ga Web Site with Frames. Introducing Frames. Objectives. Disadvantages to Using Frames. Planning Your Frames

Creating web pages Chapter 5. Structuring contents

IMY 110 Theme 7 HTML Tables

Name Related Elements Type Default Depr. DTD Comment

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

Introducing Web Tables

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

Chapter 5. Introduction to XHTML: Part 2

Web Design and Application Development

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

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

Chapter 2. List, Tables,Frame and Forms

Dreamweaver CS3 Concepts and Techniques

Advanced HTML Scripting WebGUI Users Conference

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

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

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

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

INFS 2150 / 7150 Intro to Web Development / HTML Programming

HTML WORKSHEET Explain HTML HEAD Tag Title Tag BASEFONT Tag

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

Web Development & Design Foundations with HTML5

IMY 110 Theme 11 HTML Frames

frameset rows cols <frameset> rows cols

HTML Forms. By Jaroslav Mohapl

Spring 2014 Interim. HTML forms

HTML 5 Tables and Forms

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

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

To assign a name to a frame, add the name attribute to the frame tag. The syntax for this attribute is: <frame src= url name= name />

HyperText Markup Language/Tables

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

NAME: name a section of the page TARGET = "_blank" "_parent" "_self" "_top" window name which window the document should go in

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

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

SYBMM ADVANCED COMPUTERS QUESTION BANK 2013

Html basics Course Outline

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

Chapter 7 Tables and Layout

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

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

Chapter 7 Tables and Layout

Row and Column Spans. Homework. Column and Row Span Example (2) Column and Row Span Example. tables: Live Demo. like the following using forms:

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

Table-Based Web Pages

Building Web Based Application using HTML

HTML Tables and. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

CSC Web Technologies, Spring HTML Review

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

Chapter 6. Using Frames in a Web Site

Table Basics. The structure of an table

LESSON 3. Coding Tables Continued

Module: Online Publishing Year: 2 Lecturer: Maxwell Robertson Session: 3 Copyright 2004 (All Rights Reserved.

HTML. LBSC 690: Jordan Boyd-Graber. October 1, LBSC 690: Jordan Boyd-Graber () HTML October 1, / 29

Introduction to Computer Science (I1100) Internet. Chapter 7

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

Exercise #2: your Profile

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

Web Technology. HTML & xhtml

CITS1231 Web Technologies. HTML Tables and Page Design Issues

Page Layout Using Tables

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

INFS 2150 / 7150 Introduction to Web Development & HTML Programming

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

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

D B M G. Introduction to databases. Web programming: the HTML language. Web programming. The HTML Politecnico di Torino 1

Final Examination Semester 1 / Year 2012

Chapter 0. HTML review

(E) FOUNDATION OF INFORMATION TECHNOLOGY (FIT) (CODE No. 165) (Session ) CLASS - IX

HTML & XHTML Tag Quick Reference

COMPUTER APPLICATIONS 10. HTML - Structural Tags SECTION-B

Chapter 1 FORMS. SYS-ED/ Computer Education Techniques, Inc.

Hyperlinks, Tables, Forms and Frameworks

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

Intermediate HTML Using Dreamweaver

WTAD Text Editors for HTML. Text Editors: Kate HTML. (HyperText Markup Language)

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

WTAD. Unit -1 Introduction to HTML (HyperText Markup Language)

Content Designing using HTML(Frames and Forms)

Website Design (Weekend) By Alabian Solutions Ltd , 2016

INFS 2150 Introduction to Web Development

Chapter Objectives. XHTML Frames B-1. In this chapter, you will learn how to CHAPTER

INFS 2150 Introduction to Web Development

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

Creating Web Pages Using HTML

HTML Exercise 24 Tables

COMS 359: Interactive Media

Lecture (02) HTML. By: Dr. Ahmed ElShafee. Dr. Ahmed ElShafee, ACU : Spring 2016, Web Programming

Appendix A. XHTML 1.1 Module Reference

COMP519: Web Programming Lecture 4: HTML (Part 3)

E-Shiksha Academy. Certified Website Designer & Developer

Output a HTML Table to file PDF use FPDF

Transcription:

CT1501 DEVELOPMENT OF INTERNET APPLICATION Creating a Web Page with HTML Prepared By: Huda Alsuwailem Reviewed by: Rehab Alfallaj www.faculty.ksu.edu.sa/rehab-alfallaj ralfallaj@ksu.edu.sa

Tables <TABLE BORDER= 1 > <TR><TD> CELL1 </TD><TD> CELL2 </TD></TR> <TR><TD> CELL3 </TD><TD> CELL4 </TD></TR> </TABLE> This previous tag creates the following table: Let me explain the last tag: <TABLE>... </TABLE> <TR>... </TR> <TD>... </TD> Table identification tags. Table Row identification tags. Table Data (Cells) identification tags

Again: <TABLE> <TR> <TD> Data </TD> <TD> Data </TD> </TR> This is the result <TR> <TD> Data </TD> <TD> Data </TD> </TR> <TR> <TD> Data </TD> <TD> Data </TD> </TR> </TABLE>

Dealing with tables method is done on three levels: The Table level as whole. The Rows level as whole or each individually. The Cells level as whole or each individually. Table features: BORDER <TABLE BORDER= 5 > WIDTH <TABLE WIDTH= 600 > <TABLE WIDTH= %80 > HEIGHT <TABLE HEIGHT= 500 > <TABLE HEIGHT= %100 > (. cell CELLSPACING ( To determine the space between each table <TABLE CELLSPACING= 10 >

CELLPADDING ( To determine the space between cell edges and the (. margins text in every cell; to determine the cell <TABLE CELLPADDING= 10 > (. alignment ALIGN ( To determine the table <TABLE ALIGN= LEFT > <TABLE ALIGN= RIGHT > BGCOLOR ( To determine the table background color, we can use the (. code color names or the hex <TABLE BGCOLOR= #0099cc >

Cells features: ALIGN ( To determine the text s horizontally alignment inside the (. cell <TD ALIGN= LEFT > <TD ALING= CENTER > <TD ALIGN= RIGHT > VALIGN ( To determine the text s vertically alignment inside the cell.) <TD VALIGN= MIDDLE > <TD VALIGN= TOP > <TD VALIGN= BOTTOM > (. color BGCOLOR ( To determine the cell s background <TD BGCOLOR= #4682B4 > <TD BGCOLOR= #0099CC > Also you can put an image for the background. <TD BACKGROUND= lolo.gif >

WIDTH ( To determine the cell s width). HEIGHT ( To determine the desired height). COLSPAN ( merges the current cell with the desired horizontal cells). ROWSPAN ( Merges the current cell with the desired vertical cells). <TABLE BORDER= 1 ALIGN= RIGHT WIDTH= 200 > <TR> <TD ROWSPAN= 2 > A <BR> B </TD> <TD> TOP CELL </TD> </TR> <TR><TD> BOTTOM CELL </TD> </TR> </TABLE>

CAPTION The latest tags used in tables are <CAPTION>... </CAPTION> which are used in adding a major title for the table. Therefore, they are put after <TABLE> directly and separately ( Not in the cells or rows tags). <TABLE BORDER= 1 WIDTH= 200 > <CAPTION> here is the table title </CAPTION> <TD> data 1 </TD> <TD> data 2 </TD> <TR> <TD> data 3 </TD> <TD> data 4 </TD> </TR> </TABLE>

Forms The form tag is <FORM>... </FORM> and all the tags which will be related with the form will be between the form tags. We have three features for the form which are: ENCTYPE, METHOD and ACTION. e.g.: <FORM ACTION= mailto:ralfallaj@ksu.edu.sa METHOD= post ENCTYPE= text/plain > ACTION: Determine the address that will send the form data to, to be processed as required. METHOD:. Determine how they will be handled with the address specified in the previous property. it has two values Post and GET. ENCTYPE: This property specifies which coding data will be sent in accordance with them.

Types of forms The <INPUT> tag is used for inserting data by the form e. g.: <FORM > Please enter your address : <INPUT TYPE= text NAME= address VALUE= Nablus,Palestine SIZE= 40 MAXLENGTH= 30 > </FORM> Another e. g.: <FORM > Please enter your name : <INPUT TYPE= text NAME= name SIZE= 40 MAXLENGTH= 30 > Please enter your password : <INPUT TYPE= password NAME= password SIZE= 40 MAXLENGTH= 30 > </FORM>

RADIO األخضر value="green"> <input name="color" type="radio" األسود value="black"> <input name="color" type="radio" األزرق value="blue"> <input name="color" type="radio" األحمر value="red"> <input name="color" type="radio" CHECKBOX <input type="checkbox" name="ws" value="yes">winamp <input type="checkbox" name="ps" value="yes">photoshop <input type="checkbox" name="acd" value="yes">acdsee <input type="checkbox" name="all" value="yes">all Important: in radio we can select one field only where in checkbox we can select more than one. So, it is usually used in conditions where it is possible to have more than one answer to the same question. In radio, field names are the same and the values differs. On the other hand, field names in checkbox differs and the values are the same.

<FORM> <SELECT NAME= bro > <OPTION VALUE= wa >Winamp <OPTION VALUE= ps >Photoshop <OPTION VALUE= acd >ACDSee <OPTION VALUE= all >All </SELECT> </FORM> Drop down Select Boxes Another e. g.: <FORM> <SELECT NAME= browser SIZE= 2 > <OPTION VALUE= wa >Winamp <OPTION VALUE= ps >Photoshop <OPTION VALUE= acd >ACDSee <OPTION VALUE= all >All </SELECT> </FORM>

<FORM> <SELECT NAME= browser SIZE= 4 MULTIPLE> <OPTION VALUE= wa >Winamp <OPTION VALUE= ps >Photoshop <OPTION VALUE= acd >ACDSee <OPTION VALUE= all >All </SELECT> </FORM> Another e. g.: <FORM> <SELECT NAME= browser SIZE= 4 MULTIPLE> <OPTION VALUE= wa >Winamp <OPTION VALUE= ps SELECTED>Photoshop <OPTION VALUE= acd >ACDSee <OPTION VALUE= all >All </SELECT> </FORM>

<TEXTAREA NAME= comments > Write here your comments </TEXTAREA> TEXTAREA Another e. g.: <TEXTAREA NAME= comments COLS= 30 ROWS= 6 > </TEXTAREA>

Assuming that we have finished from writing the form s code and we are waiting for any visitor to fill it, we are in front of a serious question which is how can he/she really send it?. Get back to <INPUT> and this time with the submit type which will automatically create a button when clicking on it, data will be send. <INPUT TYPE= submit > e. g.: < منفضلكأرسللي VALUE=" <INPUT TYPE="submit"

< أمسحالحقول VALUE=" <INPUT TYPE="reset" You can change the shape of the grey Submit button to any image you choose. <INPUT TYPE="image" SRC="images/submit.gif" HEIGHT="20" WIDTH="60" BORDER="0" < أدخلبیاناتك ALT="

Frames Do you know what frames are? Ok, I will explain. Have you ever entered a page and noticed that it is divided into many sections where in each there is a separate page and looks unconnected to the others. Maybe you have clicked on a hyperlink in one of the sections and the page linked to it appeared in another section. If you had ever seen like these pages, this means that frames are familiar to you. The truth is that every section of it is a full separate HTML file. They are ordinary pages which do not differ at all from the ones you have known how to establish in previous lessons, and each page has no connection to the others. The bottom line is, how were they accompanied to appear in the shape you have seen? In addition to the ordinary pages and files, there is always a basic file that is established specially to identify the frames page, accompany them and choose their features.

Establish 3 or 4 simple files to use them in performing the examples: Contents.htm, Banner.htm & MasterFrame.htm. Now we will establish the basic file <FRAMESET>... </FRAMESET> as a replacement for <BODY>... </BODY> e. g. <HTML> <HEAD> <TITLE>Master Frame< /TITLE> < /HEAD> <FRAMESET> < /FRAMESET> < /HTML>

Now we will divide the page into three part: <FRAMESET ROWS="100,*"> <FRAME SRC= frame1.htm"> <FRAMESET COLS="200,*"> <FRAME SRC= frame2.htm"> <FRAME SRC= frame3.htm"> < /FRAMESET> < /FRAMESET> And it will be like this: 100 Pixel 200 Pixel The remaining from the screen s width

Framesets features: FRAMEBORDER ( Which displays a border for the frame if it takes the value 1 and hides the border if it takes the 0 value e. g. : <FRAMESET ROWS="50,*" FRAMEBORDER="0"> <FRAME SRC="frame1.html"> <FRAME SRC="frame2.html"> < /FRAMESET> BORDER ( Which determines the border thickness which will be in ( pixel. (. color BORDERCOLOR ( To determine the border FRAMESPACING ( To add space around the border which will be in (. pixel

Frames features: MARGINHEIGHT ( To determine the top and bottom frame margins (. pixel which will be in e. g. : MARGINHEIGHT= n MARGINWIDTH ( To determine the left and right frame margins (. pixel which will be in e. g. : MARGINWIDTH= n SCROLLING ( To determine the status of displaying the scrolling bar. It takes three values yes for appearance, no for hiding and auto (. needed for displaying the scrolling bar if e. g. : SCROLLING= yes SCROLLING= no SCROLLING= auto NORESIZE ( When we add this feature, the user can't control the size of the frame by maximizing or minimizing via the mouse. This (. it feature doesn't take any value, just we write Also, BORDER, FRAMESPACING, FRAMEBORDER,BORDERCOLOR which are used with this tag and with the same details we have mentioned previously with <FRAMESET> but it determines one border features only and not a set of borders.

e. g. : <FRAMESET COLS= %50,%50"> <FRAME SRC="frame1.htm" MARGINHEIGHT="40" MARGINWIDTH="30" SCROLLING="yes" NORESIZE> <FRAME SRC="frame2.htm"> </FRAMESET> ------------------------------------ In line frames ( To insert a frame inside a normal web page. The in-line frames is an easy tag you just need to determine the place of the target page which will appear in the frame and determine the height and width properly e. g.: <IFRAME SRC= inlineframes1.html WIDTH= %70 HEIGHT= 90 ></IFRAME>

If our main page was divided into 2 sections, we can show the first section s links in the second section. The following example is for illustration: The main page s code is: <html><head><title>...frames... </title></head> <frameset cols="20%,*"> <frame src= frame1.htm"> <frame src= frame2.htm" name="main"> </frameset> </html> We will show the links on page (frame1) in (frame), which we named (main) as follows: <html><head><title>...frame1...</title></head> <!-- body --> <body> <a href="first.htm" target="main">first page</a> <p><a href="image1.htm" target="main">first image</a> </body> </html>

Do we need to determine (target) in each link? There is a faster way. Instead of determining (target) in each link, we use the tag <base> with the adjective (target). This will be a part of the page head as: <html><head> <title>...table...</title> <base target="main"> </head> <!-- body --> <body> <a href="first.htm">first page</a> <p><a href="image1.htm">first image</a> </body> </html>