HTML Intro Basics

21
Chapter 7 Web Design © 2012 Elsevier, Inc. All rights reserved.

Transcript of HTML Intro Basics

Page 1: HTML Intro Basics

Chapter 7Web Design

© 2012 Elsevier, Inc. All rights reserved.

Page 2: HTML Intro Basics

HTML Hypertext Markup Language

Using HTML, text is formatted by wrapping it in a tag.The tags provide instructions to the browser (Safari, IE,

Firefox, Chrome, etc.) for how to render the text on screen.<h2>Text wrapped in an heading level 2 tag looks like this</h2>

START TAG END TAG

Page 3: HTML Intro Basics

Tags – How Tagging Works?

Page 4: HTML Intro Basics

Three Parts of an HTML Document

An HTML document is divided into three sections:

1)Declarations

2)Head

3)Body

1

2

3

{

{{

Page 5: HTML Intro Basics

Nesting HTML tags

Page 6: HTML Intro Basics

Anatomy of a basic tag

Page 7: HTML Intro Basics

Anatomy of a complex tag

Page 8: HTML Intro Basics

Spaces and line breaks in HTML

Page 9: HTML Intro Basics

Special Characters

Page 10: HTML Intro Basics

Anatomy of a URL (uniform resource locator)

Page 11: HTML Intro Basics

Hierarchical Site Map

Page 12: HTML Intro Basics

Box Layout

Page 13: HTML Intro Basics

Coding the Box Layout

Page 14: HTML Intro Basics

Three types of lists in HTMLAn Ordered List1.George Washington

2.John Adams

3.Thomas Jefferson

4.James Madison

5.James Monroe

An Unordered List

•Sugar•Salt•Milk•Bread•Cheese

A Definition List

AlgorithmA mathematical sequence or set of instructions for solving a problem.

AnalogA recording method that represents the physical properties of images or sound as a continuous signal.

AnimationThe illusion of visual motion created by the rapid projection of still images in two- or three-dimensional space.

Page 15: HTML Intro Basics

Three types of lists – the code

Page 16: HTML Intro Basics

Linking to content on a page and to files

Page 17: HTML Intro Basics

Sample File Structure

Page 18: HTML Intro Basics

Navigating Directory Paths in HTML

Page 19: HTML Intro Basics

Linking images and using alternative text

Page 20: HTML Intro Basics

Table Structure

Page 21: HTML Intro Basics

Controlling link pseudo-classes in CSS