Chapter 4: Hypertext Markup Language Primer TECH1010-02 Prof. Jeff Cheng.

Slides:



Advertisements
Similar presentations
Session 2 Introduction to HyperText Markup Language 4 (HTML 4) Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
Advertisements

HTML popo.
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
HTML/XML XHTML Authoring. Creating Tables  Table: An arrangement of horizontal rows and vertical columns. The intersection of a row and a column is called.
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.
Chapter 4_2 Marking Up With Html: A Hypertext Markup Language Primer.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
Marking Up With Html: A Hypertext Markup Language Primer
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.
Tags through Forms. This element is required for all HTML pages It must be at the top of every page of every website We’ll see later on why it is important.
HTML Introduction DSC340 Mike Pangburn. What is HTML?  HTML: Hyper Text Markup Language  The predominant markup language for web-page design.  A markup.
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.
Web Design HTML, Frontpage, DreamWeaver μέρος β ΠΡΥ019 - Πληροφορική Δρ.Βάσος Βασιλείου.
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
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Introduction to Computers CS Dr. Zhizhang Shen Chapter 4: Talking.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
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.
HTML 4 Foundation Level Course HyperText Markup Language Most common language used in creating Web documents. You can use HTML to create cross-platform.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
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.
CPT 123 Internet Skills Class Notes Publishing to the Web Session B.
Just Enough HTML How to Create Basic HTML Documents.
Unit 2, cont. September 12 More HTML. Attributes Some tags are modifiable with attributes This changes the way a tag behaves Modifying a tag requires.
HTML: Hyptertext Markup Language Doman’s Sections.
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.
HTML Basics. HTML Introduction Stands for HyperText Markup Language. HTML files are plain text files with mark ups. Some characteristics of HTML: –No.
HTML for ISD Brown Bag Presentation Session 2 What we will cover:  Basics of HTML  How to make your first page  Links  Text formatting.
HTML (Hypertext Markup Language) Recap: HTML essential tags:,,, Text Formatting:,,,,,,. Font manipulation:
Suzanne Sultan1 Line Breaks, Paragraphs, lists Lab3.
Chapter 2 Designing Web Pages With HTML JavaMethods An Introduction to Object-Oriented Programming Maria Litvin Gary Litvin Copyright © 2003 by Maria Litvin,
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.
CSE 409 – Advanced Internet Technology 1 DISCUSSION OF BASIC HTML TAGS.
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.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
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.
`. Lecture Overview HTML Body Elements Linking techniques HyperText references Linking images Linking to locations on a page Linking to a fragment on.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
1 HTML. 2 Full forms WWW – world Wide Web HTTP – Hyper Text Transfer Protocol HTML – Hyper Text Markup Language.
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.
Create Your Own Web Page: An Introduction to HTML Instructor: Corey Johnson Assisted by: tba.
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  
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 HTML.
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:

Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng

3-2 Describing a Web Page with HTML Web pages are stored as a description of how they should appear on the screen Web browser created the image from the description file written using HTML

4-3 Marking Up with HTML Tags Tags describe how a web page should look Formatting with Tags: – Words or abbreviations enclosed in angle brackets – Come in pairs (beginning and end): – Tags are not case-sensitive, but the actual text between the tags is

4-4

4-5 An HTML Web Page File Begins with and ends with Preliminary material goes here, including … Main content of the page goes here

4-6 Tags for Bold, Italic, and underline Bold: Italic: Underline: – Tag pair surrounds the text to be formatted You can apply more than one kind of formatting at a time Veni, Vidi, Vici! 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. Closing angle bracket is replaced by /> – inserts a horizontal rule (line) – inserts a line break

4-7

4-8

4-9 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 (indented) form to make it easier for people to understand Pope Cardinal Archbishop

4-10 White Space White space that has been inserted for readability – Spaces – Tabs – New lines Browser turns any sequence of white space characters into a single space before processing HTML – Exception: Preformatted information between and tags is displayed as it appears

4-11 Brackets in HTML: The Escape Symbol What if our web page needed to show a math relationship like 0 r The browser would interpret 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 < > displays as > & displays as &

4-12 Special Characters << >> && (non-breaking space) &mdash– (em dash) Full list at

4-13 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 of start tag, after tag word, with equal sign, value in double quotes. Do not use “fancy/smart quotes!!!” (default justification is left) Horizontal rule attributes: width and size (thickness) can be specified or left to default

4-14 Marking Links With Anchor Tags There are two sides of a hyperlink: 1.Anchor text (the text in the current document that is highlighted) 2.Hyperlink reference (the address of a Web page / target of the link) Begin with <a followed by a space Give the link reference using href="filename" Close the start anchor tag with > Text to be displayed for this link End anchor tag with Anchor Text Seen

4-15 Anchor Tags (cont'd) Absolute pathnames: Reference pages at other web sites using complete URLs FIT

4-16 Anchor Tags (cont'd) Relative pathnames: Reference pages stored to the same directory (give only the name of the file) Read this 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./directory/filename../directory/filename.Current directory..Parent directory (one level up)

4-17

4-18 Including Pictures With Image Tags Image Tag Format: – src short for source – Absolute and relative pathname rules apply Pictures can be used as links using anchor tag

4-19 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, middle, or bottom Align left, center, 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 Can specify how large the image should be displayed (in pixels) with height and width attributes

4-20 Handling Color Color is used for both background and text bgcolor attribute of body tag gives solid background color – Use hexadecimal color numbers (0-9 A-F) (magenta) – Or use predefined color terms color attribute can be used with body text, link, or font tags text

4-21

4-22

4-23

4-24

4-25 Handling Lists Unnumbered (bulleted) list: – and tags begin and end the list – and tags begin and end the items within the list Ordered (numbered) list: – and tags begin and end the list – Uses the same tags Sublists: Insert lists within lists (between tags) Definitional list: – and tags begin and end the list – and surround the terms to be defined – and surround the definitions (indented)

4-26 Handling Tables Tables begin and end with and tags Rows are enclosed in table row tags, and Cells of each row are surrounded by table data tags, and Create a caption centered at the top of the table with and tags Column headings are created as first row of table by using and tags instead of table data tags See examples in textbook