1\name{HTML.title}
2\alias{HTML.title}
3\alias{as.title}
4
5\title{ Writes a title in a target HTML output }
6\description{
7  A title is a string with the S3 class "title". The function \code{as.title} gives this class to an object, so that title method of HTML could apply to it. However, it is also possibly to call this method, explicitly, providing a plain string.
8}
9\usage{
10\method{HTML}{title}(x, HR = 2, CSSclass=NULL,
11file = HTMLGetFile(), append=TRUE,...)
12as.title(x)
13}
14
15\arguments{
16  \item{x}{ string }
17  \item{HR}{ rank attribute of the HTML <H?> tag }
18  \item{CSSclass}{ CSS class to use for personalised reports }
19  \item{file}{ the target HTML file }
20  \item{append}{ logical. If 'TRUE' output will be appended to 'file'; otherwise, it will overwrite the contents of 'file'}
21  \item{\dots}{ ... }
22}
23\value{
24	no value returned.
25}
26\author{ Eric Lecoutre }
27
28\note{ For a discussion about .HTML.file default value for file argument, refer to \code{\link{HTMLStart}} }
29
30\seealso{  \code{\link{HTML}} }
31
32\examples{
33## Write a title in the file /test.html.
34## Target file may be changed when submitting this code...
35
36myfile <- paste(tempfile(),".html",sep="")
37
38tit1 <- as.title("This is method 1")
39
40HTML(tit1, file=myfile)
41
42HTML.title("This is method 2",file=myfile, HR=3)
43cat("\n Test output written in: ",myfile)
44
45
46}
47\keyword{ print }
48\keyword{ IO }
49\keyword{ file }
50