Supported HTML and CSS For The Amazon Kindle: Miscellaneous Tags

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

Supported HTML and CSS for the Amazon Kindle

Miscellaneous Tags
<!--...--> <a href=""> ...</a> <a name=""> ...</a> <html>...</html> <head>...</head>
Comment. Not displayed in the book. (page 92) Links to a bookmark anchor ("#bookmarkname") or to an external website. (page 89) Establishes an internal bookmark to which you can link. (page 89) The opening and closing tags in your document. Contains information about the HTML document, such as <link>, <title>, and <style> tags. Contains the contents of the book. Creates a line (horizontal rule). (page 91) Inserts an image. (page 74) Page break. (page 92)

<body>...</body> <hr /> <img src="" alt="" /> <mbp:pagebreak/>

Font Formatting
Font Size
<small>...</small>
Reduces font size to one level smaller than the current font size. (page 44) Increases font size to one level larger than the current font size. (page 42)

<big>...</big>

Italics
<i>...</i> <em>...</em> <cite>...</cite>
Italic. (page 43) Emphasized text (italicized). (page 43) Indicates that enclosed text is quoted from another source (italicized). Indicates a variable name or program argument (italicized).

<var>...</var>

Copyright 2009 eBook Architects. All rights reserved. This file is provided as a supplement to Kindle Formatting: The Complete Guide. Please buy the book at http://kindleformatting.com/book.

Bold
<b>...</b> <strong>...</strong>
Bold (page 43) Strong emphasis (bold). (page 43)

Lines
<u>...</u> <s>...</s> <strike>...</strike>
Underlined. (page 44) Strikethrough. (page 46) Strikethrough. (page 46)

Mono-spaced
<code>...</code> <kbd>...</kbd> <samp>...</samp> <tt>...</tt>
Computer code. (page 47) Keyboard text. (page 47) Sample text. (page 47) Teletype text. (page 47)

Other
<span>...</span> <sub>...</sub>
Generic tag; can be used to apply a variety of styles. (page 47) Reduces the font size and drops the text below the baseline. (page 45) Reduces the font size and raises the text to the top of the line. (page 45)

<sup>...</sup>

Paragraphs, etc.
<h1>...</h1> <h2>...</h2> <h3>...</h3> <h4>...</h4> <h5>...</h5> <h6>...</h6> <div>...</div> <p>...</p>
Division or section. (page 59) Paragraph. (page 48) Heading tags. (page 67)

Copyright 2009 eBook Architects. All rights reserved. This file is provided as a supplement to Kindle Formatting: The Complete Guide. Please buy the book at http://kindleformatting.com/book.

Appendix A. Supported HTML and CSS

<blockquote>... </blockquote> <br /> <center>...</center> <ol>...</ol> <ul>...</ul> <li>...</li>

Long quote. Creates left margin of 0.5 inches. (page 59) Line break. (page 58) Centers content horizontally. (page 55) Numbered list. Use <li> tags inside. (page 63) Bulleted list. Use <li> tags inside. (page 63) List item. (page 63)

Common Attributes in HTML Tags


class name width
Allows you to set a style in the style sheet to be used in multiple tags Used in <a> tags to assign a bookmark name. (page 89) Adjusts the first-line indent of a paragraph, blockquote, heading, and list tags. Negative creates a hanging indent. Supports pixels (width="30"), points (width="10pt"), percent (width="10%"), or em-units (width="3em"). (page 51) Sets a top margin on a paragraph, blockquote, heading, and list tags. Supports pixels (height="30"), points (height="10pt"), percent (height="10%"), or emunits (height="3em"). (page 68) Allows the inclusion of CSS styles in a specific tag. Aligns the text in paragraph, blockquote, heading, and list tags. Supports values of left, right, and center.

height

style align

Supported CSS
Font
Property Description Sets the size of a font Values

font-size

xx-small x-small small medium large x-large

Copyright 2009 eBook Architects. All rights reserved. This file is provided as a supplement to Kindle Formatting: The Complete Guide. Please buy the book at http://kindleformatting.com/book.

xx-large

length
%

font-style

Sets the style of the font

normal italic oblique

font-weight

Sets the weight of a font

normal bold

Positioning
Property Description Sets the vertical alignment of an element Values

vertical-align

sub super

Text
Property Description Aligns the text in an element Values

text-align

left right center justify

text-decoration

Adds decoration to text

underline line-through

text-indent

Indents the first line of text in an element

length
%

Copyright 2009 eBook Architects. All rights reserved. This file is provided as a supplement to Kindle Formatting: The Complete Guide. Please buy the book at http://kindleformatting.com/book.

You might also like