BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS

Similar documents
Web Development & Design Foundations with XHTML. Chapter 2 Key Concepts

Course Overview. Week 1

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

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

Web Development and Design Foundations with HTML5 8th Edition

INTRODUCTION TO HTML5! HTML5 Page Structure!

CSC Web Programming. Introduction to HTML

Bok, Jong Soon

Web Programming Week 2 Semester Byron Fisher 2018

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

c122jan2714.notebook January 27, 2014

HTML+ CSS PRINCIPLES. Getting started with web design the right way

11. HTML5 and Future Web Application

HTML Hyper Text Markup Language

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.

COMP519 Web Programming Lecture 3: HTML (HTLM5 Elements: Part 1) Handouts

CSC Web Technologies, Spring HTML Review

Certified HTML5 Developer VS-1029

More about HTML. Digging in a little deeper

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

Announcements. Paper due this Wednesday

Programmazione Web a.a. 2017/2018 HTML5

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

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

c122sep814.notebook September 08, 2014 All assignments should be sent to Backup please send a cc to this address

Html basics Course Outline

The University of Hawaii at Manoa Library Webpage Content/Design/Style Guidelines General Site Design... 2

Chapter 7 Typography, Style Sheets, and Color. Mrs. Johnson

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

Web Design and Application Development

Review of HTML. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar

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

Certified HTML Designer VS-1027

Desire2Learn: HTML Basics

Computer Applications Final Exam Study Guide

1/6/ :28 AM Approved New Course (First Version) CS 50A Course Outline as of Fall 2014

Web Publishing Basics I

Management Information Systems

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

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

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

A Brief Introduction to HTML

CSC 121 Computers and Scientific Thinking

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

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

HTML CS 4640 Programming Languages for Web Applications

HTML Syllabus Instructor: TBD

Chapter 4. Introduction to XHTML: Part 1

A Balanced Introduction to Computer Science, 3/E

Part 1: HTML Language HyperText Make-up Language

By Ryan Stevenson. Guidebook #2 HTML

Tutorial. Activities. Code o o. Editor: Notepad Focus : Text manipulation & webpage skeleton. Open Notepad

WEBSITE PROJECT 2 PURPOSE: INSTRUCTIONS: REQUIREMENTS:

Symbols INDEX. !important rule, rule, , 146, , rule,

Module 2 (VII): CSS [Part 4]

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

HTML TUTORIAL ONE. Understanding What XHTML is Not

HTML BEGINNING TAGS. HTML Structure <html> <head> <title> </title> </head> <body> Web page content </body> </html>

UNIT II Dynamic HTML and web designing

Creating Web Pages. Getting Started

CMPT 165 Unit 2 Markup Part 2

How the Internet Works

Developing a Basic Web Page

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

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

This will be a paragraph about me. It might include my hobbies, where I grew up, etc.

INTRODUCTION TO WEB USING HTML What is HTML?

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

MPT Web Design. Week 1: Introduction to HTML and Web Design

I-5 Internet Applications

MMGD0204 Web Application Technologies. Chapter 3 HTML - TEXT FORMATTING

Web Programming and Design. MPT Senior Cycle Tutor: Tamara Week 1

(Refer Slide Time: 01:41) (Refer Slide Time: 01:42)

Web Design and Development ACS Chapter 11. Creating Lists 11/16/2017 1

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

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

On a blog, code can mean many things. It can refer to the complicated

CSS is applied to an existing HTML web document--both working in tandem to display web pages.

GIMP WEB 2.0 MENUS. Web 2.0 Menus: Horizontal Navigation Bar. Hover Effect:

Introduction to HTML

First Name Last Name CS-081 March 23, 2010 Midterm Exam

Intro To HTML & Formatting, Part 2

HTML and CSS: An Introduction

Fundamentals of Web Technologies. Agenda: HTML Links 5/22/2017. HTML Links - Hyperlinks HTML Lists

Chapter 2 Creating and Editing a Web Page

Week 1 - Overview of HTML and Introduction to JavaScript

It is possible to create webpages without knowing anything about the HTML source behind the page.

The three common HTML terms you should begin with are elements, tags, and attributes.

4 HTML Basics YOU WILL LEARN TO WHY IT MATTERS... CHAPTER

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

Website Development with HTML5, CSS and Bootstrap

HTML and CSS COURSE SYLLABUS

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

Introduction to Web Technologies

Hyper Text Markup Language HTML: A Tutorial

HIERARCHICAL ORGANIZATION

Deccansoft Software Services

COPYRIGHTED MATERIAL. Contents. Chapter 1: Creating Structured Documents 1

HTML and CSS a further introduction

Transcription:

BASICS OF WEB DESIGN CHAPTER 2 HTML BASICS KEY CONCEPTS 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 e-mail hyperlinks Test a web page for valid HTML syntax

SUGGESTIONS TRY everything in the book. Start with a copy of the basic hello world file you created last week. Make a few changes in your editor and then view it in the browser. Save then REFRESH to see changes. Don t worry about how it looks - we will learn to style using CSS in a few weeks. 3

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 Paragraph element <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 Line Break element Stand-alone tag (no closing 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

THE HORIZONTAL RULE ELEMENT <HR> TAG Horizontal Rule element 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

THE BLOCKQUOTE ELEMENT <BLOCKQUOTE> Blockquote element Indents a block of text for special emphasis <blockquote> text goes here </blockquote>

PHRASE ELEMENTS Indicate the context and meaning of the text Display inline with the text Common Phrase Elements (more in book) <strong></strong> Text has strong importance and is displayed in bold <em></em> Text has emphasis and is displayed in italic font

PROPER NESTING Inline elements are nested WITHIN block elements. CODE: <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 10

HTML LIST BASICS Unordered List (bullets) Description List (XHTML Definition List, term & definition) Ordered List (numbers)

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>

ORDERED LIST ATTRIBUTES (P 38) Use the type attribute to change the default numbers to letters or roman numerals. Use the start attribute to start at a different number than 1 Use the reversed attribute for descending order 16

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 < < > > & &

Check your code for syntax errors Benefit: Valid code more consistent browser display WRITING VALID HTML W3C HTML Validation Tool - http://validator.w3.org Additional HTML5 Validation Tool - http://html5.validator.nu Browser extensions can also validate - I have used HTML Validator - http://users.skynet.be/mgueury/mozilla/new_upgrade4.html (view source code to see errors) Firebug - http://getfirebug.com/ - with Validator extension shows errors in Firebug console Web Developer Toolbar - http://chrispederick.com/work/web-developer/ Click Tools to validate html and css

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 21

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 main element <main> </main> Contains the main content of the web page footer Element <footer></footer> Contains the web page document s footer 22

HTML5 STRUCTURAL ELEMENTS Example: <body> <header> document headings go here </header> <nav> main navigation goes here </nav> <main> main content goes here </main> <footer> footer information goes here </footer> </body> 23

24

THE ANCHOR ELEMENT <A> The anchor element 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. 25

MORE ON HYPERLINKS Absolute 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> 26

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> DON T use for internal/relative links 27

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> 28

LINK USABILITY & ACCESSIBILITY Screen reader software for blind people can read just the links on a page. This is only useful if your hyperlink text is descriptive on it s own (Syllabus NOT click here) Email links might not work (depending on user s settings) so display the email address (john@gmail.com - NOT John or John s email) 29

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.