added list of tags supported by wxHTML
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
158
docs/latex/wx/htmltags.tex
Normal file
158
docs/latex/wx/htmltags.tex
Normal file
@@ -0,0 +1,158 @@
|
||||
\section{Tags supported by wxHTML}\label{htmltagssupported}
|
||||
|
||||
wxHTML is not full implementation of HTML standard. Instead, it supports most common tags so that it
|
||||
is possible to display {\it simple} HTML documents with it. (For example it works fine with pages created
|
||||
in Netscape Composer or generated by tex2rtf).
|
||||
|
||||
Following tables list all tags known to wxHTML, together with supported parameters.
|
||||
A tag has general form of {\tt <tagname param\_1 param\_2 ... param\_n>} where param\_i is
|
||||
either {\tt paramname="paramvalue"} or {\tt paramname=paramvalue} - these two are equivalent. Unless stated
|
||||
otherwise, wxHTML is case-insensitive.
|
||||
|
||||
|
||||
\wxheading{Table of common parameter values}
|
||||
|
||||
We will use these substitutions in tags descriptions:
|
||||
|
||||
\begin{verbatim}
|
||||
[alignment] CENTER
|
||||
LEFT
|
||||
RIGHT
|
||||
|
||||
[v_alignment] TOP
|
||||
BOTTOM
|
||||
CENTER
|
||||
|
||||
[color] #nnnnnn
|
||||
where n is hexadecimal digit
|
||||
|
||||
[fontsize] -2
|
||||
-1
|
||||
+0
|
||||
+1
|
||||
+2
|
||||
+3
|
||||
+4
|
||||
|
||||
[pixels] integer value that represents dimension in pixels
|
||||
|
||||
[percent] i%
|
||||
where i is integer
|
||||
|
||||
[url] an URL
|
||||
|
||||
[string] text string
|
||||
|
||||
[coords] c(1),c(2),c(3),...,c(n)
|
||||
where c(i) is integer
|
||||
|
||||
\end{verbatim}
|
||||
|
||||
|
||||
\wxheading{Document layout and structure}
|
||||
|
||||
\begin{verbatim}
|
||||
P ALIGN=[alignment]
|
||||
|
||||
BR ALIGN=[alignment]
|
||||
|
||||
DIV ALIGN=[alignment]
|
||||
|
||||
CENTER
|
||||
|
||||
BLOCKQUOTE
|
||||
|
||||
TITLE
|
||||
|
||||
BODY TEXT=[color]
|
||||
LINK=[color]
|
||||
BGCOLOR=[color]
|
||||
|
||||
HR ALIGN=[alignment]
|
||||
SIZE=[pixels]
|
||||
WIDTH=[percent]
|
||||
WIDTH=[pixels]
|
||||
|
||||
FONT COLOR=[color]
|
||||
SIZE=[fontsize]
|
||||
|
||||
U
|
||||
|
||||
B
|
||||
|
||||
I
|
||||
|
||||
TT
|
||||
|
||||
H1
|
||||
|
||||
H2
|
||||
|
||||
H3
|
||||
|
||||
H4
|
||||
|
||||
H5
|
||||
|
||||
H6
|
||||
|
||||
A NAME=[string]
|
||||
HREF=[url]
|
||||
|
||||
PRE
|
||||
|
||||
LI
|
||||
|
||||
UL
|
||||
|
||||
OL
|
||||
|
||||
TABLE ALIGN=[alignment]
|
||||
WIDTH=[percent]
|
||||
WIDTH=[pixels]
|
||||
BORDER=[pixels]
|
||||
VALIGN=[v_alignment]
|
||||
BGCOLOR=[color]
|
||||
CELLSPACING=[pixels]
|
||||
CELLPADDING=[pixels]
|
||||
|
||||
TR ALIGN=[alignment]
|
||||
VALIGN=[v_alignment]
|
||||
BGCOLOR=[color]
|
||||
|
||||
TH ALIGN=[alignment]
|
||||
VALIGN=[v_alignment]
|
||||
BGCOLOR=[color]
|
||||
WIDTH=[percent]
|
||||
WIDTH=[pixels]
|
||||
COLSPAN=[pixels]
|
||||
ROWSPAN=[pixels]
|
||||
|
||||
TD ALIGN=[alignment]
|
||||
VALIGN=[v_alignment]
|
||||
BGCOLOR=[color]
|
||||
WIDTH=[percent]
|
||||
WIDTH=[pixels]
|
||||
COLSPAN=[pixels]
|
||||
ROWSPAN=[pixels]
|
||||
|
||||
IMG SRC=[url]
|
||||
WIDTH=[pixels]
|
||||
HEIGHT=[pixels]
|
||||
ALIGN=TEXTTOP
|
||||
ALIGN=CENTER
|
||||
ALIGN=ABSCENTER
|
||||
ALIGN=BOTTOM
|
||||
USEMAP=[url]
|
||||
|
||||
MAP NAME=[string]
|
||||
|
||||
AREA SHAPE=POLY
|
||||
SHAPE=CIRCLE
|
||||
SHAPE=RECT
|
||||
COORDS=[coords]
|
||||
HREF=[url]
|
||||
|
||||
\end{verbatim}
|
||||
|
||||
|
Reference in New Issue
Block a user