Marking Up With Html: A Hypertext Markup Language Primer

Slides:



Advertisements
Similar presentations
Computers: Tools for an Information Age Writing Your Own Web Page: Using HTML and Web Authoring Tools.
Advertisements

Session 2 Introduction to HyperText Markup Language 4 (HTML 4) Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
HTML popo.
Learning HTML. > Title of page This is my first homepage. Tells Browser This is an HTML page Basic Tags Tells Browser End of HTML page Header information.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
ASHIMA KALRA.  WHAT IS HTML WHAT IS HTML  HTML TAGS HTML TAGS  FORMATTING TAGS FORMATTING TAGS.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
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.
1 HTML Markup language – coded text is converted into formatted text by a web browser. Big chart on pg. 16—39. Tags usually come in pairs like – data Some.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 4 - Introduction to XHTML: Part 1 Outline 4.1 Introduction 4.2 Editing XHTML 4.3 First XHTML Example.
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
Chapter 2 Introduction to HTML5 Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
HTML: PART ONE. Creating an HTML Document  It is a good idea to plan out a web page before you start coding  Draw a planning sketch or create a sample.
© 2005 ComputerPREP, Inc. All rights reserved. HTML 4.0 and Web Page Design Module I.
Chapter 3 Adding Images in HTML. Agenda Understanding Web Page Images Prepare Your Images for the Web Insert an Image Specify an Image Size Add Alternative.
Chapter 6 Marking Up With (X)HTML: A Hypertext Markup Language Primer
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.
HTML HTML stands for "Hyper Text Mark-up Language“. Technically, HTML is not a programming language, but rather a markup language. Used to create web pages.
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.
ITCS373: Internet Technology HTML
HTML H yper T ext M arkup L anguage. HTML HTML is NOT case sensitive However, proper coding etiquette if for all to be in ALL CAPS and for text to be.
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.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module F Building a Web Page with HTML.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
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.
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.
Html Basic Codes Week Two. Start Your Text Editor Windows use 'Notepad’ Macintosh use 'Simple Text'
HTML 4 Foundation Level Course HyperText Markup Language Most common language used in creating Web documents. You can use HTML to create cross-platform.
Department of Information Technology Chapter 8 - Creating Hypertext links Lecturer: Ms Melinda Chung.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Copyright 2006 South-Western/Thomson Learning Chapter 17 Creating and Linking Web Pages.
Explorers Guild April 27, What is HTML? Hypertext Markup Language (HTML) is the basic building block of the World Wide Web page. HTML files are.
Just Enough HTML How to Create Basic HTML Documents.
INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley A Hypertext Markup Language Primer Marking Up with HTML lawrence snyder c.
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley What did we learn so far? 1.Computer hardware and software 2.Computer block.
Chapter 2 Designing Web Pages With HTML JavaMethods An Introduction to Object-Oriented Programming Maria Litvin Gary Litvin Copyright © 2003 by Maria Litvin,
HTML. Adding Background Color The bgcolor attribute lets you change the background color of the Web page. Located in the body tag See common Web Page.
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.
HTML Chapter 4 Source: CSE 190 M (Web Programming) lecture notes, es/slides/lecture02-basic_xhtml.html.
HyperText Markup Language. Web Hosting Creating a web site (on a site like iPage) –Buy domain name ( –iPage has registrar (e.g., FastDomain.
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley What did we learn so far? 1.Computer hardware and software 2.Computer experience.
Basic HTML Programming Technology Education Ellsworth Community Middle School Communication Systems.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
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.
1 Week 3 XTML, Expression Web, WinSCP, & Mini-Project (MP1) Advanced Web Development IT225 Spring Term 2016 Marymount University School of Business Administration.
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Marking Up with XHTML Tags describe how a web page should look
Aside on Conversions  . Aside on Conversions  
Chapter 1: Introduction to XHTML (part 1)
Introduction to XHTML.
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Chapter 4: Marking Up With HTML: A Hypertext Markup Language Primer
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

Marking Up With Html: A Hypertext Markup Language Primer Chapter 4_1 Marking Up With Html: A Hypertext Markup Language Primer

Marking Up with Html Tags describe how a web page should look Formatting with Tags: Words or abbreviations enclosed in angle brackets < > Come in pairs (beginning and end): <title> </title> Tags are not case-sensitive, but the actual text between the tags is Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

Tags for Bold and Italic Bold: <b> </b> Italic: <i> </i> Tag pair surrounds the text to be formatted You can apply more than one kind of formatting at a time <b><i>Veni, Vidi, Vici!</i></b> produces: Veni, Vidi, Vici! Tags can be in any order, but have to be nested correctly Some tags do not surround anything, so they don't have an ending form: <hr> inserts horizontal line <br> inserts a line break Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

An HTML Web Page File Begins with <html> and ends with </html> <html> <head> preliminary material goes here, including the <title> </head> <body> main content of the page goes here </body> </html> Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

Structuring Documents Markup language describes how a document's parts fit together Headings: Choice of eight levels of heading tags to produce headings, subheadings, etc. Headings display material in large font on a new line <h1>Pope</h1><h2>Cardinal</h2><h3>Archbishop</h3> produces: Pope Cardinal Archbishop Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

HTML Format vs. Display Format HTML text was run together on one line, but displayed formatted on separate lines HTML source tells the browser how to produce the formatted image based on the meaning of the tags, not on how the source instructions look But HTML is usually written in a structured form to make it easier for people to understand Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

White Space Space that has been inserted for readability Tabs New lines Browser turns any sequence of white space characters into a single space before processing HTML Exception: Preformatted information between <pre> and </pre> tags is displayed as it appears Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

Brackets in HTML: The Escape Symbol What if our web page needed to show a math relationship like 0 < p > r The browser would interpret < p > as a paragraph tag, and would not display it To show angle brackets, use escape symbol — ampersand (&) — then an abbreviation, then a semicolon (;) < displays as < Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

Accent Marks in HTML Letters with accent marks use the escape symbol Ampersand, then letter, then the name of the accent mark, then semicolon &eactue; displays as é ñ displays as ñ Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

Attributes in HTML Properties such as text alignment require more information For justification, we need to specify left, right, or center Attributes appear inside the angle brackets, after tag word and equal sign, in double quotes <p align = "center"> (default justification is left) Horizontal rule attribute: width and size (thickness) can be specified or left to default Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

Marking Links With Anchor Tags There are two sides of a hyperlink: Anchor text (the text in the current document that is highlighted) Hyperlink reference (the address of the other Web page) Begin with <a followed by a space Give the link reference using href="filename" Close tag with </a> Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

Anchor Tags (cont'd) Absolute pathnames: Reference pages at other web sites using complete URLs Relative pathnames: Reference pages stored in the same directory (give only the name of the file) Relative pathnames are more flexible — we can move web files around as a group Relative pathnames can also specify a path deeper or higher in the directory structure Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

Including Pictures With Image Tags Pictures can be used as links using anchor tag Image Tag Format: <img src="filename"> src stands for source Absolute and relative pathname rules apply GIF and JPEG Images GIF: Graphic Interchange Format JPEG: Joint Photographic Experts Group Tell browser which format image is in using filename extension (.gif, .jpg) Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

Positioning the Image in the Document By default, images are inserted in the page at the point where the tag is specified in the HTML, and the text lines up with the bottom of the image Align attribute can line up image with top of line of text or bottom Align left or right attribute puts the image on the side of the browser window — text flows around it To put image on separate line, enclose within paragraph tags Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

Handling Color Color is used for both background and text bgcolor attribute of body tag gives solid background color Use hexadecimal color numbers or Use predefined color terms color attribute can be used with body text, link, or font tags Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.

Copyright © 2006 Pearson Addison-Wesley. All rights reserved.