Tonga Institute of Higher Education IT 141: Information Systems

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Advertisements

HTML I. HTML Hypertext mark-up language. Uses tags to identify elements of a page so that a browser such as Internet explorer can render the page on a.
WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
End User Computing An Introduction to CSS Sujana Jyothi Research Lab1, Callan Building, Department of Computer Science
Computing Concepts Advanced HTML: Tables and Forms.
World Wide Web1 Applications World Wide Web. 2 Introduction What is hypertext model? Use of hypertext in World Wide Web (WWW) – HTML. WWW client-server.
HTML Introduction HTML
There is a certain way that an HTML file should be set up. The HTML section declares a beginning and an ending. Within the HTML, there should be a HEAD.
INSTRUCTIONAL SUPPORT SERVICES (ISS) SHORT COURSE, FALL 2012 UMSL Introduction to Web Page Design.
Designing Web Pages Getting to know HTML... What is HTML? Hyper Text Markup Language HTML is the major language of the Internet’s World Wide Web. Web.
Presenting Information on WWW using HTML. Presenting Information on the Web with HTML How Web sites are organized and implemented A brief introduction.
Create a Website Session I Key Components Hands-on HTML.
Web Design HTML, Frontpage, DreamWeaver μέρος β ΠΡΥ019 - Πληροφορική Δρ.Βάσος Βασιλείου.
HTML & CSS A brief introduction. OUTLINE 1.What is HTML? 2.What is CSS? 3.How are they used together? 4.Troubleshooting/Common problems 5.More resources.
 2001 Deitel & Associates, Inc. All rights reserved. 1 Chapter 12 – Microsoft FrontPage Express Outline 12.1Introduction 12.2Microsoft FrontPage Express.
Copyright © Texas Education Agency, All rights reserved. 1 Web Technologies Website Development with Dreamweaver.
1 Essential HTML coding By Fadi Safieddine (Week 2)
Dr. Nuha El-KhaliliInternet Programming ( ) HTML Hyper Text Markup Language The language of web pages Maintained by the W3C
Understanding HTML Code
More Basic HTML. Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features Add alignments.
15.2 More Basic HTML. More Basic HTML Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features.
Getting Started with HTML Please use speaker notes for additional information!
1 Lesson 3 Power Techniques HTML and JavaScript BASICS, 4 th Edition Barksdale / Turner.
Fall 2005 Using FrontPage to Enhance Blackboard - Darek Sady1 Using FrontPage to Enhance Blackboard 1.Introduction 2.Starting FrontPage 3.Creating Documents.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
HTML: Hyptertext Markup Language Doman’s Sections.
CPSC 203 Introduction to Computers Lab 33 By Jie Gao.
LEARNING HTML PowerPoint #1 Cyrus Saadat, Webmaster.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
CIS133: Internet Development Week 2. Agenda  Homework Review  MYSCC  FTP  HTML Code  In-class  Lab / Homework.
HTML(Hyper Text Markup Language) ByNaveen. Introduction HTML or Hyper Text Markup Language is the standard markup language Its used to create the web.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Spiderman ©Marvel Comics Creating Web Pages (part 1)
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
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.
1 Preparation for site Create a folder in MyDocuments: beavercheese. Create a subfolder, images Classes, career, DW beginner Download.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Building a Website: Layout Fall Overall Structure: Home Page Title Section Title Frame Picture UNCP Math Menu Content Footer Contact Information.
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.
1 R3 R1 R5 R4 R6 R2 B B A A Looking at the Code Under the View menu Select Source.
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.
HTML Hyper Text Markup Language. What is HTML HTML stands for the Hyper Text Markup Language. HTML stands for the Hyper Text Markup Language. HTML is.
Chapter 2 Markup Language By : Madam Hazwani binti Rahmat
HTML Basics (Part-3).
Introduction to HTML.
HTML Basics.
Tonga Institute of Higher Education IT 141: Information Systems
Tonga Institute of Higher Education IT 141: Information Systems
What is HTML? Acronym for: HyperText Markup Language
Basic XHTML Tables XHTML tables—a frequently used feature that organizes data into rows and columns. Tables are defined with the table element. Table.
Chapter 5 Introduction to XHTML: Part 2
HTML / Website Creation
DreamWeaver CS4.
HTML Forms and User Input
Unit I: Collecting Data with Forms
HTML Extras.
Computers and Scientific Thinking David Reed, Creighton University
Tonga Institute of Higher Education IT 141: Information Systems
15.2 More Basic HTML & CSS.
Tonga Institute of Higher Education IT 141: Information Systems
If You Know Nothing About HTML, This is Where You Start.
USING DREAMWEAVER MX 2004 Contents: Assigning a Root Folder
Tonga Institute of Higher Education IT 141: Information Systems
More Basic HTML 2 assignments: 1—complete the worksheet
Computer communications
Unit 5 Create Forms.
Presentation transcript:

