LESSON 2 Module 2: XHTML Basics More Basic XHTML.

Slides:



Advertisements
Similar presentations
Introduction to HTML. A Web Page is.. An ASCII (text) file.. Whose filename ends with.htm or.html –index.html or cookie-recipe.htm Contains HTML tags.
Advertisements

Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
Cascading Style Sheets
Internet Applications Development Lecture 3 L. Obead Alhadreti.
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
กระบวนวิชา CSS. What is CSS? CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to.
HTML Tags. Bolding Text Or Italics Text Or
Introduction to Cascading Style Sheets (CSS) Module 2: HTML Basics LESSON 4.
HTML Computing Concepts HTML - An Introduction 1.
RGB color model Skills: none IT concepts: combining red, green and blue light to generate colors This work is licensed under a Creative Commons Attribution-Noncommercial-
Creating a Web Page HyperText Markup Language. HTML Documents  Created using any text editor  Notepad  Vi, Pico, or Emacs  If using word-processor,
4.01 Cascading Style Sheets
Using color and fonts in HTML and XHTML Please use speaker notes for additional information!
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.
Contains 16,777,216 Colors. My Car is red My Car is red How do I add colors to my web page? Notepad Browser Works with the “Standard” colors: Red, Green,
Explanation of Web 6, Web 7 and Web 9 at my site Please be sure to bring up the speaker notes for the explanation Intro - Web 6, Web 7 and Web 9.
Basic XHTML Module 2: XHTML Basics LESSON 1. Module 2: XHTML Basics LESSON 1 Lesson Overview In this lesson, you will learn to:  Write XHTML code using.
HTML Overview Part 2 – Paragraphs, Headings, and Lines 1.
Images, Hyperlinks, and Sound Module 2: XHTML Basics LESSON 3.
Web Pages: Creating & Maintaining Body Tags. There have been several versions of HTML since its inception. VersionYear HTML1991 HTML HTML
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module F Building a Web Page with HTML.
More Basic HTML. Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features Add alignments.
Unit 1 — HTML BASICS Lesson 2 — HTML Organization Techniques.
More Basic XHTML Module 2: XHTML Basics LESSON 2.
Introduction To CSS.. HTML Review What is HTML used for? Give some examples of formatting tags in HTML? HTML is the most widely used language on the Web.
Department of Information Technology Chapter 8 - Creating Hypertext links Lecturer: Ms Melinda Chung.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
15.2 More Basic HTML. More Basic HTML Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features.
Tables Module 2: HTML Basics LESSON Extension. Module 2: HTML Basics LESSON Extension Lesson Overview In this lesson, you will learn to:  Create tables.
Georgia Institute of Technology Making Text for the Web Barb Ericson Georgia Institute of Technology March 2006.
Unit 4 Create and Use Tables. TITLE CORNELL NOTES TOPIC: NOTES: Name: Date: 09/08/2009 Period : Summary: Reasons for using tables Unit 4 Page 1 Display.
HTML. Adding Background Color The bgcolor attribute lets you change the background color of the Web page. Located in the body tag See common Web Page.
The Teacher Computing HTML HyperText Markup Language.
XHTML Formatting font with a style declaration. Formatting Font HTML uses the font tag to change size and family of font But… the font tag is being deprecated.
HTML CS 105. Page Structure HTML elements control the details of how a page gets displayed. Every HTML document has the following basic structure: … …
Basic HTML Programming Technology Education Ellsworth Community Middle School Communication Systems.
Project 02 Creating and Editing a Web Page Concept Map of Unit Creating and Editing a Web Page Key Learning Understand the elements to create a web page.
Revision Webpage design HTML.   FACE  Attributes  Marquee  Define the following terms.
1 Introduction to HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
HTML  HyperText Markup Language  The Language used to design web pages  Code mixed with text  Tags enclosed in angle brackets  Single tags  Paired.
Introduction To CSS. Lesson 1: History of CSS CSS was proposed in 1994 as a web styling language. To helps solve some of the problems HTML 4. There were.
Extended Learning Module F
Images, Hyperlinks, and Sound
LESSON 2 Module 2: XHTML Basics More Basic XHTML.
4.01 Cascading Style Sheets
Web Development & Design Foundations with HTML5 8th Edition
Elements of HTML Web Design – Sec 3-2
Web Development & Design Foundations with HTML5
Tag Basics.
HTML Extras.
Font tag and its attributes
15.2 More Basic HTML & CSS.
LESSON Extension Module 2: HTML Basics Tables.
Introduction to Cascading Style Sheets (CSS)
Working with Cascading Style Sheets (CSS)
Working with Cascading Style Sheets (CSS)
Basics of XHTML What Lies Beneath.
Images, Hyperlinks, and Sound
Web pages Lesson 3.
More Basic HTML 2 assignments: 1—complete the worksheet
LESSON 1 Module 2: XHTML Basics Basic XHTML.
Training & Development
Tutorial 3 Working with Cascading Style Sheets
Lesson 2 HTML Organization Techniques.
Marquees and Standards
HTML – Basic Tags & Attributes
Lesson 2 — HTML Organization Techniques
Lesson 3: Cascading Style Sheets (CSS) and Graphical Elements
4.01 Cascading Style Sheets
Presentation transcript:

