]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/htmltags.tex
Watcom C++ fixup in tbar95.cpp; removed WXWIN_COMPATIBILITY for 'old' menu
[wxWidgets.git] / docs / latex / wx / htmltags.tex
1 \section{Tags supported by wxHTML}\label{htmltagssupported}
2
3 wxHTML is not full implementation of HTML standard. Instead, it supports most common tags so that it
4 is possible to display {\it simple} HTML documents with it. (For example it works fine with pages created
5 in Netscape Composer or generated by tex2rtf).
6
7 Following tables list all tags known to wxHTML, together with supported parameters.
8 A tag has general form of {\tt <tagname param\_1 param\_2 ... param\_n>} where param\_i is
9 either {\tt paramname="paramvalue"} or {\tt paramname=paramvalue} - these two are equivalent. Unless stated
10 otherwise, wxHTML is case-insensitive.
11
12
13 \wxheading{Table of common parameter values}
14
15 We will use these substitutions in tags descriptions:
16
17 \begin{verbatim}
18 [alignment] CENTER
19 LEFT
20 RIGHT
21
22 [v_alignment] TOP
23 BOTTOM
24 CENTER
25
26 [color] #nnnnnn
27 where n is hexadecimal digit
28
29 [fontsize] -2
30 -1
31 +0
32 +1
33 +2
34 +3
35 +4
36
37 [pixels] integer value that represents dimension in pixels
38
39 [percent] i%
40 where i is integer
41
42 [url] an URL
43
44 [string] text string
45
46 [coords] c(1),c(2),c(3),...,c(n)
47 where c(i) is integer
48
49 \end{verbatim}
50
51
52 \wxheading{Document layout and structure}
53
54 \begin{verbatim}
55 P ALIGN=[alignment]
56
57 BR ALIGN=[alignment]
58
59 DIV ALIGN=[alignment]
60
61 CENTER
62
63 BLOCKQUOTE
64
65 TITLE
66
67 BODY TEXT=[color]
68 LINK=[color]
69 BGCOLOR=[color]
70
71 HR ALIGN=[alignment]
72 SIZE=[pixels]
73 WIDTH=[percent]
74 WIDTH=[pixels]
75
76 FONT COLOR=[color]
77 SIZE=[fontsize]
78
79 U
80
81 B
82
83 I
84
85 TT
86
87 H1
88
89 H2
90
91 H3
92
93 H4
94
95 H5
96
97 H6
98
99 A NAME=[string]
100 HREF=[url]
101
102 PRE
103
104 LI
105
106 UL
107
108 OL
109
110 TABLE ALIGN=[alignment]
111 WIDTH=[percent]
112 WIDTH=[pixels]
113 BORDER=[pixels]
114 VALIGN=[v_alignment]
115 BGCOLOR=[color]
116 CELLSPACING=[pixels]
117 CELLPADDING=[pixels]
118
119 TR ALIGN=[alignment]
120 VALIGN=[v_alignment]
121 BGCOLOR=[color]
122
123 TH ALIGN=[alignment]
124 VALIGN=[v_alignment]
125 BGCOLOR=[color]
126 WIDTH=[percent]
127 WIDTH=[pixels]
128 COLSPAN=[pixels]
129 ROWSPAN=[pixels]
130
131 TD ALIGN=[alignment]
132 VALIGN=[v_alignment]
133 BGCOLOR=[color]
134 WIDTH=[percent]
135 WIDTH=[pixels]
136 COLSPAN=[pixels]
137 ROWSPAN=[pixels]
138
139 IMG SRC=[url]
140 WIDTH=[pixels]
141 HEIGHT=[pixels]
142 ALIGN=TEXTTOP
143 ALIGN=CENTER
144 ALIGN=ABSCENTER
145 ALIGN=BOTTOM
146 USEMAP=[url]
147
148 MAP NAME=[string]
149
150 AREA SHAPE=POLY
151 SHAPE=CIRCLE
152 SHAPE=RECT
153 COORDS=[coords]
154 HREF=[url]
155
156 \end{verbatim}
157
158