The HTML Ebook Pages
In this part of the series we look at the HTML pages for the HTML ebook project.
HTML Ebook - Part 4
Introduction
This is part 4 of my series, HTML Ebook. In this part of the series we look at the HTML pages for the HTML ebook project. The information I give you for the code samples in this part of the series are for illustrative purpose only. In your commercial project there will be practical information for the HTML pages.
Note: If you cannot see the code or if you think anything is missing in this article (broken link, image absent), just contact me at forchatrans@yahoo.com. That is, contact me for the slightest problem you have about what you are reading.
The HTML Head and Body Elements
All HTML pages except the banner and sidebar pages will go into the content frame of the frameset. Each of these pages has the HTML BODY element. Each of these pages has the HTML HEAD element. The Head element of each of these pages has the TITLE element and a META description tag. The Title tag has the title of the page. The Meta description tag has the description of the page's information (content).
Non-Chapter Pages
The non-chapter pages are the Cover page, the Table of Contents page, the Forward page, the Acknowledgement page and the Index page.
We shall now look at the code for the different pages.
Table of Contents Page
The Table of Contents page mainly has to HTML Ordered Lists for the table of contents. Each item of the table of contents is a link that will lead you to its page.
The HTML Lists
In the Table of Contents the non-chapter pages are numbered with lower roman numbers, while the chapters are numbered with decimals. There are two HTML Ordered Lists: one for the non-chapter pages and the other for the chapter pages.
This is the one for the non-chapter pages:
The Ordered List for the chapters has nested Ordered Lists. The numbering for the outer list is decimal and does not have leading zeros. The numbering for the nested lists is also decimal but has leading zeros. The outer list is for the chapters while the nested lists are for the sections of the chapters.
The is the outer list without the nested lists:
Here is the complete list for the chapters:
Just note that for convenience, I included the index page link with the chapter List and not the non-Chapter page List.
At the end of this series, you will have a link for the complete code, which would include the complete code for the Table of Contents page.
Numbering
I have numbered the entries of the table of contents in a very simple way. If you want a more convenient way of numbering the entries of the table of content and in chapters, then learn CSS Automatic Counters and Numbering.
The Cover Page
This is the code for the Cover page:
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Cover
Title of Book
by
Name of Author
Name of Publisher
Publisher's Address line 1
Publisher's Address line 1
Publisher's Address line 1
Publisher's Address line 1
Year Published
The Forward Page
The is the code for the forward page:
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Forward
In this page, the author gives the reasons why he writes the ebook: what purpose the ebook will be used for and what people will gain when they read the ebook.
The Acknowledgement Page
This is the code for the acknowledgement page:
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Forward
In this page, the author list and thank the people and institutions that help him to produce the book.
Chapters
A chapter starts with some introduction or a kind of overview to the chapter information. In this case, the HTML page for the chapter introduction (overview) will be different from that of the first section of the chapter. This would lead to a chapter having four pages and not three.
Chapter 1 Introductory Page
Below is the introductory page for chapter 1. The name of this file is Chapter1.htm and it is in the head directory.
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Chapter 1 - Its title
The introductory information for chapter 1 and any images go here.
Chapter 1-Section 1
Below is the Chapter 1-Section 1 page. The name of this file is Chapter1-Section1.htm and it is in the Chapter1 directory, which is an immediate sub directory to the head directory.
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Chapter 1 - Section 1- Its title
Information and any images for chapter 1 - section 1 go here.
Chapter 1-Section 2
Below is the Chapter 1-Section 2 page. The name of this file is Chapter1-Section2.htm and it is in the Chapter1 directory, which is an immediate sub directory to the head directory.
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Chapter 1 - Section 2- Its title
Information and any images for chapter 1 - section 2 go here.
Chapter 1-Section 3
Below is the Chapter 1-Section 3 page. The name of this file is Chapter1-Section3.htm and it is in the Chapter1 directory, which is an immediate sub directory to the head directory.
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Chapter 1 - Section 3- Its title
Information and any images for chapter 1 - section 3 go here.
The Pages for the other Chapters
The pages for the other chapters are defined similarly to those of chapter 1.
The Index Page
The index page consists of important words from all the chapters arranged in alphabetical order. Each of these words is a hyperlink to the page (position of the page) that has the word. I will not give you the code for this page; I leave that as an exercise for you.
The main thing you have to do for this is to arrange the words in alphabetical order (you can use a spreadsheet such as Excel for this) and then, for the HTML index page you make each word a hyperlink to the page that has the word, targeting (with the A target attribute) the content frame of the frameset.
That is it for this chapter. We take a break here and continue in the next part of the series.
Chrys
-
HTML Ebook Overview
| By Chrys | in Programming
In this article series, I show you how to create an ebook with HTML....
-
The Sidebar HTML Document
| By Chrys | in Programming
In this part of the series we look at the hyperlinks structure and behavior in the sidebar HTML document for the HT...
-
The Banner HTML Document
| By Chrys | in Programming
In this part of the series we look at the banner HTML document for the HTML ebook project....
-
Prices Are Falling with ‘eSlick’ eBook Reader
| By amazedwithyou | in Gadgets & Gizmos
eSlick is the newest eBook Reader to enter the market. It's classy. It's sleak. It's priced for the interested b...
-
Writing Your First Ebook, Getting it Published and Getting it Sold
| By NightWriter | in Marketing & Advertising
Get instructions on how to write, publish and sell your first ebook. In writing your first ebook, there are few th...
-
XA Transaction - Solution for Transaction More Than One Database | By H4d1 | in Programming
Have you ever think that it's too difficult for making database transaction in two different places (or databases) ...
-
Javascript functions for : trim, right trim, left trim, no Apostrophe, is Empty , is Digit , VarChar To Number , is integer , check Is Zero , Get Que | By xxris | in Programming
Javascript functions for : trim, right trim, left trim, no Apostrophe, is Empty , is Digit , VarChar To Number , i...
-
How to access and use a Window's command line | By MaxwellPayne | in Programming
Learn about the Window's command line in DOS and how to use it....
-
How to Learn to Program Your Computer | By dsj8760 | in Programming
This article is about learning to program a computer. It is a general article giving tips on how to learn about pro...
-
Jailbroken iPhones get RickRolled | By explorer | in Programming
First iPhone worm, attacks via SSH and does the classic rick roll gag on the user....
-
Database N-to-N Relationships | By Chrys | in Programming
In this part of the tutorial we look at one-to-one, one-to-many and many-to-many relationships....
-
Database Associations Overview | By Chrys | in Programming
In this part of the series, we look at Database Associations Overview....
-
Database Table Data Types | By Chrys | in Programming
In this part of the series we look at database Data Types....
-
Database Table Keys | By Chrys | in Programming
In this part of the series we look at what is known as a key....
-
Database Design | By Chrys | in Programming
A database is a set of related tables. This is part 1, division 1 of a series I have on database....







No comments yet.