LESSON 2 Module 2: XHTML Basics More Basic XHTML

Lesson Overview In this lesson, you will learn to: Manipulate XHTML code using a text editor application such as Notepad. View Web pages created using XHTML code using a browser. Change text within a Web page using XHTML coding. Align text within an XHTML document. Set the background color of a Web page. Set the text color within a Web page. Create tags with attributes. Lesson 2 Overview

Guiding Questions for Lesson 2 What is text alignment and what are some examples of it? What colors do you like to see when viewing a Web page? How can a choice of color affect the message on a Web page? Post one or more of these questions in an area where students can read them and allow time for students to respond to the questions. Discuss the student answers these questions.

Text color How did the code <body text=“red”>How would this attribute change things?<body> change the text? Web colors can be defined in three ways: Color name Hexadecimal code RGB code Discuss the idea of attributes. Attributes are information which alters the look of the page and when they are included within the opening body tag affect the entire document. Students have already been given an example of this through the code <body text=“red”>How would this attribute change things?</body>. Students should realize that this attribute sets the text to the color red. Using the word “red” is one way of defining color. Students should realize that two other ways exist; one being a hexadecimal code and the other being an RGB code. Explain that these methods will be discussed later in Module 3. At this time, students need to understand that colors can be identified by their word name, hexadecimal code or their RGB code.

Defining Color Visibone Hexadecimal Color Chart - http://html-color-codes.com/ 216 Web Safe Color Chart (Hexadecimal and RGB) - http://www.web-source.net/216_color_chart.htm Color Names and Hexadecimal Code - http://www.w3schools.com/Html/html_colornames.asp RGB, Hexadecimal and Color Names - http://web.njit.edu/~kevin/rgb.txt.html RGB, Hexadecimal and Color Names - http://www.tayloredmktg.com/rgb/#BR Show students some of the Web sites which display colors with their color name, hexadecimal code, and RGB code.

Background Color Background color is defined using an attribute The attribute to define background color is placed in the opening body tag. <body bgcolor=“33ff33”> What color will the background be using this code? Color may also be used in the background of a Web page. The attribute to define the background color is also placed in the opening body tag. An example of this code defining this attribute is <body bgcolor=”33ff33”>. Ask students to identify the color 33ff33 before displaying the page. Can they use one of the color charts to identify the hexadecimal color code?

Writing Code for Background color and Text color Write the code that would display the following: White text on a black background Ask the students to attempt to write the code and attributes for the following: Black background and White text 7

Check your work: Does your answer look like this: <body bgcolor=“#000000” text=“#FFFFFF”> Have them check their answers with the following: <body bgcolor=“000000” text=“#FFFFFF”> 8

Text Alignment Alignment refers to how the text is oriented on the page Left Right Center Discuss that text can also be altered by alignment. Alignment is how the text is oriented on the page. For example, text can be aligned in three ways on a Web page; left, right and centered. Text is automatically set to left alignment unless the designer changes this alignment. 9

Horizontal Rule A horizontal rule is a horizontal line across the Web page Created with the tag <hr /> Attributes can be added to the <hr /> tag such as: Width or how far the line extends across the page, defined by a percent Size or how thick the line is, defined by an integer Color, defined by a hexadecimal code <hr width=“90%” size=“10” color=“#0000FF” /> Creates a line that extends 90 percent across the Web page which is 10 pixels thick and the line is blue Discuss that sometimes there is a need to separate text from other parts of the Web page. This can be done horizontally by using a horizontal rule (a horizontal line). To create a horizontal rule, the tag <hr /> is used. To this tag, the attributes of width (how far the line extends across the page represented by a percent), size (thickness of the line represented by an integer) and color can be added. An example of a horizontal rule tag would look something like this <hr width=“90%” size=“10” bcolor=“#0000FF” />. This tag would create a line which extends across 90 percent of the Web page and is 10 pixels thick. The color of the line will be blue. 10

Lesson Review Explain how to write the code and attributes for each of the following situations: Text color Background color Alignment Review concepts covered if needed with the students and discuss the practice activity.

Practice: Beginning XHTML Create the following changes in your “Tags and Attributes” Web page: Center the title “Tags and Attributes” Make the background of the Web page green (Hint: The hexadecimal code for green is 008000). Make the text color red (Hint: The hexadecimal code for red is FF0000). This is the last slide of the presentation.