Creating Web Pages Using HTML

Similar documents
CSC Web Technologies, Spring HTML Review

11. HTML5 and Future Web Application

Web Design 101. What is HTML? HTML Tags. Web Browsers. <!DOCTYPE html> <html> <body> <h1>my First Heading</h1> <p>my first paragraph.

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

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

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

CSC 121 Computers and Scientific Thinking

CSC Web Programming. Introduction to HTML

Management Information Systems

recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML)

HTML Hyper Text Markup Language

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

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

Html basics Course Outline

A Balanced Introduction to Computer Science, 3/E

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

A HTML document has two sections 1) HEAD section and 2) BODY section A HTML file is saved with.html or.htm extension

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

HTML Images - The <img> Tag and the Src Attribute

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

Chapter 4. Introduction to XHTML: Part 1

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

1. The basic building block of an HTML document is called a(n) a. tag. b. element. c. attribute. d. container. Answer: b Page 5

Building Web Based Application using HTML

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

What You Will Learn Today

INTRODUCTION TO WEB USING HTML What is HTML?

introduction to XHTML

Basics of Web Design, 3 rd Edition Instructor Materials Chapter 2 Test Bank

Selected Sections of Applied Informatics

A Brief Introduction to HTML

HTMLnotesS15.notebook. January 25, 2015

Desire2Learn: HTML Basics

Web Publishing Basics I

c122jan2714.notebook January 27, 2014

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

Hyper Text Markup Language

Programmazione Web a.a. 2017/2018 HTML5

Web Development and Design Foundations with HTML5 8th Edition

HTML. Hypertext Markup Language. Code used to create web pages

I-5 Internet Applications

HTML & XHTML Tag Quick Reference

Web Development & Design Foundations with HTML5 & CSS3 Instructor Materials Chapter 2 Test Bank

HTML OBJECTIVES WHAT IS HTML? BY FAITH BRENNER AN INTRODUCTION

1.264 Lecture 12. HTML Introduction to FrontPage

How the Internet Works

Web Programming and Design. MPT Senior Cycle Tutor: Tamara Week 1

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

Creating Web Pages. Getting Started

Hyper Text Markup Language

CS 350 COMPUTER/HUMAN INTERACTION. Lecture 6

Introduction to HTML

CSE 3. Marking Up with HTML. Comics Updates Shortcut(s)/Tip(s) of the Day Google Earth/Google Maps ssh Anti-Spyware

CSC 101: Lab #2 HTML and the WWW Manual and Report Lab Date: Tuesday, 2/2/2010 Report Due Date: Friday, 2/5/2010 3:00pm

Introduction to using HTML to design webpages

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

HYPERTEXT MARKUP LANGUAGE ( HTML )

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

5/17/2009. Marking Up with HTML. An HTML Web Page File. Tags for Bold, Italic, and underline. Structuring Documents

This will be a paragraph about me. It might include my hobbies, where I grew up, etc.

Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

CSC 101: PreLab Reading for Lab #4 More HTML (some of this reading on Tables and Images are based on previous writings of Prof William Turkett)

Chapter 2. Self-test exercises

Hyper Text Markup Language HTML: A Tutorial

Certified HTML5 Developer VS-1029

FileNET Guide for AHC PageMasters

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

HTTP & Websites. Web Browsers. Web Servers vs. Web sites. World Wide Web. Internet Explorer. Surfing the World Wide Web. Part 4. The World Wide Web

CMPT 165 Unit 2 Markup Part 2

Anatomy of an HTML document

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

LING 408/508: Computational Techniques for Linguists. Lecture 14

Downloads: Google Chrome Browser (Free) - Adobe Brackets (Free) -

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

FileNET Guide for AHC PageMasters

Introduction to Computer Science (I1100) Internet. Chapter 7

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

MPT Web Design. Week 1: Introduction to HTML and Web Design

HTML. Based mostly on

Programming of web-based systems Introduction to HTML5

By Ryan Stevenson. Guidebook #2 HTML

Lesson: 6 Database and DBMS an Introduction. Lesson: 7 HTML Advance and features. Types of Questions

Chapter 4 A Hypertext Markup Language Primer

Chapter 4: Marking Up With HTML: A Hypertext tmarkup Language Primer

Creating a simple HTML page

Comp-206 : Introduction to Software Systems Lecture 22. Alexandre Denault Computer Science McGill University Fall 2006

Index. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148

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

Basic HTML Lecture 14

1 Creating a simple HTML page

Marking Up with HTML. Tags for Bold, Italic, and underline. An HTML Web Page File. Chapter 4: Marking Up With HTML: A. Formatting with Tags:

Announcements. Paper due this Wednesday

Introduction to Computer Science (I1100) Internet. Chapter 7

Working with HTML. must appear at the very beginning of your webpage. starts the first section of your page

Chapter 4 A Hypertext Markup Language Primer

Web Designing HTML5 NOTES

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

On a blog, code can mean many things. It can refer to the complicated

HTML Overview formerly a Quick Review

COMPSCI 111 / 111G An introduction to practical computing

Transcription:

Creating Web Pages Using HTML

HTML Commands Commands are called tags Each tag is surrounded by <> Some tags need ending tags containing / Tags are not case sensitive, but for future compatibility, use lower case Indentation and spacing are used to make the code more readable

