Basics of Web Design Chapter 2 HTML Basics Key Concepts

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
Copyright © Terry Felke-Morris WEB DEVELOPMENT & DESIGN FOUNDATIONS WITH HTML5 Chapter 6 Key Concepts 1 Copyright © Terry Felke-Morris.
 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.
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.
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
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.
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.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
1 Web Developer Foundations: Using XHTML Chapter 2 Key Concepts.
1.  Use the anchor element to link from page to page  Configure absolute, relative, and hyperlinks  Configure relative hyperlinks to web pages.
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,
HTML | DOM. Objectives  HTML – Hypertext Markup Language  Sematic markup  Common tags/elements  Document Object Model (DOM)  Work on page | HTML.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
Web Development & Design Foundations with XHTML Chapter 2 HTML/XHTML Basics.
HTML – Organizing Page Content. HTML Images img tag Required attribute: src
WEB DESIGN AND PROGRAMMING Introduction to XHTML.
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 2- part 2 Key Concepts 1 Copyright © Terry Felke-Morris.
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.
Chapter 5 pp HTML Elements & Attributes Format Content Or Examples This Text Is A Hyperlink.
Lesson 5. XHTML Tags, Attributes and Structure XHTML Basic Structure head and body titles Paragraph headings comments Document Presentation Manipulating.
Tutorial 1 – Creating Web Pages With HTML
HTML Basics.
Web Development & Design Foundations with HTML5 8th Edition
LAB Work 01 MBA 61062: E-Commerce
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
Marking Up with XHTML Tags describe how a web page should look
Chapter 3 Using HTML to Structure a Web Page
Web Development & Design Foundations with HTML5 8th Edition
Web Development & Design Foundations with HTML5 8th Edition
HTML: HyperText Markup Language
Web Development & Design Foundations with HTML5 7th Edition
Coding, Testing and Valdating a Web Page
HTML Formatting.
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
The Web Warrior Guide to Web Design Technologies
Chapter 4 - Introduction to XHTML: Part 1
Elements and Attributes
COMPUTING FUNDAMENTALS
Web Development & Design Foundations with HTML5 7th Edition
Fundamentals of Web Programming
Web Development & Design Foundations with HTML5
HTML – Organizing Page Content
Basics of Web Design Chapter 4 Cascading Style Sheets Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D.
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Web Development & Design Foundations with H T M L 5
1 Introduction to XHTML.
Introduction to HTML- Basics
Web Development & Design Foundations with HTML5
Tutorial Working with Block-Level Elements
Creating and Editing a Web Page
Marking Up with XHTML Tags describe how a web page should look
Web Development & Design Foundations with HTML5
Marking Up with XHTML Tags describe how a web page should look
School of Business Administration Establishing a Web Presence
Digging in a little deeper
Basics of Web Design Chapter 2 HTML Basics Key Concepts
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

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

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 e-mail hyperlinks Test a web page for valid HTML syntax

The Heading Element <h1>Heading Level 1</h1> <h2>Heading Level 2</h2> <h3>Heading Level 3</h3> <h4>Heading Level 4</h4> <h5>Heading Level 5</h5> <h6>Heading Level 6</h6>

The Paragraph Element <p> tag <p> …paragraph goes here… </p> Groups sentences and sections of text together. Configures empty space above and below the paragraph

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

The Horizontal Rule Element <hr> tag void element <hr > 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 <blockquote> Indents a block of text for special emphasis <blockquote> …text goes here… </blockquote>

Phrase Elements <strong></strong> <em></em> Indicate the context and meaning of the text Display inline with the text Common Phrase Elements <b></b> Text is displayed in bold font <strong></strong> Text has strong importance and is displayed in bold <i></i> Text is displayed in italic font <em></em> Text has emphasis and is displayed in italic font

Proper Nesting CODE: BROWSER DISPLAY: <p><i>Call for a free quote for your web development needs: <strong>888.555.5555 </strong></i></p> BROWSER DISPLAY: Call for a free quote for your web development needs: 888.555.5555

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

Unordered List Displays information with bullet points Unordered List Element <ul> Contains the unordered list List Item Element <li> Contains an item in the list

Unordered List Example <h1>My Favorite Colors</h1> <ul> <li>Blue</li> <li>Teal</li> <li>Read</li> </ul>

Ordered List Conveys information in an ordered fashion Ordered List Element <ol> Contains the ordered list type attribute determines numbering scheme of list default is numerals List Item Element <li> Contains an item in the list

Ordered List Example <ol> <li>Apply to school</li> <li>Register for course</li> <li>Pay tuition</li> <li>Attend course</li> </ol>

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 <dl> tag Contains the definition list The dt Element <dt> tag Contains a term or name The dd Element <dd> tag Contains a definition or description Indents the text

Description List Example <dl> <dt>IP</dt> <dd>Internet Protocol</dd> <dt>TCP</dt> <dd>Transmission Control Protocol</dd> </dl>

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

The div element <div> Purpose: Configure a specially formatted division or area of a web page Block display with empty space above and below the div Can contain other block display and inline display elements

HTML5 Structural Elements Header Element <header></header> Contains the web page document’s headings Nav Element <nav></nav> Contains web page document’s main navigation Footer Element <footer></footer> Contains the web page document’s footer

HTML5 Structural Elements Example: <body> <header> document headings go here </header> <nav> main navigation goes here </nav> <div> main content goes here </div> <footer> document footer information goes here </footer> </body>

The Anchor Element <a> Inline display element Specifies a hyperlink reference (href) to a file Text between the <a> and </a> is displayed on the web page. <a href="contact.html">Contact Us</a> href Attribute Indicates the file name or URL Web page document, photo, pdf, etc.

More on Hyperlinks Absolute link Relative link Link to other websites <a href="http://yahoo.com">Yahoo</a> Relative link Link to pages on your own site Relative to the current page <a href="index.html">Home</a>

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. <a href="http://yahoo.com" target="_blank">Yahoo!</a>

Email Hyperlinks Automatically launch the default mail program configured for the browser If no browser default is configured, a dialog box is displayed <a href="mailto:me@hotmail.com">me@hotmail.com</a>

Writing Valid HTML Benefit: Check your code for syntax errors Valid code  more consistent browser display W3C HTML Validation Tool http://validator.w3.org Additional HTML5 Validation Tool http://html5.validator.nu

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.