]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/htmltags.tex
1cfd21964fe70edc549db1315e62a46a894d9992
[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 1
37 2
38 3
39 4
40 5
41 6
42 7
43
44 [pixels] integer value that represents dimension in pixels
45
46 [percent] i%
47 where i is integer
48
49 [url] an URL
50
51 [string] text string
52
53 [coords] c(1),c(2),c(3),...,c(n)
54 where c(i) is integer
55
56 \end{verbatim}
57
58
59 \wxheading{List of supported tags}
60
61 \begin{verbatim}
62 P ALIGN=[alignment]
63
64 BR ALIGN=[alignment]
65
66 DIV ALIGN=[alignment]
67
68 CENTER
69
70 BLOCKQUOTE
71
72 TITLE
73
74 BODY TEXT=[color]
75 LINK=[color]
76 BGCOLOR=[color]
77
78 HR ALIGN=[alignment]
79 SIZE=[pixels]
80 WIDTH=[percent]
81 WIDTH=[pixels]
82
83 FONT COLOR=[color]
84 SIZE=[fontsize]
85 FACE=[comma-separated list of facenames]
86
87 U
88
89 B
90
91 I
92
93 EM
94
95 STRONG
96
97 CITE
98
99 ADDRESS
100
101 CODE
102
103 KBD
104
105 SAMP
106
107 TT
108
109 H1
110
111 H2
112
113 H3
114
115 H4
116
117 H5
118
119 H6
120
121 A NAME=[string]
122 HREF=[url]
123
124 PRE
125
126 LI
127
128 UL
129
130 OL
131
132 DL
133
134 DT
135
136 DD
137
138 TABLE ALIGN=[alignment]
139 WIDTH=[percent]
140 WIDTH=[pixels]
141 BORDER=[pixels]
142 VALIGN=[v_alignment]
143 BGCOLOR=[color]
144 CELLSPACING=[pixels]
145 CELLPADDING=[pixels]
146
147 TR ALIGN=[alignment]
148 VALIGN=[v_alignment]
149 BGCOLOR=[color]
150
151 TH ALIGN=[alignment]
152 VALIGN=[v_alignment]
153 BGCOLOR=[color]
154 WIDTH=[percent]
155 WIDTH=[pixels]
156 COLSPAN=[pixels]
157 ROWSPAN=[pixels]
158
159 TD ALIGN=[alignment]
160 VALIGN=[v_alignment]
161 BGCOLOR=[color]
162 WIDTH=[percent]
163 WIDTH=[pixels]
164 COLSPAN=[pixels]
165 ROWSPAN=[pixels]
166
167 IMG SRC=[url]
168 WIDTH=[pixels]
169 HEIGHT=[pixels]
170 ALIGN=TEXTTOP
171 ALIGN=CENTER
172 ALIGN=ABSCENTER
173 ALIGN=BOTTOM
174 USEMAP=[url]
175
176 MAP NAME=[string]
177
178 AREA SHAPE=POLY
179 SHAPE=CIRCLE
180 SHAPE=RECT
181 COORDS=[coords]
182 HREF=[url]
183
184 \end{verbatim}
185
186