A Balanced Introduction to Computer Science, 3/E

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

CSC 121 Computers and Scientific Thinking

Management Information Systems

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

Web Page Creation Part I. CS27101 Introduction to Web Interface Design Prof. Angela Guercio

Html basics Course Outline

A Brief Introduction to HTML

HTML BEGINNING TAGS. HTML Structure <html> <head> <title> </title> </head> <body> Web page content </body> </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

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

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

Creating Web Pages. Getting Started

HTMLnotesS15.notebook. January 25, 2015

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

This document provides a concise, introductory lesson in HTML formatting.

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

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar with Dynamic Background Image

Introduction to HTML. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island

Chapter 4 A Hypertext Markup Language Primer

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

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

The internet is a worldwide collection of networks that link millions of computers. These links allow the computers to share and send data.

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

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

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

Hyper Text Markup Language HTML: A Tutorial

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

Part 1: HTML Language HyperText Make-up Language

Basic HTML Lecture 14

Web Publishing Basics I

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

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

Geocaching HTML & BBCode FUNdamentals by Scott Aleckson (SSO JOAT)

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

By Ryan Stevenson. Guidebook #2 HTML

c122jan2714.notebook January 27, 2014

Basic HTML Handout & Exercise Web Technology

Shatin Tsung Tsin Secondary School S.3 Computer and Technology Web Page Design by HTML Introduction to HTML

7300 Warden Avenue, Suite 503 Markham, Ontario Canada L3R 9Z6. Phone: Toll Free: Fax:

Markup Language SGML: Standard Generalized Markup Language. HyperText Markup Language (HTML) extensible Markup Language (XML) TeX LaTeX

Introduction to using HTML to design webpages

Chapter 3 Web Design & HTML. Web Design Class Mrs. Johnson

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:

Chapter 4. Introduction to XHTML: Part 1

HTML OBJECTIVES WHAT IS HTML? BY FAITH BRENNER AN INTRODUCTION

1.264 Lecture 12. HTML Introduction to FrontPage

I-5 Internet Applications

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

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

GIMP WEB 2.0 MENUS WEB 2.0 MENUS: HORIZONTAL NAVIGATION BAR CREATING AN HTML LIST

Page Layout Using Tables

MMGD0204 Web Application Technologies. Chapter 3 HTML - TEXT FORMATTING

CSS: The Basics CISC 282 September 20, 2014

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

Hyper Text Markup Language

Introduction to HTML. SSE 3200 Web-based Services. Michigan Technological University Nilufer Onder

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

Chapter 1 Getting Started with HTML 5 1. Chapter 2 Introduction to New Elements in HTML 5 21

Introduction to Computers and Their Applications

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

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

What You Will Learn Today

CS 1100: Web Development: Client Side Coding / Fall 2016 Lab 2: More HTML and CSS

CSCE 101. Creating Web Pages with HTML5 Applying style with CSS

Building Web Based Application using HTML

Programmazione Web a.a. 2017/2018 HTML5

HTML Hints & Tips. HTML is short for HyperText Markup Language.

CSC Web Programming. Introduction to HTML

Hyper Text Markup Language

3.1 Introduction. 3.2 Levels of Style Sheets. - HTML is primarily concerned with content, rather than style. - There are three levels of style sheets

Text and Layout. Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 11. This presentation 2004, MacAvon Media Productions

COMP519 Web Programming Lecture 6: Cascading Style Sheets: Part 2 Handouts

Introduction to WEB PROGRAMMING

Creating Web Pages Using HTML

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

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

Desire2Learn: HTML Basics

The City School. Prep Section. ICTech. 2 nd Term. PAF Chapter. Class 8. Worksheets for Intervention Classes

The City School. Prep Section. ICTech. 2 nd Term. PAF Chapter. Class 7. Worksheets for Intervention Classes

- HTML is primarily concerned with content, rather than style. - However, tags have presentation properties, for which browsers have default values

Creating Web Pages Using Netscape Composer AGENDA FOR THIS WORKSHOP. 1. How does it all work? 2. What do I need to get started at Fairfield?

request HTML Document send HTML Document

Web Programming Week 2 Semester Byron Fisher 2018

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

Learning Objectives. Review html Learn to write a basic webpage in html Understand what the basic building blocks of html are

HTML and CSS. Data Technologies. HTML Headings. Background Reading

Final Exam Study Guide

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

Structure Bars. Tag Bar

Your Own Web Page; Quick and Dirty Via Mashup Reminder: Next Quiz on 4/15

Web Design and Application Development

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

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

11. HTML5 and Future Web Application

CHAPTER 1: GETTING STARTED WITH HTML CREATED BY L. ASMA RIKLI (ADAPTED FROM HTML, CSS, AND DYNAMIC HTML BY CAREY)

Introduction to Computer Science (I1100) Internet. Chapter 7

