Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.

Slides:



Advertisements
Similar presentations
Web Development & Design Foundations with HTML5
Advertisements

Web Development & Design Foundations with XHTML
HTML: HyperText Markup Language Hello World Welcome to the world!
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
Chapter 2 HTML Basics Key Concepts
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
CS134 Web Design & Development Attributes, Lists, Tables, Links, and Images Mehmud Abliz.
XHTML II DIGITAL MEDIA: COMMUNICATION AND DESIGN F2007.
Web Page Development Identify elements of a Web Page Start Notepad
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
Purpose Tags are the key to marking up content on your HTML page. It’s the tags that mark up sections of the page and are defined (aesthetically) on the.
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.
HTML. Goals How to use the Komodo editor HTML coding and testing – List and Images – Tables and Links – At least 2 pages and navigation –
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
Chapter 3 Working with Text and Cascading Style Sheets.
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.
HTML history, Tags, Element. HTML: HyperText Markup Language Hello World Welcome to the world!
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
1 HTML intro The development of HTMLThe development of HTML The transition from HTML to XHTMLThe transition from HTML to XHTML XHTML syntax, tags, and.
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.
1.  Describe the anatomy of a web page  Format the body of a web page with block-level elements including headings, paragraphs, lists, and blockquotes.
1 Web Developer Foundations: Using XHTML Chapter 2 Key Concepts.
1 Introduction to HTML Joshua S. Simon Collective Technologies.
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.
Copyright © 2013 MyGraphicsLab / Pearson Education STRUCTURE AND HTML TAGS MyGraphicsLab: Adobe Dreamweaver CS6 ACA Certification Preparation for Web Communication.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
CPT 123 Internet Skills Class Notes Publishing to the Web Session B.
A Basic Web Page. Chapter 2 Objectives HTML tags and elements Create a simple Web Page XHTML Line breaks and Paragraph divisions Basic HTML elements.
1.  Use the anchor element to link from page to page  Configure absolute, relative, and hyperlinks  Configure relative hyperlinks to web pages.
1 Web Developer Foundations: Using XHTML Chapter 3 XHTML Hyperlinks and Tables.
1 Web Developer & Design Foundations with XHTML Chapter 3 Key Concepts.
HTML,DHTML & Javascript/Session1/1 of 39 Introduction and Basic Tags Session 1 of Using HTML, DHTML & JavaScript.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
HTML: Hyptertext Markup Language Doman’s Sections.
Copyright © Osmosys O S M O S Y SO S M O S Y S D e p l o y i n g E x p e r i e n c e & E x p e r t i s e™ HTML Training.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Creating XHTML Documents Essentials for.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
HTML – Organizing Page Content. HTML Images img tag Required attribute: src
Suzanne Sultan1 Line Breaks, Paragraphs, lists Lab3.
HTML – Organizing Page Content. HTML Images img tag Required attribute: src
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 7 Key Concepts 1 Copyright © Terry Felke-Morris.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
HTML Concepts and Techniques Fifth Edition Chapter 3 Creating Web Pages with Links, Images, and Formatted Text.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 2- part 2 Key Concepts 1 Copyright © Terry Felke-Morris.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
INT222 – Internet Fundamentals
Basics of Web Design 1 Copyright © 2016 Pearson Education, Inc., Hoboken NJ.
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 7 TH EDITION Chapter 2 Key Concepts 1 Copyright © Terry Felke-Morris.
Tutorial #1 Using HTML to Create Web Pages. HTML, XHTML, and CSS HTML – HyperText Markup Language The tags the browser uses to define the content of the.
Chapter 5 pp HTML Elements & Attributes Format Content Or Examples This Text Is A Hyperlink.
Chapter 4 and 5. Objectives Introduce markup: elements and attributes How browsers interpret HTML documents Basic structure of HTML document What do style.
Lesson 5. XHTML Tags, Attributes and Structure XHTML Basic Structure head and body titles Paragraph headings comments Document Presentation Manipulating.
Web Development & Design Foundations with HTML5 8th Edition
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5 7th Edition
Coding, Testing and Valdating a Web Page
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
Basics of Web Design Chapter 2 HTML Basics Key Concepts
Basics of Web Design Chapter 2 HTML Basics Key Concepts
Presentation transcript:

Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1

Learning Outcomes  Describe the anatomy of a web page  Format the body of a web page with block-level elements including headings, paragraphs, lists, and blockquotes  Configure the text on a web page with inline elements  Configure text with phrase elements  Configure special entity characters, line breaks, and horizontal rules  Configure a web page using new HTML5 header, nav, and footer elements  Use the anchor element to link from page to page  Configure absolute, relative, and hyperlinks  Test a web page for valid HTML syntax

Page 19 corrected, Hands-On Practice 1.1: index.html My First HTML5 Web Page Hello World 3

