_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition1  Wiley and the.

Slides:



Advertisements
Similar presentations
HTML popo.
Advertisements

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.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
C HAPTER – 3 I NTRODUCTION TO H TML By :- Pinkesh H. Patel.
Chapter 2 HTML Basics Key Concepts
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
XHTML Basics Web pages used to be written exclusively in html
1 Web Developer & Design Foundations with XHTML Chapter 9 Key Concepts.
Chapter 8 Creating Style Sheets.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 3: XHTML Coding © 2007 Prosoft Learning Corporation All rights reserved ITD 110 Web Page.
Tutorial 2: Formatting Text. Objectives Session 2.1 – Learn the functions of the Common toolbar – Change the size of text – Discern which fonts to use.
Week 7 Web Typography. 2 Understanding Type Design Principles.
Chapter Concepts Discuss Fonts Understand Fonts
HTML Hypertext Markup Language –First proposed by CERN in 1989 –It is non-linear so it allows you to jump from place to place –Markup refers to the structure.
XHTML II DIGITAL MEDIA: COMMUNICATION AND DESIGN F2007.
XHTML1 Tables and Lists. XHTML2 Objectives In this chapter, you will: Create basic tables Structure tables Format tables Create lists.
Creating a Web Page with Tables. Objectives Create a text table with preformatted text Create the basic structure of a graphical table Organize table.
Web Page Development Identify elements of a Web Page Start Notepad
1 Formatting: Is What You See What You Get? Inline Styles Physical Styles Logical Styles Special Characters Turning of Formatting Deprecated Font-Handling.
Tutorial 3: Adding and Formatting Text. 2 Objectives Session 3.1 Type text into a page Copy text from a document and paste it into a page Check for spelling.
Web Design is a class created to nurture the minds of high school techies, and introduce those without prior knowledge to the field.
HTML BASIC
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.
Session: 3. © Aptech Ltd. 2Formatting Text using Tags / Session 3  Explain the Heading tag  Explain the different tags related to formatting  Explain.
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
HTML Tags. Objectives Know the commonly used HTML tags Create a simple webpage using the HTML tags that will be discussed.
ULI101: XHTML Basics (Part III) Introduction to XHTML / Continued … Block-Level vs. Inline Elements (tags) Manipulating Text,  , Text Characteristics,,,,,,,,,,,,,,,
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) HTML Basics James Wang.
Headings, Paragraphs, Formatting, Links, Head, CSS, Images
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
HTML Essentials Markup ( Part I ). Why Markup ? Markup gives meaning and structure to your web page Creates a relationship between the elements.
Tutorial 1 Developing a Basic Web Page. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives – Lesson 1 Introduction to the.
1.  Describe the anatomy of a web page  Format the body of a web page with block-level elements including headings, paragraphs, lists, and blockquotes.
Chapter 2 HTML Basics Key Concepts Copyright © 2013 Terry Ann Morris, Ed.D 1.
1 Web Developer Foundations: Using XHTML Chapter 2 Key Concepts.
1 CSC 121 Computers and Scientific Thinking David Reed Creighton University HTML and Web Pages.
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.
Introduction to Programming the WWW I CMSC Winter 2003 Lecture 3.
Copyright © 2013 MyGraphicsLab / Pearson Education STRUCTURE AND HTML TAGS MyGraphicsLab: Adobe Dreamweaver CS6 ACA Certification Preparation for Web Communication.
 2008 Pearson Education, Inc. All rights reserved Introduction to XHTML.
