]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/htmltags.tex
1fa5033245683d8c6c0cfba7bdbb643f9cfc4acd
[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{List of supported tags}
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 EM
86
87 STRONG
88
89 CITE
90
91 TT
92
93 H1
94
95 H2
96
97 H3
98
99 H4
100
101 H5
102
103 H6
104
105 A NAME=[string]
106 HREF=[url]
107
108 PRE
109
110 LI
111
112 UL
113
114 OL
115
116 DL
117
118 DT
119
120 DD
121
122 TABLE ALIGN=[alignment]
123 WIDTH=[percent]
124 WIDTH=[pixels]
125 BORDER=[pixels]
126 VALIGN=[v_alignment]
127 BGCOLOR=[color]
128 CELLSPACING=[pixels]
129 CELLPADDING=[pixels]
130
131 TR ALIGN=[alignment]
132 VALIGN=[v_alignment]
133 BGCOLOR=[color]
134
135 TH ALIGN=[alignment]
136 VALIGN=[v_alignment]
137 BGCOLOR=[color]
138 WIDTH=[percent]
139 WIDTH=[pixels]
140 COLSPAN=[pixels]
141 ROWSPAN=[pixels]
142
143 TD ALIGN=[alignment]
144 VALIGN=[v_alignment]
145 BGCOLOR=[color]
146 WIDTH=[percent]
147 WIDTH=[pixels]
148 COLSPAN=[pixels]
149 ROWSPAN=[pixels]
150
151 IMG SRC=[url]
152 WIDTH=[pixels]
153 HEIGHT=[pixels]
154 ALIGN=TEXTTOP
155 ALIGN=CENTER
156 ALIGN=ABSCENTER
157 ALIGN=BOTTOM
158 USEMAP=[url]
159
160 MAP NAME=[string]
161
162 AREA SHAPE=POLY
163 SHAPE=CIRCLE
164 SHAPE=RECT
165 COORDS=[coords]
166 HREF=[url]
167
168 \end{verbatim}
169
170