Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley What did we learn so far? 1.Computer hardware and software 2.Computer experience.

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
WeB application development
XHTML Basics.
Chapter 4 A Hypertext Markup Language Primer. Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Learning Objectives Know the.
Chapter 4 Marking Up With Html: A Hypertext Markup Language Primer.
HTML Computing Concepts HTML - An Introduction 1.
Marking Up With Html: A Hypertext Markup Language Primer
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
Chapter 14 Introduction to HTML
Spring 2013 CS 103 Computer Science – Business Problems Lecture 6: A Hypertext Markup Language (HTML) Instructor: Zhe He Department of Computer Science.
Basics of HTML.
Creating a Simple Page: HTML Overview
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.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley A Hypertext Markup Language Primer Marking Up with HTML lawrence snyder c.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
DAT602 Database Application Development Lecture 14 HTML.
CS 299 – Web Programming and Design Introduction to HTML.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Essential Tags Web Design – Sec 3-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Tutorial 1 Developing a Basic Web Page. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives – Lesson 1 Introduction to the.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Introduction to Computers CS Dr. Zhizhang Shen Chapter 4: Talking.
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
Learning Web Design: Chapter 4. HTML  Hypertext Markup Language (HTML)  Uses tags to tell the browser the start and end of a certain kind of formatting.
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
HTML. WHAT IS HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language A markup language is a set of.
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.
Chapter 4 (through page 110) Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
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.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Course Content - Chapter 2 Introduction to HTML Introduction to a Text Editor as a web authoring tool Instructional Activity: Creating a webpage using.
Introduction to HTML. What is HTML? Hyper Text Markup Language (HTML) is a language for describing web pages. HTML is not a programming language, it is.
Web Programming Basics of HTML. HTML stands for Hyper Text Mark-up Language A mark-up language is different than those that you have learned before in.
Web Page Creation Part I ST: Introduction to Web Interface Design Prof. Angela Guercio.
Just Enough HTML How to Create Basic HTML Documents.
Basic HTML PowerPoint How Hyper Text Markup Language Works
Introduction to HTML. Slide 1 Hard-Coding What is hard-coding? –Creating the page in a text editor just using HTML A Web designer should know how to hard-
HTML: Hyptertext Markup Language Doman’s Sections.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley A Hypertext Markup Language Primer Marking Up with HTML lawrence snyder c.
Introducing the World Wide Web Internet- a structure made up of millions of interconnected computers whose users communicate with each other and share.
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
4 HTML Basics 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.
HTML Primer. A very good set of tutorials and references for HTML “Try it” feature lets you type in HTML.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
HyperText Markup Language. Web Hosting Creating a web site (on a site like iPage) –Buy domain name ( –iPage has registrar (e.g., FastDomain.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
1 2/16/05CS120 The Information Era Chapter 4 Basic Web Page Construction TOPICS: Intro to HTML and Basic Web Page Design.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
1 Introduction to HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Getting Started With HTML
HTML Basics.
Marking Up with XHTML Tags describe how a web page should look
Aside on Conversions  . Aside on Conversions  
Introduction to Web Page Design
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Introduction to Web Application Design
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Introduction to Web Application Design
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley What did we learn so far? 1.Computer hardware and software 2.Computer experience 3.Computer algorithm 4.Data, instructions 5.Binary number system: Just a gentle introduction 6.Digitization means converting into 1’s and 0’s

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Today’s topics Computer block diagram Introduction HTML tags Your first web page Chapter 4

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Block diagram of a Computer Input Memory Arithmetic Logic Unit Control Unit Output

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Learning Objectives Know the meaning of and use hypertext terms Use HTML tags to structure a document Use HTML tag attributes Use HTML tags to link to other files Explain the differences between absolute and relative pathnames Use Cascading Style Sheets to style a Web page Use HTML to encode lists and tables

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Marking Up with HTML HTML: Hyper text markup Language HTML is used to structure a web page The words on a Web page are embellished by hidden formatting We use the XHTML or the Extensible Hypertext Markup Language XHTML is an updated version of HTML

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Basic Elements of Web page.html file Style files image and audio files Web browser Firefox, Safari webpage Prepare/edit files interprets displays

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Web Pages Web pages are created, stored, and sent in encoded form A browser converts them to what we see on the screen Hypertext Markup Language (HTML) is the main language used to define how a Web page should look Features like background color, font, and layout are specified in HTML

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Lets learn some HTML tags

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Formatting with Tags Tags are words or abbreviations enclosed in angle brackets, Many tags come in pairs The second of the pair comes with a slash: Fluency In XHTML, the tags must be lowercase,, and are illegal The tag pair surrounds the text to be formatted like parentheses

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Formatting with Tags Serena Williams These tags can be read as “this is where the title starts” and “this is where the title ends” is referred to as the start or open tag is the end or close tag The title appears on the title bar of the browser

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Tags for Bold and Italic HTML has tags: –for bold text, and –for italic text, and –for paragraphs, and More than one kind of formatting can be used at a time: Veni, Vidi, Vici! produces Veni, Vidi, Vici!

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Tags for Bold and Italic It doesn’t matter in which order you start the tags: italic follows bold, or bold follows italic You get the same result The rule is to make sure the tags “nest” correctly…they should mirror each other All the tags between a starting tag and its ending tag should be matched

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Singleton Tags A few tags are not paired They do not have a matching ending tag For those tags, the closing angle bracket > of the singleton tag is replaced by /> Examples: produces a horizontal line continues the text to the next

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley More Formatting Tags Documents can be formatted in many ways Each formatting feature requires its own tag Programmers and Web designers need to remember a few common tags Uncommon tags can be looked up: for example, at:

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Required Tags Every Web page is composed of a head and a body There are three HTML tags required for every Web page: – and enclose the head – and enclose the body – and to enclose those two parts

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Required Tags The text following the letters html: –the dialect is XHTML –the part inside of the quotes must be written exactly as given

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Required Tags Starter other stuff goes here…that will come later The head section contains the beginning material like the title and other information that applies to the whole page

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Required Tags the main content of the page goes here The body section contains the content of the page. This form must always be followed All of these tags are required

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Configure Your Computer for Writing HTML Check that two programs are installed: –A browser (check for Firefox) –A text editor (Notepad++ for Windows or Text Wrangler for Macs) Both programs are free These programs are preferred for technical reasons

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Firefox Firefox is a free open source browser Open source means that the program code is publicly available, and any programmer can contribute improvements to it Firefox is the browser referenced throughout this book It is available at

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Text Editor A text editor is a basic way to process text Our word processors are called “what-you-see-is-what-you-get” or (WYSIWYG) Word processors include many application-specific information in their files This information confuses browsers

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Text Editor You must use a text editor to write HTML Text editors do not include this extra information, browsers like their files! Browsers want Web pages written in ASCII characters only Think of ASCII as the normal keyboard characters with “nothing strange”

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Text Editor Text editors figure out what language you are writing in and color code your HTML to make it easier to read Operating systems come with text editors installed. –TextEdit can be found on the Mac –Notepad comes with Windows TextWrangler and Notepad++ are better choices

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Hello, World! To produce your first HTML page, follow these instructions: 1.In your text editor, open a New document instance. 2.Carefully type in your text (see next slide) Remove the preliminary material goes here nothing will replace it, yet Replace the main content of the page goes here with: Hello, World! 3.Save the file as starterPage.html 4.Open the file with the Firefox browser

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Open with Double-Click As HTML is written, files must be opened in two applications: –the text editor, to make changes –the browser, to see the changes made Double-click on the file to open it with the default application (your browser)

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Save This Page All HTML files have the same structure as the starterPage.html file just created Use it as a template for future HTML coding Set up a new folder to keep your HTML files in Using your new page as a template ensure that all pages will have the correct form

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Headings in HTML Documents tend to have headings, subheadings HTML provides several levels of heading tags: – and level one – and level two –… – and level six –Headings display content on a new line headings are bold and get less “strong” (smaller and perhaps not so bold) as the level number increases.

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley HTML Format Versus Display Format HTML source code tells the browser how to produce the formatted page based on the meanings of the tags The source’s form is unimportant HTML is written in a structured format to make it easier for people to understand Indenting is frequently used to emphasize the tags’ meanings

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley White Space Spaces that have been inserted for readability are called white space White space is created with spaces, tabs, and new lines (return or enter) HTML ignores white space The browser turns a sequence of white space characters into a single space

Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Summary Lets “author” or write a simple web page and “browse” it Today we will use notepad and firefox We studied some simple HTML tags and how to write a simple web page