XP 1 HTML Committed to Shaping the Next Generation of IT Experts. 01: Introduction to HTML.
A Basic Web Page. Chapter 2 Objectives HTML tags and elements Create a simple Web Page XHTML Line breaks and Paragraph divisions Basic HTML elements.
INTRODUCTORY Tutorial 1 Using HTML Tags to Create Web Pages.
ECA 228 Internet/Intranet Design I Intro to Markup.
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.
Chapter 2 Web Page Design Mr. Gironda. Elements of a Web Page These are things that most web pages use.
HTML – Organizing Page Content. HTML Images img tag Required attribute: src
HTML – Organizing Page Content. HTML Images img tag Required attribute: src
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.
Introducing HTML 5 Creating Web Pages with HTML 5 1.
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.
Formatting Text with HTML. Objectives: Students will be able to: Define the structure of the document with block elements Format numbered, bulleted, and.
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.
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.
1999, COMPUTER SCIENCE, BUU Introduction to HTML Seree Chinodom
©SoftMoore ConsultingSlide 1 Introduction to HTML: Block-Level Elements.
Chapter 4 and 5. Objectives Introduce markup: elements and attributes How browsers interpret HTML documents Basic structure of HTML document What do style.
01 – HTML (1) Informatics Department Parahyangan Catholic University.
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
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.
Using Cascading Style Sheets Module B: CSS Structure
HTML Intro.
Lesson 2: HTML5 Coding.
Presentation transcript:

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition1  Wiley and the book authors, 2002 Web Design in a Nutshell Chapter 10: Formatting Text

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition2  Wiley and the book authors, 2002 Summary  Text tags  Paragraphs and headings  Text appearance  Spacing and positioning  Lists  Working with HTML text  Paragraphs and line breaks  Headings  &  The tag  Nesting lists  Character entity references

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition3  Wiley and the book authors, 2002 Synopsis Designers accustomed to desktop publishing programs are usually shocked to find how little control HTML offers over the display of the page. However, HTML was not developed as a method for designing how the page looks, but as a means of marking the structure of a document Tags that do provide specific display information (e.g. ) are not true to the original HTML concept The W3C has made these intentions clear by deprecating nearly all tags that control presentation in favor of CSS

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition4  Wiley and the book authors, 2002 Summary of text tags Tags used for formatting text can be divided into 4 subgroups:  Paragraphs and Headings (block-level elements)  Text Appearance (inline styles)  Spacing and Positioning  Lists Samples of text tags described in this chapter can be viewed at /MGMT362e/WDIAN/chapter10.html /MGMT362e/WDIAN/chapter10.html

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition5  Wiley and the book authors, 2002 Paragraphs and Headings Block-level elements are always formatted with a line break before and after, with most adding some amount of additional space above and below as well  … : supplies the author’s contact information, typically at the beginning or end of a document. Usually formatted in italic type  … : used for lengthy quotations which are generally displayed with an indent on the left and right margins and added space above and below  cite=“URL”: provides information about the source from which the quotation was borrowed

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition6  Wiley and the book authors, 2002 Paragraphs and Headings (cont.)  … : denotes a generic “division” within the document. Because it has no presentation properties of its own, it can be used in conjunction with the class and id attributes and formatted with style sheets. Usually display with some added space above and below.  align=“center|left|right” (deprecated)  class=“name”: assigns a name to an element designated in a CSS  id=“name”: assigns a unique name to an element  style=“style properties”: embeds CSS formatting information  … : specifies that the enclosed text is a heading. There are 6 levels of heading from to  align=“center|left|right” (deprecated)  … : denotes the beginning and end of a paragraph. Browsers ignore multiple empty elements. Displays with more added space above and below than the tag  align=“center|left|right” (deprecated)

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition7  Wiley and the book authors, 2002 Text appearance The following tags affect the appearance or meaning of text. With the exception of, all of the tags in this section define inline styles, meaning they can be applied to a string of characters within a block element without introducing line breaks.  … : identifies the enclosed text as an abbreviation. This may be useful for non-visual browsers, speech synthesizers, translation systems, and search engines  title=“string”: provides the full text for the abbreviation o MA  … : indicates an acronym and is used similarly to  title=“string”: provides the full expression for the acronym o WWW

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition8  Wiley and the book authors, 2002 Text appearance (cont.)  … : bolds the enclosed text  (deprecated, no closing tag): specifies certain font attributes for text which follows the tag. Can be used in the or section  size=“value”: sets the basefont size using the HTML size values from 1-7 or relative values based on the default value of 3  color=“#rrggbb|name”: sets the color of the following text  face=“font”: sets the font face for the following text  … : sets the type one font size larger than the surrounding text  … : causes the contained text to flash  … : denotes a citation. Generally displayed in italics  … : denotes a code sample. Generally displayed in the browser’s specified monospace font

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition9  Wiley and the book authors, 2002 Text appearance (cont.)  … : indicates deleted text. Has no inherent style qualities but may be used to hide deleted text from view or display it as strike-through text via style-sheet controls. Its counterpart is (inserted text)  cite=“URL”: can be set to point to a source document that explains why the document was changed  datetime=“YYYY-MM-DDThh:mm:ssTZD”: specifies date and time the change was made. TZD is the time zone designator (Z for UTC)  … : indicates the defining instance of the enclosed term. Usually rendered in bold text, it calls attention to the introduction of special terms and phrases.  … : indicated emphasized text. Nearly all browsers render emphasized text in italic

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition10  Wiley and the book authors, 2002 Text appearance (cont.)  … (deprecated): used to affect the style (color, typeface, and size) of the enclosed text  size=“value”: sets the basefont size using the HTML size values from 1-7 or relative values (+n or –n) based on the default value of 3  color=“#rrggbb|name”: sets the color of the following text  face=“font|font-list”: sets the font face for the following text  … : enclosed text is displayed in italics  … : indicates that text has been inserted into the document. No inherent style qualities on its own but may be used to indicated inserted text in a different color via style sheet controls.  cite=“URL”: can be set to point to a source document that explains why the document was changed  datetime=“YYYY-MM-DDThh:mm:ssTZD”: specifies date and time the change was made. TZD is the time zone designator (Z for UTC)

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition11  Wiley and the book authors, 2002 Text appearance (cont.)  … : stands for “keyboard” and indicates text entered by the user. It is usually displayed in monospace and sometimes bolded  … : delimits a short quotation that can be included inline. Some browsers automatically insert quotation marks. When used with the lang attribute, the browser may insert language-specific quotation marks.  cite=“URL”: designates the source document from which the quote was taken  … or … (deprecated): enclosed text is displayed as strike-through  … : delimits sample output from programs, scripts, etc. Generally displayed as monospace  … : renders the type smaller than the surrounding text

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition12  Wiley and the book authors, 2002 Text appearance (cont.)  … : identifies a span of inline characters, but does not by default affect the formatting of those characters. It can be used in conjunction with the class or id attributes and formatted with CSS  class=“name”: assigns a name to an element or # of elements  id=“name”: assigns a unique name to an element  style=“style”: embeds style information to be applied to contents  … : enclosed text is strongly emphasized. Nearly all browsers render text as bolded.  … : formats enclosed text as subscript  … : formats enclosed text as superscript  … : formats enclosed text as teletype text. Generally displayed in a monospaced font  … (deprecated): enclosed text is underlined  … : indicates an instance of a variable or program argument. Browsers usually render text as italicized.

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition13  Wiley and the book authors, 2002 Spacing and positioning The following tags give authors control over the line breaks, alignment, and spacing. Tables and CSS offer better control than most of the minimal controls here  : breaks the text and begins a new line, but does not add extra space  clear=“all|left|right|none”: breaks the text flow and resumes the next line after the specified margin is clear. Often used to start the text below an aligned image (preventing text wrap). none is the default  … (deprecated): centers the enclosed elements horizontally on the page (a shortcut to )  … (nonstandard): text & graphics between will always display on a single line

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition14  Wiley and the book authors, 2002 Spacing and positioning (cont.)  … : delimits preformatted text, meaning that lines are displayed exactly as they are typed in, honoring multiple spaces and line breaks. Text is usually displayed in a monotype font  width=“value” (deprecated): determines how many characters to fit on a single line within the block  … (nonstandard): indicates a potential word break point. The tag works only when placed within - tagged text and causes a line break only if the current line already extends beyond the browser’s display window margins

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition15  Wiley and the book authors, 2002 Lists The following is a collection of tags used for formatting a number of different types of lists in HTML. Any list can be nested within another list.  … (deprecated): creates a directory list consisting of list items. Directory lists were originally designed to display lists of files with short names, but they have been deprecated with the recommendation that unordered lists ( ) be used  … : indicates a definition list consisting of terms ( ) and definitions ( )  compact (deprecated): makes the list as small as possible. Few browsers support the compact attribute  … : denotes the definition portion of an item within a definition list. Usually displayed with an indented left margin  … : denotes the term portion of an item within a definition list

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition16  Wiley and the book authors, 2002 Lists (cont.)  : defines an item within a list. Used with the,, and tags  type=“format” (deprecated): changes the format of the automatically generated numbers or bullets (disc, circle, or square)  value=“number” (deprecated): within ordered lists, you can specify the number of an item. Following list items increase from the specified number  … (deprecated): indicates the beginning and end of a menu list which consists of list items. Menus are intended to be used for a list of short choices  … : defines the beginning and end of an ordered (numbered) list which consists of list items. Item numbers are inserted automatically by the browser  start=“number”: starts the numbering of the list at number instead of at 1  type=“1|A|a|I|I” (deprecated): defines the numbering system for the list ((1,2,3,4,…),(A,B,C,D,…),(a,b,c,d,…),(I,II,III,IV,…), or (i,ii,iii,iv,…)).

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition17  Wiley and the book authors, 2002 Lists (cont.)  … : defines the beginning and end of an unordered (bulleted) list which consists of list items. Bullets for each list item are inserted automatically by the browser  type=“disc|circle|square” (deprecated): defines the shape of the bullets for each list item

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition18  Wiley and the book authors, 2002 Working with HTML text After establishing the skeleton of the document (chapter 9), a good place to begin formatting a web document is to establish the general structure of the contents by adding HTML tags that create paragraphs and heading levels in the raw text A browser starts a new paragraph or adds a line break only if it encounters a tag in the HTML source that tells it to do so. Otherwise, it ignores the carriage returns and extra spaces in the HTML source. Without tags, all content in the HTML document wraps automatically to fill the width of the browser window

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition19  Wiley and the book authors, 2002 Paragraphs and line breaks Paragraphs are the most rudimentary elements of a text document If you want to break a line but not add any extra space, insert a line break with the tag. This element does not have a closing tag and it can be placed in the flow of text where you want the line break to occur

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition20  Wiley and the book authors, 2002 Headings Headings are displayed in bold text with automatic line breaks and extra space above and below. There are 6 levels of HTML headings, ranging from to. Browsers display headings with a diminishing font size so that s are displayed in the largest possible font and are displayed with the smallest ( & are generally sized the same as or smaller than the default body text). Legal HTML syntax requires that headings appear in order (e.g. an cannot precede or exist without an ). In practice, however, designers often pick and choose from heading levels to create desired presentation effects (most consider to be too large).

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition21  Wiley and the book authors, 2002 and 2 generic tags, and can be used to structure and label the contents of a web document The tag divides a document into distinct sections. The tag is an inline element that can be applied to a string of text within a paragraph or other content flow. It does not introduce a line break. The class attribute is used to identify various elements as belonging to a group. If you want the glossary words in a document to display in green type, identify each word as a with the “glossary” class and use a style sheet to affect the display of all “glossary” terms: span.glossary {color: green;} resolution and color depth NOTE: the class and id attributes can be used in most tags

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition22  Wiley and the book authors, 2002 The tag You can use the size attribute of the tag to adjust type size. Browsers measure HTML type on a relative scale from 1 to 7, where 3 is the default and is determined by the client’s preferences. These are relative sizes and do not signify actual pixel or point adjustments. Each size is successively about 20% smaller or larger than the previous or next. Size can be specified as an absolute value (e.g. size=4) or as a relative value (e.g. size=“+1”). Relative adjustments are not cumulative.

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition23  Wiley and the book authors, 2002 Specifying fonts with The face attribute does not guarantee that the user will see your text in the specified font. Consider it merely a recommendation. The quote-enclosed value of the face is one or more display font names separated by commas The browser looks at the string of font names until it finds one that is installed on the user’s system and can be displayed. If none of the suggested fonts are installed, the default font is used your text You can include a generic font family (serif, sans-serif, monospace, cursive, or fantasy) as the last choice in your list allowing the browser to choose any available font within that class should the named fonts not be found

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition24  Wiley and the book authors, 2002 Nesting lists Any list can be nested within another list (you can add a bulleted list item under an item within a numbered list). Lists can be nested several layers deep, but if you nest too deeply, your text may end up past the right margin. When unordered lists are nested, the browser automatically displays a different bullet for each consecutive level Ordered lists do not automatically display their nested levels in standard outline format. Every level within a nested numbered list will display with numbers unless you change the type.

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition25  Wiley and the book authors, 2002 Character entity references Characters not found in the normal alphanumeric character set must be specified in HTML using character entities. Character entities can be referenced by name (&name;) or by numeric value (&#nnn;). The browser interprets the string to display the proper character. Named entities are preferable because numeric values may be interpreted differently on different platforms

_______________________________________________________________________________________________________________ PHP Bible, 2 nd Edition26  Wiley and the book authors, 2002 Common special characters CharacterDescriptionNameNumber Character space (nonbreaking)   &Ampersand&& <Less-than sign<< >Greater-than sign>> ™Trademark(none)™ £Pound sign££ ¥Yen sign¥¥ ©Copyright symbol©© ®Registered trademark®®