Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lesson 5. XHTML Tags, Attributes and Structure XHTML Basic Structure head and body titles Paragraph headings comments Document Presentation Manipulating.

Similar presentations


Presentation on theme: "Lesson 5. XHTML Tags, Attributes and Structure XHTML Basic Structure head and body titles Paragraph headings comments Document Presentation Manipulating."— Presentation transcript:

1 Lesson 5

2 XHTML Tags, Attributes and Structure XHTML Basic Structure head and body titles Paragraph headings comments Document Presentation Manipulating Text Font Font Style Images Horizontal Rule Lists Unordered Lists Ordered Lists

3 Tags The tag identifies a document as an HTML document. All HTML documents must start with the tag and end with the tag. An xmlns - XML namespace - is also included as part of the html tag. The namespace declaration is considered to apply to the element where it is specified and to all elements within the content of that element. Using will apply the XHTML namespace to all elements within the HTML document.

4 Text Formatting Note that in HTML we have: Logical Tags Physical Tags Alignment and misc. tags Logical Tags are used to format text without specifying the exact appearance of the text. The exact appearance of the text is left to the browsers to define. Examples are the emphasis strong tags. Physical Tags specify the exact appearance of text. The challenge here is to know which browsers support which tags vs. the desire by web designers to have more control on text formatting. Alignment and misc tags are specifically used to give the desired alignment and to display special characters or text.

5 Text effects preferred to Why? some people listen to web pages or read them in braille, while others use a browser that can not display bold or italic. Note: –Don’t use since it looks like a hyperlink

6 HTML has the instructions (tags, speciali characters, etc) and tries to make web pages complaint with current and older Browsers XHTML Uses stylesheets but older browsers don't understand stylesheets

7 Other special characters include the: subscript superscript &frac14 Here text is bold! Here text is underlined Here text is italicized. Here text is bold! Here text is underlined Here text is italicized Five is < 15 And 18 is > 8 All ©IBM software is good And this is the &amp sign 5 is < 15 And 18 is > 8 All ©IBM software is good and this is the & sign

8 Changing fonts: write text here Font is a deprecated tag.  Stylesheets Font Style  Stylesheets Need to remove Document Presentation from Document Structure

9 Unordered Lists –Are lists without any order and are rendered with a line break and a bullet symbol For solid bullets use For hollow bullets use For hollow squares use

10 Ordered and Nested Lists Ordered Lists Nested Lists To use Arabic numerals To use Capital letters To use lowercase letters To use Capital Roman numerals To use lowercase Roman numerals

11 Review True/False Every XHTML document contains a start tag and an end True Web browsers typically underline text hyperlinks and color them grey by default False The color is blue

12 Review True/False Every img element in a valid XHTML document must have an alt attribute True The img element is an example of an empty element True

13 Review True/False The hr element inserts a line break above and below the horizontal line True Unordered list element ul creates a list in which each item in the list begins with a square symbol False A bullet symbol unless otherwise specified

14 Review True/False XHTML provides special characters in the form &code; for representing characters that cannot be marked up. True The works almost identical to the except the whole paragraph will be indented one tab - 3 spaces. False 5 spaces


Download ppt "Lesson 5. XHTML Tags, Attributes and Structure XHTML Basic Structure head and body titles Paragraph headings comments Document Presentation Manipulating."

Similar presentations


Ads by Google