Tonga Institute of Higher Education IT 141: Information Systems Lecture 8: HTML Programming

HTML Background You should already know what HTML looks like and how it becomes a webpage You should also realize you must put your webpages on a webserver somehow. To create HTML webpages, there different programs that try to help with the process Then you must send the page to the webserver using FTP Then, other people will be able to see the webpage when they go to the server The web browser that the person uses will “render” the HTML file into a webpage that they receive from the server

How to create HTML There are many web page creator programs. A popular one that allows you to create webpages by through a graphical interface is called Dreamweaver. Dreamweaver, and other programs, hide the HTML programming to make it simpler, but it's still important to learn the foundation and background To make an HTML page all you need is a text editor A text editor just saves whatever you type and that’s it. The text editor we will use is called HTML-Kit and is on all your computers

Parts of a HTML page A webpage is broken in HEAD and BODY The header section Begins with the <head> tag, ends with </head> Put global tags that affect the entire web page This includes the title (<title>TITLE</title>) JavaScript or VBScript you want to put in Special information that is used by search engines to figure out what is on your webpage

Parts of HTML The body section begins with <BODY> This is where you put all your data, text, images, and other things you want to display An HTML Page might resemble this: <html> <head> <title>Hello Class</title> </head> <body bgcolor=‘silver’> This is my body </body> </html>

Styling your webpages Style affects the way your web page looks and feels You can control style with the following tags (there are many more though) <b>Bold</b> <i>Italic</i> <u>Underline</u> <marquee>Moving</marquee> <font color='blue'>Blue font</font>

Attributes If you want to change the color for a font or background <font color=“color”> <body bgcolor=“color”> You can use the English name Like red, blue, lime, black (<font color=“red”>) Or you can use a hexadecimal value that corresponds to colors <font color=“#ffffff”> <font color=“#3AB544”> White is #000000 and black is #ffffff, everything else is in between

The font tag The font tag will be important for making your website look a certain way. A font tag can have attributes of color, size, face Face means what type of font (verdana, courier, arial, tahoma). Size usually goes from –3  +3 Color from #000000 -> #ffffff

Other Formatting Tags These other tags can help you format your data <br> - make a new line <p> - make two new lines <hr> - make a line across the screen <center> - center text <div align=“right”> - align your text to the right <div align=“left”> - align your text to the left <li> - Make an item in a list

You’ve created your webpage After you’ve created your webpage and saved it on your computer you can test it by opening Internet Explorer and then going to File->Open, finding the file that you saved and selecting it. But how can other people view it? The file must be put onto a web server that is connected to the Internet

Using webservers You need to upload your files to a webserver. To upload, you must use a FTP (file transfer protocol) program for this There is a FTP program on your computers called FileZilla. Open that program and press connect. You will see a window that asks for information, like host name (www.tihe.org), username and password. Ignore the rest You will connect to the webserver. You will see a folder called public_html, double-click on this folder and open it (this is a folder on the webserver for your website) Now find where you saved the files on your computer on the left side of the screen. When you have find them, select and press the  button to transfer to the server. Now you’re done. You can see your webpage at http://www.tihe.org/~your_username/

Web page graphics You have made a basic webpage. There are now many other ways to format and improve upon it. To add pictures on your website, there are a number of steps to follow 1. Get the picture. You can make your own, or save one from the Internet (right click, save target as) 2. Make sure the image is in the same folder as the HTML files, otherwise the browser won’t know where to find the image 3. Then include the right tag <IMG SRC=“name.gif” border=“0”> Where name.gif is the name of the image