Schoolwires Editor Best Practices. Schoolwires Centricity2

HYPERTEXT MARKUP LANGUAGE ( HTML )

All Creative Designs. Basic HTML for PC Tutorial Part 2 Using MS Notepad Revised Version May My First Web Page

INFS 2150 / 7150 Intro to Web Development / HTML Programming

Transcription:

A Balanced Introduction to Computer Science, 3/E David Reed, Creighton University 2011 Pearson Prentice Hall ISBN 978-0-13-216675-1 Chapter 2 HTML and Web Pages 1

HTML & Web Pages recall: a Web page is a text document that contains additional formatting information in the HyperText Markup Language (HTML) HTML specifies formatting within a page using tags in its simplest form, a tag is a word or symbol surrounded by brackets (<>) 2

HTML Tags required tags in a Web page: <html> and </html> enclose the entire HTML document the HEAD section (enclosed between <head> and </head>) contains information that the browser uses to control the look of the page the HEAD can contain a title for the browser window, enclosed between <title> and </title> the BODY section (enclosed between <body> and </body>) contains the text that will appear in the page 3

HTML Elements tags and the text they enclose form an HTML element <title> Title of the Page </title> is a TITLE element <head> <title> Title of the Page </title> </head> is a HEAD element (which contains a nested TITLE element) 4

HTML Elements tags and the text they enclose form an HTML element <title> Title of the Page </title> is a TITLE element <head> <title> Title of the Page </title> </head> is a HEAD element (which contains a nested TITLE element) most HTML elements have opening and closing tags, but not all <!-- demo1.html Dave Reed --> is a COMMENT element a comment is ignored by the browser (it does not appear in the rendered page) comments are used by the page developer to document page features 4

Text Layout extra white space (spaces, tabs and blank lines) is ignored by the browser this allows the browser to adjust the text to the window size you can control some of the text layout using HTML elements a PARAGRAPH element (<p> </p>) specifies text surrounded by blank lines a BREAK element (<br>) causes text to be displayed on a new line the symbol forces a space to appear in the text 5

Headings & Alignment in a large document, it is useful to divide the text into sections and then provide each with a heading describing the content that follows <h1> </h1> enclose a top-level heading (large and bold) <h2> </h2> enclose a sub-heading (slightly smaller and bold)... <h6> </h6> enclose the smallest sub-heading the HORIZONTAL-RULE element <hr> draws a dividing line in the page 6

Headings & Alignment in a large document, it is useful to divide the text into sections and then provide each with a heading describing the content that follows <h1> </h1> enclose a top-level heading (large and bold) <h2> </h2> enclose a sub-heading (slightly smaller and bold)... <h6> </h6> enclose the smallest sub-heading the HORIZONTAL-RULE element <hr> draws a dividing line in the page by default, headings and other elements are left-justified in the page can change the alignment of an element by adding a style attribute that qualifies the appearance of the element <h1 style="text-align:center"> Centered Heading </h1> <p style="text-align:right"> This paragraph is right justified. Each line will be shifted to line up at the right margin. </p> 6

Headings & Alignment (cont.) the DIV element groups multiple elements, so they can be formatted together 7

Font Formatting text can be formatted in a variety of ways bold (<b> </b>), italics (<i> </i>), underlined (<u> </u>) colored text is enclosed in <span style="color:????"> </span> common colors can be used (e.g., red, green, orange, lightblue, darkblue) 8

Hyperlinks a hyperlink, or just link, is a connection to another Web page by default, a link appears as underlined text in the page when the user clicks on the link, the corresponding page is retrieved and displayed a link is specified using ANCHOR tags <a> and </a> text that appears within the tags is displayed as the link in the page must have an HREF attribute that specifies the associated Web address <a href="http://www.creighton.edu">creighton University</a> <a href="personal.html">local Page</a> note: the browser displays links underlined and in color by default, links whose pages have not yet been visited are blue by default, links whose pages have previously been visited are purple 9

Hyperlinks (cont.) 10

Images Web pages can contain other types of media besides text and links images are embedded in a page using an IMG tag ( <img> ) IMG attributes SRC specifies the location of the image file ALT specifies alternate text that is displayed if the image fails to load 11

Lists HTML lists organize items in sequence <ul> </ul> enclose an unordered list; <ol> </ol> enclose an ordered list <li> </li> enclose a list item 12

Lists (cont.) a style attribute can be used to format the list elements 13

Tables text can be aligned into rows and columns using a TABLE element <table> and </table> encapsulate the table data <tr> and </tr> encapsulate a row within the table <td> and </td> encapsulate table data within a row (i.e., a column entry) 14

Tables with Borders borders can be added to tables using a style attribute style="border:solid" adds a border to the table or table data items 15

Tables for Alignment tables can be used to align elements in the page here, an image is aligned to the left of some text 16