LESSON 1 Module 2: XHTML Basics Basic XHTML.

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
XHTML Basics.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 1.
Creating a Web Page HyperText Markup Language. HTML Documents  Created using any text editor  Notepad  Vi, Pico, or Emacs  If using word-processor,
Tutorial 1: Getting Started with HTML5
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.
Essentials of HTML Instructor: Jeanne Hart. Your Instructor  I have been designing web sites for almost 20 years.  I worked as a part of a Web Team.
HTML Structure & syntax
Essential Tags Web Design – Sec 3-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Essential Tags Web Design – Sec 3-3 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Chapter 1 XHTML: Part I The Web Warrior Guide to Web Design Technologies.
Using Html Basics, Text and Links. Objectives  Develop a web page using HTML codes according to specifications and verify that it works prior to submitting.
HTML. WHAT IS HTML HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup language A markup language is a set of.
Html Basic Codes Week Two. Start Your Text Editor Windows use 'Notepad’ Macintosh use 'Simple Text'
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 New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 8 1 Creating Effective Web Pages Creating HTML Documents Tutorial 8.
Just Enough HTML How to Create Basic HTML Documents.
HTML Hyper Text Markup Language. What is an HTML File?  HTML stands for Hyper Text Markup Language  An HTML file is a text file containing small markup.
Lesson 2: Basic HTML Code Basic HTML Code. HTML is an acronym for Hypertext Markup Language. Internet browsers translate the HTML code into texts and.
IS1811 Multimedia Development for Internet Applications Lecture 4: Introduction to HTML Rob Gleasure
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
Introduction to HTML Wah Yan College (Hong Kong) Mr. Li C.P.
Basic HTML Hyper text markup Language. Lesson Overview  In this lesson, you will learn to:  Write HTML code using a text editor application such as.
HTML Structure & syntax. Introduction This presentation introduces the following: Doctype declaration HTML Tags, Elements and Attributes Sections of a.
HTML: Hyptertext Markup Language Doman’s Sections.
Ali Alshowaish. What is HTML? HTML stands for Hyper Text Markup Language Specifically created to make World Wide Web pages Web authoring software language.
HTML Basics Computers. What is an HTML file? *HTML is a format that tells a computer how to display a web page. The documents themselves are plain text.
HTML HYPER TEXT MARKUP LANGUAGE. INTRODUCTION Normal text” surrounded by bracketed tags that tell browsers how to display web pages Pages end with “.htm”
Basic HTML. Lesson Overview In this lesson, you will learn to:  Write HTML code using a text editor application such as Notepad.  View Web pages created.
HTML-I Basic HTML Elements. HTML (Hyper Text Markup Language) HTML is a document layout and hyperlink- specification language. i.e. a language used to.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
Hyper Text Markup Language.  My First Heading My first paragraph. Example Explained The DOCTYPE declaration defines the document type The text between.
Introduction to HTML (Web Design) IT Fundamentals.
Blended HTML and CSS Fundamentals 3 rd EDITION Tutorial 1 Using HTML to Create Web Pages.
HTML Structure & syntax
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Getting Started with HTML
Pertemuan 1 Desain web Pertemuan 1
Online PD Basic HTML The Magic Of Web Pages
Introduction to HTML.
HTML5 Basics.
Section 4.1 Section 4.2 Format HTML tags Identify HTML guidelines
LESSON 2 Module 2: XHTML Basics More Basic XHTML.
Essential Tags Web Design – Sec 3-3
Uppingham Community College
XHTML Basics.
Basic HTML PowerPoint How Hyper Text Markup Language Works
Essential Tags Web Design – Sec 3-3
Hyper text markup Language
XHTML Basics.
XHTML Basics.
Computers and Scientific Thinking David Reed, Creighton University
Unit A.
Tutorial Developing a Basic Web Page
XHTML Basics.
Understand basic HTML and CSS terminology, concepts, and basic operations. Objective 3.01.
Web Application Development
Pertemuan 1 Desain web Pertemuan 1
HyperText Markup Language
An Introduction to HTML Pages
Creating a Basic Web Page
XHTML Basics.
AN INTRODUCTION BY FAITH BRENNER
HTML Structure & syntax
Lesson 2: HTML5 Coding.
WJEC GCSE Computer Science
Web Design & Development
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Presentation transcript:

LESSON 1 Module 2: XHTML Basics Basic XHTML

Lesson Overview In this lesson, you will learn to: Write XHTML code using a text editor application such as Notepad. View Web pages created with XHTML code. Create a comment within an XHTML document. Format text within a Web page. Creates tags with attributes. Lesson 1 Overview

Guiding Questions for Lesson 1 How do Web designers create Web pages? What tools are needed to create a Web page or site? How is a Web page viewed from the browser? 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.

Web Page Structure XHTML is an example of a publishing language for the Internet X Extensible H Hyper T Text M Markup L Language Review the definition of XHTML with students from the text and describe that the tools needed to create a Web page or site can be as simple as a text editor application to a more complex Web design application. Explain to the students that we will be using a very simplistic word processing application called “Notepad” to create our first Web pages with XHTML.

Web sites may appear differently when viewed in different browsers Viewing Web Sites Web browsers Internet Explorer Mozilla Firefox Netscape Navigator Apple Safari And others Web sites may appear differently when viewed in different browsers Web pages are viewed using a Web browser. The current most popular Web browsers include Internet Explorer, Mozilla Firefox, Netscape Navigator, and Apple Safari. Discuss the fact that an individual Web page may appear differently when viewed in each of these Web browsers due to the way that each browser renders the page.

