Tutorial 1.3 Using Element Attributes

Slides:



Advertisements
Similar presentations
HTML. The World Wide Web Protocols Addresses HTML.
Advertisements

Tutorial 1 Getting Started with HTML5
 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 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
Tutorial 1 Developing a Basic Web Page. XP Objectives Learn the history of the Web and HTML Describe HTML standards and specifications Understand HTML.
Creating a Well-Formed Valid Document. 2 Objectives Introducing XHTML Creating a Well-Formed Document Creating a Valid Document Creating an XHTML Document.
 2004 Prentice Hall, Inc. All rights reserved. Introduction to XHTML: Part 1.
Objectives Learn the history of the Web and HTML
 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.
Developing a Basic Web Page with HTML
Basics of HTML Shashanka Rao. Learning Objectives 1. HTML Overview 2. Head, Body, Title and Meta Elements 3.Heading, Paragraph Elements and Special Characters.
Developing a Basic Web Page
HTML Overview Part 2 – Paragraphs, Headings, and Lines 1.
Unit 1 – Developing a Web Page. Objectives:  Learn the history of the Web and HTML  Describe HTML standards and specifications  Understand HTML elements.
XP Tutorial 9New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design 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.
HTML 4 Foundation Level Course HyperText Markup Language Most common language used in creating Web documents. You can use HTML to create cross-platform.
Introduction to HTML. What is a HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup tags  The.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
HTML Introduction. Lecture 7 What we will cover…  Understanding the first html code…  Tags o two-sided tags o one-sided tags  Block level elements.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
XP New Perspectives on HTML and XHTML, Comprehensive 1 Developing a Basic Web Page Week 2.
Creating and Editing a Web Page Using Inline Styles
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
XP 1 HTML Tutorial 1: Developing a Basic Web Page.
Saddleback College Welcome to CIM 271A XHTML WEB PAGE DEVELOPMENT--BEGINNING.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
Revision Webpage design HTML.   FACE  Attributes  Marquee  Define the following terms.
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
Lesson 5. XHTML Tags, Attributes and Structure XHTML Basic Structure head and body titles Paragraph headings comments Document Presentation Manipulating.
Developing a Basic Web Page
Introduction to HTML.
Web Basics: HTML/CSS/JavaScript What are they?
HTML Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
Creating a Well-Formed Valid Document
Tutorial 9 Working with XHTML
Marking Up with XHTML Tags describe how a web page should look
N100 Building a Simple Web Page
3.00cs HTML Overview 3.00cs Develop webpages.
Chapter 1: Introduction to XHTML (part 1)
HTML For the World Wide Web.
Intro to CSS CS 1150 Fall 2016.
Chapter 4 - Introduction to XHTML: Part 1
HTML Vocabulary.
Intro to CSS CS 1150 Spring 2017.
Tutorial 9 Working with XHTML
Computers and Scientific Thinking David Reed, Creighton University
3.02D HTML Overview 3.02 Develop webpages.
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
Tutorial Developing a Basic Web Page
Introduction to HTML- Basics
Tutorial 3 Working with Cascading Style Sheets
Tutorial Working with Block-Level Elements
Marking Up with XHTML Tags describe how a web page should look
Marking Up with XHTML Tags describe how a web page should look
3.02D HTML Overview 3.02 Develop webpages.
WJEC GCSE Computer Science
4.02A HTML Overview 4.02 Develop web pages using various layouts and technologies. (Note to instructor: HTML tags are in red only to differentiate from.
Marking Up with XHTML Tags describe how a web page should look
Presentation transcript:

Tutorial 1.3 Using Element Attributes

Using Element Attributes Attributes – tags that control the use, behavior, and in some cases the appearance, of elements in the document Attributes are inserted within the tag brackets <element attribute1=“value1” attribute2=“value2” …>content</element> New Perspectives on HTML and XHTML, 5e

The Style Attribute Use the style attribute to control the appearance of an element, such as text alignment The text-align style tells the browser how to horizontally align the contents of an element The color style tells the browser to render the text in a certain color New Perspectives on HTML and XHTML, 5e

The Style Attribute New Perspectives on HTML and XHTML, 5e

The Style Attribute New Perspectives on HTML and XHTML, 5e

Practice: Style Attributes Within the opening <h1> tag: <h1 style=“text-align: center; color: red”>Dave’s Devil Sticks </h1> <address style=“text-align: center”>Dave’s Devil Sticks 541 West Highland Dr. Auburn, ME 04210 (207) 555-9001 </address> New Perspectives on HTML and XHTML, Comprehensive

Presentational Attributes Early versions of HTML were used mostly by scientists and researchers, and did not require flashy graphics, various fonts, or color. This changed as the Web became more popular Presentational attributes – attributes that specifically describe how any element should be rendered Ex: alignment Almost all presentational attributes are now deprecated in favor of styles New Perspectives on HTML and XHTML, 5e

Working with Empty Elements An empty element contains no content Empty elements appear in code as one-sided tags <element /> The one-sided tag to mark a line break is <br /> The horizontal rule element places a horizontal line across the Web page <hr /> New Perspectives on HTML and XHTML, 5e

Practice: Adding product descriptions Within the product list: New Perspectives on HTML and XHTML, Comprehensive

Practice: Adding line breaks Within the product list: Insert a <br /> tag directly after the closing </b> tag for each of the product names Ex: <li><b>Basic Stick</b><br /> New Perspectives on HTML and XHTML, Comprehensive

Practice: Adding horizontal rules End of day New Perspectives on HTML and XHTML, 5e

Working with Empty Elements To display a graphic, you insert an inline image into the page. An inline image displays a graphic image located in a separate file within the page <img src="file" alt="text" /> New Perspectives on HTML and XHTML, 5e

Practice: Adding an inline image Go to Google Classroom and download the file “logo.jpg” Save/copy this file into your Internet / Web Page Design folder (must be the same folder where you have dave-yourname.htm saved) In your h1 element delete the text Dave’s Devil Sticks. Then add the following line of code: New Perspectives on HTML and XHTML, Comprehensive

Working with Empty Elements New Perspectives on HTML and XHTML, 5e

Working with Character Sets and Special Characters Character sets – collection of characters and symbols ASCII (American Standard Code for Information Interchange) – character set representing the alphabet of English characters Latin-1/ISO 8859-1 – more extended character set supports 255 characters and can be used by most languages that employ Latin alphabet Unicode – most extended character set (65,536 symbols) UTF-8 – most commonly used character set on Web New Perspectives on HTML and XHTML, 5e

Working with Character Sets and Special Characters To store a character set, browsers need to associate each symbol with a number in a process called character encoding – process by which a browser associates a symbol with a number and visa-versa Another way to insert a special symbol is to use a character entity reference, in which a short memorable name is used in place of the numeric character reference New Perspectives on HTML and XHTML, 5e

Working with Character Sets and Special Characters New Perspectives on HTML and XHTML, 5e

Working with Character Sets and Special Characters New Perspectives on HTML and XHTML, 5e

Practice: Adding character references End of day New Perspectives on HTML and XHTML, 5e