Formatting and Designing Text
- Getting Started with i-mode Text Formatting
- Creating Paragraphs
- The Paragraph Element
- Creating Space with Breaks
- Applying Text Styles
- Font Styles
Getting Started with i-mode Text Formatting
To begin programming in i-mode HTML, the order of tags will be familiar to anyone who has worked with HTML for the desktop Web. The html element comes first, followed by the head and then the body elements. Between the beginning and end of the <head> tag is where the title element is placed. All of the text, images, links, and other elements of your page will be enclosed within the <body> tag.
Remember that the future markup language for mobile sites is XHTML Basic, so for your page to be well-formed, be sure to end all tags appropriately and in the proper order. A lot of sloppy HTML pages have been written in the past without an end tag for the body or html element, but this is a serious problem when using XHTML Basicbecause pages may not render at all. At any rate, it is best to get into the habit of creating valid and well-formed documents.
In this article, we'll just concern ourselves with i-mode HTML, and leave XHTML Basic for another lesson. Listing 1 shows the basic structure of an i-mode HTML page.
Listing 1Basic Elements of the i-mode HTML Page
<html> <head> <title>Welcome</title> </head> <body> This is the first page of my i-mode site. </body> </html>