Copy this code into a Notepad document: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Tags and Attributes</title> </head> <body> It’s time to learn how XHTML tags are used to create Web pages. All XHTML pages begin with the html (the html must be included inside the < > brackets) tag and end with the /html (the /html must be included inside the < > brackets). Considering the huge amount of information on the Internet, Web pages are created from a surprisingly small number of tags, and you will find that they are easy to learn and use. The HEAD element (delineated by the head and /head tags) comes next and serves as a box or container that can hold a variety of other elements, including the TITLE element. The TITLE element contains the words that appear on the title bar or page tab in the browser window. In this example, “Tags and Attributes” is the title. </body> </html> Take this time to talk about the use of tags in the code that the students have copied. Discuss the declaration of the Doctype and the elements included in this declaration. Discuss the three types of Doctypes (Strict, Transitional, and Frameset) and the uses for each. Identify the use of opening <html> and corresponding </html> tag. Identify the <title> and </title> as well as the <body> and </body> tags. Also discuss the idea of nesting these tags within the code.

Create an XHTML file Save the code that you just created as “tags.html” The extension .html designates a file to be opened by a browser Access the file and open it Once students have copied the code into their word processing document, have them save the document as “tags.html.” The extension .html will identify this file as one to be opened by a Web site browser. Once the students have the file saved, ask them to go to the file on their computer (or other location where the file is saved) and open it.

Does your work look like this: Discuss how the <head> tag creates a container to hold the text to be displayed. The <title> tag creates the title of the Web page which is found on the browser tab. The <body> tag is the main portion of the Web page. Point out the proper use of nesting of the tags. Discuss what looks different about the Web page than what might have been expected. Lead the students to identify that the Web browser ignores the extra line spacing that was entered and create the entire body as one block of text instead of the two blocks of text that was entered into the original document.

How will these examples display in a Web browser? <b>How would this text look different?</b> <strong>Does this look any different?</strong> <i>How would this text be displayed?</i> <em>Same as italicized?</em> <u>This tag might be useful for titles.</u> <body text=red>How would this tag change things?</body> Bolded text Strong or bolded text Italicized text Underlined text (deprecated) Text color would be red Discuss that tags tell the browser how to display text and ask students to identify how they think the following examples of text would be displayed by a browser. (Note: For purposes of practicing the concepts of tags and for creating a few beginner Web pages, this text includes a few elements that were commonly used in earlier versions of HTML, but no longer meet the most recent HTML standards. Elements no longer supported by the most current version of XHTML are referred to as “deprecated.” We will note these deprecations where they appear.) <b>How would this text look different?</b> bolded text <strong>Does this look any different?</strong> strong or bolded text <i>How would this text be displayed?</i> italicized text <em>Same as italicized?</em> italicized text <u>This tag might be useful for titles.</u> underlined text (deprecated) <body text=red>How would this tag change things?</body> text color would be red If students are struggling with identifying the effect of each tag, have them add the code to their document so that they can visually see the differences.

Text size Text size can be altered by the use of tags <h1>This tag creates large text</h1> <h2>Creates a slightly smaller text</h2> <h3>Is smaller yet, but still large</h3> <h4>Starts getting smaller</h4> <h5>Now the text is getting small</h5> <h6>And finally, this is the smallest</h6> Discuss that text can also be altered in its size. The use of a height tag will alter the size of the text. 10

Creating a Break Browsers ignore the use of the “enter” key To force the browser to place text on the next line use the “break” tag <br /> Try placing a break tag in your work after the phrase “easy to learn and use.” View your Web page again. How did it change? Discuss that a browser ignores the use of the “enter” key. The extra space in our example did not show in the Web browser. Explain that the use of a break tag <br /> will place text on the next line. How students place a break tag after the phrase “easy to learn and use.” Now ask student to view their xhtml document again. (Note: This would be a good time to explain the use of the refresh button for viewing a Web page.) 11

Creating a Paragraph <br /> vs. <p> … </p> <br /> places the text on the next line <p> … </p> creates a block or paragraph of text Remove the <br /> tag in our work that you just added Place an opening paragraph tag <p> after the <body> tag Place a closing paragraph tab </p> after the phrase “easy to learn and use.” Refresh your Web page and look at the difference. Discuss the difference between a “break” tag and a “paragraph” tag. A break tag places the following text on the next line. A paragraph tag places the text in a block, thus creating a paragraph. Ask students to remove the break tag they just created and place a beginning paragraph tag <p> right after the body tag <body> and place a closing paragraph tag </p> after the phrase “easy to learn and use.” Have students refresh their Web page to see the result. 12

Creating a Comment Why would a Web designer what to use a comment? Comments can be created using code Comments do not show in the Web page when viewed <!-- This is an example of a comment --> Discuss the process of creating a comment. Ask students why someone creating a Web page would want to use a comment. Explain that comments are created using the following coding and are not displayed when viewing a Web page. <!--This is an example of a comment.--> 13

Lesson Review Explain how to write the code for each of the following situations: Bold Underlining Italics What is the tag for the largest size and smallest size text? What does a comment code look like? Explain the difference between <br /> and <p>…</p> Review concepts covered if needed with the students and discuss the practice activity.

Practice: XHTML Basics Create the following changes in your “Tags and Attributes” Web page: Add the text “Tags and Attributes” at the beginning of the body. Make the “Tags and Attributes” be displayed as h1 in size. Make the “Tags and Attributes” be display as bolded text. Make the “Tags and Attributes” be display as underlined. Make the rest of the document display as h4 in size. Italicize all the words that are all caps. (Hint: There are five words in all caps.) Add a comment for your name and the date. This is the last slide of the presentation.