Thursday, January 1, 2009

HTML Page 3



HTML Output - Useful Tips
*You cannot be sure how HTML will be displayed. Large or small screens, and resized windows will create different results.
*With HTML, you cannot change the output by adding extra spaces or extra lines in your HTML code.
*The browser will remove extra spaces and extra lines when the page is displayed. Any number of lines count as one space, and any number of spaces count as one space.
Try it yourself (The example demonstrates some HTML formatting problems)

Examples From This Page
HTML paragraphs
*This example demonstrates how HTML paragraphs are displayed in a browser.
Line breaks
*This example demonstrates the use of line breaks in an HTML document.
Horizontal rule
*This example demonstrates how to insert a horizontal rule.
Poem problems
*This example demonstrates some problems with HTML formatting.
More Examples
More paragraphs
*This example demonstrates some of the default behaviors of paragraph elements.
HTML Tag Reference
*When you lookup W3Schools' tag reference, you will see additional information about tags and their attributes.
*You will learn more about HTML tag attributes in the next chapters of this tutorial.
HTML Text Formatting
*This text is bold
*This text is big
*This text is italic
*This is computer output
*This is subscript and superscript
HTML Formatting Tags
*HTML uses tags like and for formatting output, like bold or italic text.
*These HTML tags are called formatting tags.
*Refer to the bottom of this page for a complete reference.


Examples - Try it Yourself
Text formatting
*This example demonstrates how you can format text in an HTML document.
Preformatted text
*This example demonstrates how you can control the line breaks and spaces with the pre tag.
"Computer output" tags
*This example demonstrates how different "computer output" tags will be displayed.
Address
*This example demonstrates how to write an address in an HTML document.
Abbreviations and acronyms
*This example demonstrates how to handle an abbreviation or an acronym.
Text direction
*This example demonstrates how to change the text direction.
Quotations
*This example demonstrates how to handle long and short quotations.
Deleted and inserted text
*This example demonstrates how to mark a text that is deleted or inserted to a document.

No comments:

Post a Comment