Basic Structure <html> <head> </head> <body> </body> </html> The html tags begin and end the document. The head tags contain information about the web page and should appear only once. The body tags contain the visible part of the web page and appear only once.

Creating your HTML file Notepad++ Save your file by choosing Save As Give your file a simple name and use the.html extension Change the Save As Type to All Files

An HTML 5 Template <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>template</title> <!-- HTML Comment --> </head> <body> <h1>hello World</h1> </body> </html> Be careful when using copy/paste. HTML docs need straight quotes!

Viewing your file in a browser Launch the Browser From the File menu, choose Open Click the Browse button Locate your html file Be sure to check in different browsers!

Viewing changes As you work on your file in Notepad++, you can simply Save any changes once your file is named correctly. If the page is loaded in the Browser already, click the Refresh button to see the changes.

Entering Text Enter text in the body section with the following optional tags: Line break: <br> Paragraph tags insert white space: <p> </p> Heading tags Select heading size: h1 through h6 Use a corresponding ending tag <h1> is the largest <h3> or <h4> are normal <h6> is the smallest

Example <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>template</title> <!-- HTML Comment --> </head> <body> Here is a sample <br> web page <p> It uses paragraph tags</p> <h1>and heading tags</h1> </body> </html>

Titles The <head> section of an HTML document contains information about the page The <title></title> tags are placed in the <head> section to give the page a name. The text contained between the tags will appear in the title bar of the browser Formatting has no effect Additional information in the <head> section might be keywords for searching, meta information or comments, for example.

Some Style Elements Strong: <strong> </strong> Italics (emphasis): <em> </em> Underline: <u> </u> Tags may be nested as follows: <strong><em> CSC455 </em></strong> But don t allow them to cross: <strong><em> CSC455 ></strong></em>

Lists Ordered lists are numbered: <ol> <li>one</li> <li>two</li> <li>three</li> </ol> The li tag stands for list item The HTML at the left creates the following list: 1. One 2. Two 3. Three

More Lists Unordered lists are bulleted: <ul> <li>one</li> <li>two</li> <li>three</li> </ul> The HTML at the left creates the following list: One Two Three

Adding Graphics Graphics files typically end in.gif or.jpg Copy and paste doesn t work The image file must be saved, usually in an images folder in the same directory as the html file Use the following tag: <img src = "filename.xxx"> where filename.xxx is the name of your image file If images are in a folder (a common practice): <img src = "images/filename.xxx">

More about graphics You should include alternative text for users who can t or don t want to load images: <img src = "logo.gif" alt= "Company Logo"> You may also include width and height values in pixels (screens are usually 800x600 and up): <img src = "logo.gif" height="200" width="40">

Creating Links To create a link to another URL use the tag: <a href = "http:// "> Text </a> You can also link to another local HTML file instead: <a href = "page2.htm"> Text </a> The Text is what the user should click on to go to the URL (Note: this could be an img src tag instead)

Tables The entire table is contained between the <table> </table> tags Rows are indicated with the tags <tr></tr> Cell contents may be contained in either Heading tags <th></th> or Data tags: <td></td> Indentation helps outline the structure of the table

Example <table> <tr> </tr> <tr> </tr> <tr> </tr> </table> <th> Heading 1 </th> <th> Heading 2 </th> <td> Cell 1 </td> <td> Cell 2 </td> <td> Cell 3 </td> <td> Cell 4 </td> Heading 1 Heading 2 Cell1 Cell2 Cell3 Cell4

Forms: Input Structures <form action=" " method = " " > </form> action is the name of the file that will process the data method is "get" or "post"

Form Text Boxes <input type="text" name=" " > name assigns the identifier that will store the data when it is processed Example: Username: <input type ="text" name= " username" >

Radio (Option) Buttons <input type="radio" name="group1" value="1" > button one<br> <input type="radio" name="group1" value="2" > button two<br> Only ONE may be selected names should all match each other values should be distinct - this is what will be submitted when the form is processed The text before the <br> tag will be displayed next to (after) the button

Check Boxes <input type= checkbox" name="group1" value="1" > box one<br> <input type="radio" name="group2" value="2" > box two<br> Any, none, or all may be selected names should be distinct values should be distinct - this is what will be submitted when the form is processed

Selection List <select name=" "> <option value="value1"> text1 </option> <option value="value2"> text2 </option> <option value="value3"> text3 </option> </select>

Buttons <input type="submit" value="text" name= "submit" > <input type="reset" value="text" name= "reset" > where "text" is what you choose to appear on the button

Sample Data Sent to Server (GET) http://www.thelighthouse.org/cgibin/donation?email=donations@thelighthouse.org&addres stype=business&firstname=bob&lastname=jones&phone =9627567&street=601+S.+College+Rd&city=Wilmington &state=nc&zip=28409&amount=%24100&creditcard=m C&cardHolder=Bob+Jones&cardNumber=111122223333 4444&expMonth=01&expYear=2011&volunteer=on&com ments=please+send+a+receipt

For additional information The following websites may be useful: http://www.html-form-guide.com/html-form/html-forminput.html http://www.w3schools.com/html/html_forms.asp http://html.about.com/