Types of web graphics There are three main types of picture formats on the web GIF – best for non-photographic images, can be made small in size JPG – good for pictures of things (people, places) PNG – newer type standard that gives higher resolution pictures at smaller sizes

Links To create hypertext links from one page to another Use the <a> tag <A href="otherfile.html">Click here</a> <a href="http://www.tihe.org">Go to tihe.org</a> <a href="#spot">Go within page</a> Then also use <a name=“spot”>Here is spot inside page</a> <A href=“file.html”><img src=“image.gif” border=“0”></a> Now image.gif is a link to click on <A href="mailto:cbf@tihe.org">Send me email!!</a>

Tables Tables let us format and break data up into smaller cells. It can look like a spread sheet, or it can help you put things into order Example Table: A B C D E F G H

Tables To make tables we use three tags PAGE DISPLAY AAA BBB CCC To start a table we use <table> To start a row use <tr> To start a cell within a row use <td> HTML CODE <table border=“1”> <tr> <td>AAA</td> <td>BBB</td> </tr> <td colspan=“2”>CCC</td> </table> PAGE DISPLAY AAA BBB CCC

Tables Attributes for <table>, <tr>, <td> tags bgcolor –set color for table background – name of a image file to use as background for table width – width in pixels height – height in pixels border – size of border around table (use 0 for none) Examples: <td bgcolor=‘green’ width=‘200’> <table width='500' border='1'> <td background='image.gif'> <tr bgcolor=‘yellow’>

Using Tables for formatting Tables are still the standard way in HTML to format data into alignment. For example, if you want a picture to be next to text <table border='0' width=300> <tr> <td><img src='penguin.gif'></td> <td valign=top>Text goes here <BR>Next to picture</td> </tr> </table> Text goes here Next to picture.

Forms People realized it would be useful if they could get information from people who visited their websites. Forms allow a person visiting at a website to send information back to the webserver. The webserver can then use a program (server side script) to take the information and use it For example, when you check your email, you are using a form to login to the email server That form asks for your username and password A form could ask for any type of information

Forms … Example Form

Forms Example HTML Code <form action="/sendmail.php" method="POST"> <input type="hidden" name="recipient" value="root@tihe.org"> First Name<input type="text" name="firstname" size=10><BR> Password: <input type="password" name="person_password" size="15"><BR> Island: <select name="Island"> <option value="TBU">Tongatapu</option> <option value="HP">Haapai</option> </select><BR> Gender: <input type="radio" name="gender" value="M" checked> M<BR> <input type="radio" name="gender" value="F" >F <BR> <textarea rows=5 cols=45>type here</textarea><BR> <input type=submit value="Click here my friend"> </form>

Form Elements To start a form, use the <form> tag and change two attributes You must tell it where the program is that you want to send the data to (called the action) and you need to tell it how to send the data (called the method) Example: <form action=“/sendmail.php" method="POST"> The method should almost always be "POST". The action must be the full path to where the program lives. We must also remember to end the form with a </form> tag.

Form Elements The actual form is made up of different Input types. An input type is a tag (<input>) that allows the user to enter data in a certain way. Example: <input type="text" name="age" size='10'> This tag will show a text box that the user can type in a line of text. When the data is sent to the server, the data will be called "age" Note the name that you choose can be any name you want, but each Input should have a different name.

Input Types There are a number of input types: Textbox <input type="text" name="Data1"> TextArea <textarea name="Data2"></textarea> Select Box <select name="Data3"> <option value="Type1">Type 1 </option> <option value="Type2"> Type 2</option> </select>

Input types Radio Buttons Submit Buttons: <input type="radio" name="Data3" value="Yes">Yes <input type="radio" name="Data3" value="No">No Submit Buttons: (when you click on a submit button, the web browser sends the data to the program on the server) <input type="submit" value="Submit Button">

Summary This was a brief introduction to HTML and how to use it. There are much more detailed references that you can find on the course web page that will explain more. You will need to use those resources to complete your assignments.