ULI101: XHTML Basics (Part III) Introduction to XHTML / Continued … Block-Level vs. Inline Elements (tags) Manipulating Text, &nbsp, Text Characteristics,,,,,,,,,,,,,,,

Slides:



Advertisements
Similar presentations
Session 2 Introduction to HyperText Markup Language 4 (HTML 4) Matakuliah: M0114/Web Based Programming Tahun: 2005 Versi: 5.
Advertisements

HTML popo.
CREATED BY : VIRAL M.KORADIYA. Anchor elements are defined by the element. The element accepts several attributes, but either the Name or HREF attribute.
Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
HTML. The World Wide Web Protocols Addresses HTML.
HTML: HyperText Markup Language Hello World Welcome to the world!
C HAPTER – 3 I NTRODUCTION TO H TML By :- Pinkesh H. Patel.
HTML popo.
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.
OMT II Mam Saima Gul. * Static web page * a web page with contents that remain fixed and unchanged once it has been created by the author Web server Client.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
1 Outline 9.1Introduction 9.2Markup Languages 9.3Editing HTML 9.4Common Tags 9.5Headers 9.6Text Styling 9.7Linking 9.8Images 9.9Formatting Text With 9.10Special.
 2001 Deitel & Associates, Inc. All rights reserved. 1 Outline 9.1Introduction 9.2Markup Languages 9.3Editing HTML 9.4Common Tags 9.5Headers 9.6Text Styling.
 2008 Pearson Education, Inc. All rights reserved. 1 Introduction to HTML.
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.
© 2005 ComputerPREP, Inc. All rights reserved. HTML 4.0 and Web Page Design Module I.
HTML Notes Chapters 1--6 Codes used in creating HTML documents are called tags. Tags are always enclosed in left ( ) angle brackets. Tags can be upper.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
HTML Overview Part 2 – Paragraphs, Headings, and Lines 1.
HTML Essentials Markup ( Part I ). Why Markup ? Markup gives meaning and structure to your web page Creates a relationship between the elements.
ULI101 – XHTML Basics (Part II) What is Markup Language? XHTML vs. HTML General XHTML Rules Block Level XHTML Tags XHTML Validation.
HTML HTML stands for "Hyper Text Mark-up Language“. Technically, HTML is not a programming language, but rather a markup language. Used to create web pages.
HTML (HyperText Markup Language)
Amber Annett David Bell October 13 th, What will happen What is this business about personal web pages? Designated location of your own web page.
Chapter 4: Hypertext Markup Language Primer TECH Prof. Jeff Cheng.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
More Basic HTML. Add spacing (single & double space) Save Refresh Add horizontal rule Add comments Add styles Add headings Add features Add alignments.
DHTML AND JAVASCRIPT Genetic Computer School LESSON 2 HTML TAGS G H E F.
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.
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.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Exploring the Digital Domain HTML Basics. HTML Hypertext Markup Language Standard (ASCII) text with embedded format codes Most HTML tags are paired Tags.
XP 1 HTML Committed to Shaping the Next Generation of IT Experts. 01: Introduction to HTML.
INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,
Unit 2, cont. September 12 More HTML. Attributes Some tags are modifiable with attributes This changes the way a tag behaves Modifying a tag requires.
Designing a Web Page with Tables. A text table: contains only text, evenly spaced on the Web page in rows and columns uses only standard word processing.
HTML: Hyptertext Markup Language Doman’s Sections.
College of Micronesia- FSM Pohnpei State Campus GEORGE S. MANGONON, MBA Chair, Math/Sci Division September 15-25, 2008.
Agenda Block-Level vs. Inline Elements (tags) Manipulating Text,  , Text Characteristics,,,,,,,,,,,,,,, Font Attributes: size, color, face Horizontal.
4 Chapter Four Introduction to HTML. 4 Chapter Objectives Learn basic HTML commands Discover how to display graphic image objects in Web pages Create.
Introduction to HTML Xiangming Mu 9/23/ Learning Objectives Understand basic HTML tags and their attributes Learn to create a simple HTML page.
CPT 499 Internet Skills for Educators Session Ten Class Notes.
Copyright (c) 2004 Prentice-Hall. All rights reserved. 1 Committed to Shaping the Next Generation of IT Experts. Adding Graphical Elements Essentials for.
CIS234A- Lecture 7 Instructor Greg D’Andrea. Tables A table can be displayed on a Web page either in a text or graphical format. A text table: – contains.
College of Micronesia- FSM Pohnpei State Campus GEORGE S. MANGONON, MBA Chair, Math/Sci Division September 15-25, 2008.
L. Anne Spencer (c) 2001 Basic Web Design Document, text, & layout formatting tags & attributes.
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.
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.
Web Development Lecture # 09 Text Formatting in HTML.
Formatting Text with HTML. Objectives: Students will be able to: Define the structure of the document with block elements Format numbered, bulleted, and.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language, it is a markup.
Writing Your Own Web Page: Using HTML and FrontPage Chapter 10.
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
Department of Computer Science, Florida State University CGS 3066: Web Programming and Design Spring
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
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.
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
Basic Web Publishing M. Scott Gartner 7/15/98.
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.
Lesson 5. XHTML Tags, Attributes and Structure XHTML Basic Structure head and body titles Paragraph headings comments Document Presentation Manipulating.
HTML Basics.
HTML Programming Basic HTML text formatting.
Tag Basics.
HTML Intro.
Computers and Scientific Thinking David Reed, Creighton University
Presentation transcript:

ULI101: XHTML Basics (Part III) Introduction to XHTML / Continued … Block-Level vs. Inline Elements (tags) Manipulating Text, &nbsp, Text Characteristics,,,,,,,,,,,,,,, Font Attributes: size, color, face Horizontal Rule

Block-level vs. Inline Elements Tags (elements) contained in the body section of the web page are of two types: Block-Level Elements Blank line above and below structured element. Used to create “larger structures” (eg. Paragraphs, headings, etc…) Block-level elements may contain in-line elements or other block- level elements Inline Elements No blank line above and below element Inline elements can only contain data and other inline elements Refer to web page as a guide to followwww.htmlhelp.com Paragraph 1 Text text text Paragraph 2

Block-Level Elements Headings The tags,,,,, and are display headings. Level 1 headings are the most prominent (largest) headings, and level 6 headings are the least prominent (smallest). Headings are usually displayed in a bolder, larger font than normal text. Heading elements start on a new line. All browsers add extra space before heading elements. Closing Tags are required (i.e., … )

Block-Level Elements  paragraphs The tag displays a paragraph All elements start on a new line and are usually preceded by extra space You can also use the tag to insert a line break with extra space. To insert a line break without adding extra space, use the tag A closing tag is required.  Refer to INT222 web page for examples of body attributes, comments, headings and paragraph tags

Block-Level Elements  Indents a paragraph works almost like tag, except the whole paragraph will be indented one tab – 5 spaces. A closing tag is required.  Displays text as is (i.e. suppresses interpretation of some HTML/XHTML tags) A closing tag is required. Allows author to add spaces and new lines without having to revert to special codes such as or

Block-Level Elements  Horizontal Rule (i.e. line) This tag will put a line across a screen. You can use a horizontal rule to visually divide information or sections. Here are attributes that can change the look of the horizontal rule (line): width – changes the width of line in terms of pixels (dots of light) or percentage of screen ( eg. or ) size – changes the thickness of the line (eg. ) noshade – sets line to display no shading (eg. ) Note: Refer to “INT222 Notes” for examples and links to other block-level tags.

Manipulating Text Spacing in HTML/XHTML is very different from the normal way we think of spacing in any text editor. This is because, browsers don’t count white space such as carriage returns, a series of spaces and tabs. To get this same effect, you will need to use special tags or special codes.

Manipulating Text  Equivalent to a Carriage Return (i.e. start on next line)  Will automatically add one space (non-breaking space) To indent 5 times, then repeat code 5 times (i.e. ) Note: special characters require use of &# followed by a decimal code (eg. ASCII) of character, followed by a semicolon ;. For example < would display a less-than sign < (refer to special code chart on INT222 in week 3 notes)

Text Characteristics This section deals with tags that set text characteristics. All tags appearing in this section are inline tags that have an opening and closing tag.

Text Characteristics  text Displays text in boldface type  text Increases the font size from its current value by 1. It has the same effect as using the font tag with a size value of +1  text Displays text in a different style to indicate that is a citation. Netscape display citations in italics  text Displays text in the browser’s default fixed-width font. For large sections of text where formatting is important, use the or tags to preserve the space characters and line breaks.

Text Characteristics  text Displays text in a emphasized style. Netscape displays emphasized text in italics.  text Displays text in italic  text Displays text in a special font that is meant to indicate that the user should type the text on the keyboard. Netscape displays the specified text in the current fixed-width font.

Text Characteristics  text Displays text with a line (strike through it). The tag has the same effect as the tag.  text Reduces the font size from its current value by 1. It has the same effect as using the tag with a size value of –1  text Displays text with a line (strike) through it. The tag has the same effect as the tag.  text Displays text with a strong emphasis. Netscape uses boldface to indicate strong emphasis.

Text Characteristics  text Displays text as a subscript. A subscript appears slightly below the baseline (bottom edge) and in a smaller font.  text Displays text as a superscript. A superscript appears slightly above the top of the preceding text and in a smaller font.  text Displays text in the fixed width (typewriter) font. It usually has the same result as the and tags.  text Underlines the text it encloses. Gaps between words in the enclosed text are also underlined.

Text Characteristics  text Displays text in a special font to show that it is a variable. Netscape displays tag in italic.  text The tag allows you to change the color, size, and typeface (font family) of the font. All text between the tags is displayed with the specified the specified font characteristics relative to the default font for the browser

Text Characteristics  Font Attributes: Font Size, Font Color text Used to change the font size of text (or parts of your web page). Plus sign increases size, minus sign reduces size text Used to change the color of font. Although, color names like ‘red’ can be used, it is suggested to use browser-safe colors. Hexadecimal numbers accompany the number sign # to display mixers of Red, Blue and Green to create the color.

Text Characteristics  Font Attributes: Font Face text Used to change the font face (style). If the font you include on your web pages isn’t on someone else’s computer, then the browser will use the default – Arial. You can use more than one font face by using a comma. If the first one is not available, then use second one, etc…

Images The tag specifies an image to be displayed in an HTML document. The src attribute of the img tag indicates the image to display. The alt attribute (alternative name), is what shows up in place of the picture, if the picture fails to load or if the visitor has turns "loading images" off. The minimum requirement for an img tag is:  It is recommended that you always include the width and height attributes of the image as well…