Head & Body Sections  Head Section Contains information that describes the web page document …head section info goes here  Body Section Contains text and elements that display in the web page document …body section info goes here

HTML and tags  title and meta tags are coded between the opening and closing head tags My First HTML5 Web Page Hello World

Body element  Everything you see in the browser window has to be in between the body opening and closing tags  So, for this page all you will see is Hello World My First HTML5 Web Page Hello World

Semantic Tagging  HTML tags are used to tag content according to the purpose of the content  HTML tags are not used to tag content so that it looks a certain way  Web Designers call this Semantic Tagging  CSS will be used for all presentation  how the content looks or is formatted 7

display Property  All HTML elements are either Inline or Block display elements  Inline and Block define how an element is displayed in relation to other adjacent content Display = inline ○ An inline element only takes up as much width as necessary, and does not force line breaks; displayed next to adjacent content. Display = block ○ A block element is an element that takes up the full width available, and has a line break before and after it; displayed on separate line from adjacent content. 8

Nesting elements  Is is common practice to code elements nested inside each other as long as the interior nested elements are inline elements Example: this is bold text  Never include block elements inside other block elements unless you are building a list, then the list item tags are always inside the list tags OR the outer element is a div tag 9

The Heading Element (block) Heading Level 1 Heading Level 2 Heading Level 3 Heading Level 4 Heading Level 5 Heading Level 6

The Paragraph Element (block) tag  Paragraph element …paragraph goes here… Groups sentences and sections of text together. Configures empty space above and below the paragraph

The Line Break Element (block) tag  Line Break element Stand-alone tag Called a void element in HTML5 …text goes here This starts on a new line…. Causes the next element or text to display on a new line Read Reviews

The Horizontal Rule Element (block) tag  Horizontal Rule element void element Configures a horizontal line on the page In HTML5, it should be used to indicate a thematic break at the paragraph level Read Reviews

The Blockquote Element (block)  Blockquote element Indents a block of text for special emphasis Semantically appropriate for long quotations …text goes here…

Phrase Elements (inline)  Indicate the context and meaning of the text  Display inline with the text  Common Phrase Elements Text is displayed in bold font Text has strong importance and is displayed in bold Text is displayed in italic font Text has emphasis and is displayed in italic font

Proper Nesting CODE: Call for a free quote for your web development needs: BROWSER DISPLAY: Call for a free quote for your web development needs: An inline element is not allowed to have a block element nested inside of it! 16

HTML List Basics  Unordered List  Description List (XHTML Definition List)  Ordered List

Unordered List (block)  Displays information with bullet points  Unordered List Element (block) Contains the unordered list  List Item Element (block) Contains an item in the list

Unordered List Example My Favorite Colors Blue Teal Read

Ordered List  Conveys information in an ordered fashion  Ordered List Element (block) Contains the ordered list type attribute determines numbering scheme of list default is numerals  List Item Element (block) Contains an item in the list

Ordered List Example Apply to school Register for course Pay tuition Attend course

Description List  Formerly called a definition list in XHTML and HTML 4.0  Uses: Display a list of terms and descriptions Display a list of FAQ and answers  The Description List element (block) tag Contains the definition list  The dt Element (block) tag Contains a term or name  The dd Element (block) tag Contains a definition or description Indents the text

Description List Example IP Internet Protocol TCP Transmission Control Protocol

Special Entity Characters (inline) Display special characters such as quotes, copyright symbol, etc. Character Code © © < < > > & &

The div element (block)  Purpose: Configure a specially formatted division or area of a web page Use for page organization, for example to indicate left, center, or right columns  Block display with line break (empty space) above and below the div  div element is unique because it can contain other block display nested inside it 25

HTML5 Structural Elements  Header Element (block) Contains the web page document’s headings  Nav Element (block) Contains web page document’s main navigation  Footer Element (block) Contains the web page document’s footer 26

HTML5 Structural Elements Example file, chapter 2\structure.html: document headings go here main navigation goes here main content goes here document footer information goes here 27

The Anchor Element (inline) The anchor element Inline display element Specifies a hyperlink reference (href) to a file Text between the and is displayed on the web page. Contact Us href Attribute  Indicates the file name or URL Web page document, photo, pdf, etc. 28

More on Hyperlinks  Absolute link Link to other websites Yahoo  Relative link Link to pages on your own site Relative to the current page Home 29

Opening a Link in a New Browser Window  The target attribute on the anchor element opens a link in a new browser window or new browser tab. Yahoo! 30

Hyperlinks  Automatically launch the default mail program configured for the browser  If no browser default is configured, a dialog box is displayed 31

Writing Valid HTML  Check your code for syntax errors Benefit: ○ Valid code  more consistent browser display  W3C HTML Validation Tool  Additional HTML5 Validation Tool

Summary  This chapter provided an introduction to HTML.  HTML elements used for inline and block display formatting were introduced.  You will use these skills over and over again as you create web pages.