HTML/XHTML examples
Jump to:
Basics examples | Text examples | Text formatting examples | Link examples | Image examples | Imagemap examples | Table examples | Frame examples | Form examples | Stylesheet examples | Meta tags examples | Document type examples | Base tag examples | Script examples |
Basics examples
Setting a background color
Including comments in code
Setting the title of a document
A simple HTML document
Text examples
Displaying bold, italic, or underlined text
Displaying text in different sizes using headings
Displaying text in different fonts, sizes, and colors
Using various text tags at once
Text formatting examples
Abbreviations and acronyms
Displaying text as an address
Skipping lines in a webpage
Using computer-output tags
Definition lists
Deleting and inserting text
Creating horizontal lines
Creating an ordered list
Creating ordered lists
Creating an unordered list
Creating unordered lists
Creating nested lists
Displaying paragraphs
Displaying preformatted text
Displaying quotations
Setting text to a subscript or superscript
Setting text direction
Link examples
Linking to other websites
Linking to other directories
Linking within the same page
Opening links in a new window
Linking to resources other than webpages
Image examples
Displaying images from the same directory
Displaying images from another directory or website
Setting a background image
Setting an image to different sizes
Setting image border size
Setting an image as a link
Setting a title for an image
Aligning an image with a paragraph
Imagemap examples
Associating an image with an imagemap
Imagemap
Table examples
Basic HTML table
Table celpadding
Table cellspacing
Table cell background color
Table cell background image
Table with empty cells
Table row span and column span
Table background color
Table background image
Table borders size
Table caption
Table cell alignment
Table 'frame' attribute
Table headings
Table without borders
Tags in tables
Nested tables
Frame examples
Horizontal frames
Vertical frames
Mixed frames
Frame jumping
Navigational frames
Frames with no borders
Frames not supported
Frames not resizable
Form examples
Form buttons
Form checkboxes
Form fieldset
Form hidden fields
Form images
Form password field
Form radio buttons
Form textarea
Form textbox
Submit a form
Reset a form
Forms
Stylesheet examples
Internal stylesheet
External stylesheet
Inline stylesheet
Meta tag examples
Specifying a page author
Specifying a page description
Specifying a page expiration
Specifying a page generator
Specifying keywords for a page
Preventing frames
Redirecting the user from one page to another
Page refresh
Document type examples
Transitional document
Frameset document
Strict document
Base tag examples
Setting a reference point
Opening links in a new window
Script examples
Placing a script on a webpage
Dealing with browsers that cannot execute scripts
Dealing with browsers that cannot execute scripts written in a particular language




