Text.XHtml.Frameset
Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Description
Produces XHTML 1.0 Frameset.
Data types
Instances
Show Html | |
Semigroup Html | Since: xhtml-3000.2.2 |
Monoid Html | |
CHANGEATTRS Html | |
Defined in Text.XHtml.Internals | |
ADDATTRS Html | |
HTML Html | |
Defined in Text.XHtml.Internals | |
HTMLTABLE Html | |
Defined in Text.XHtml.Table |
Attributes with name and value.
Instances
Classes
HTML is the class of things that can be validly put inside an HTML tag. So this can be one or more Html
elements, or a String
, for example.
Minimal complete definition
Instances
HTML Char | |
Defined in Text.XHtml.Internals | |
HTML Html | |
Defined in Text.XHtml.Internals | |
HTML HotLink | |
Defined in Text.XHtml.Extras | |
HTML HtmlTable | |
Defined in Text.XHtml.Table | |
HTML HtmlTree | |
Defined in Text.XHtml.Debug | |
HTML a => HTML [a] | |
Defined in Text.XHtml.Internals | |
HTML a => HTML (Maybe a) | |
Defined in Text.XHtml.Internals |
Instances
class CHANGEATTRS a where Source
CHANGEATTRS is a more expressive alternative to ADDATTRS
Methods
changeAttrs :: a -> ([HtmlAttr] -> [HtmlAttr]) -> a Source
Instances
CHANGEATTRS Html | |
Defined in Text.XHtml.Internals | |
CHANGEATTRS b => CHANGEATTRS (a -> b) | |
Defined in Text.XHtml.Internals MethodschangeAttrs :: (a -> b) -> ([HtmlAttr] -> [HtmlAttr]) -> a -> b Source |
Primitives and basic combinators
Put something inside an HTML element.
concatHtml :: HTML a => [a] -> Html Source
(+++) :: (HTML a, HTML b) => a -> b -> Html infixr 2 Source
Create a piece of HTML which is the concatenation of two things which can be made into HTML.
An empty piece of HTML.
isNoHtml :: Html -> Bool Source
Checks whether the given piece of HTML is empty.
Constructs an element with a custom name.
Constructs an element with a custom name, and without any children.
htmlAttrPair :: HtmlAttr -> (String, String) Source
emptyAttr :: String -> HtmlAttr Source
intAttr :: String -> Int -> HtmlAttr Source
strAttr :: String -> String -> HtmlAttr Source
htmlAttr :: String -> Html -> HtmlAttr Source
primHtml :: String -> Html Source
This is not processed for special chars. use stringToHtml or lineToHtml instead, for user strings, because they understand special chars, like <
.
Rendering
showHtml :: HTML html => html -> String Source
Output the HTML without adding newlines or spaces within the markup. This should be the most time and space efficient way to render HTML, though the ouput is quite unreadable.
renderHtml :: HTML html => html -> String Source
Outputs indented HTML. Because space matters in HTML, the output is quite messy.
prettyHtml :: HTML html => html -> String Source
Outputs indented HTML, with indentation inside elements. This can change the meaning of the HTML document, and is mostly useful for debugging the HTML output. The implementation is inefficient, and you are normally better off using showHtml
or renderHtml
.
showHtmlFragment :: HTML html => html -> String Source
Render a piece of HTML without adding a DOCTYPE declaration or root element. Does not add any extra whitespace.
renderHtmlFragment :: HTML html => html -> String Source
Render a piece of indented HTML without adding a DOCTYPE declaration or root element. Only adds whitespace where it does not change the meaning of the document.
prettyHtmlFragment :: HTML html => html -> String Source
Render a piece of indented HTML without adding a DOCTYPE declaration or a root element. The indentation is done inside elements. This can change the meaning of the HTML document, and is mostly useful for debugging the HTML output. The implementation is inefficient, and you are normally better off using showHtmlFragment
or renderHtmlFragment
.
Elements in XHTML Strict
acronym :: Html -> Html Source
address :: Html -> Html Source
blockquote :: Html -> Html Source
caption :: Html -> Html Source
colgroup :: Html -> Html Source
emphasize :: Html -> Html Source
fieldset :: Html -> Html Source
italics :: Html -> Html Source
keyboard :: Html -> Html Source
noscript :: Html -> Html Source
optgroup :: Html -> Html Source
paragraph :: Html -> Html Source
textarea :: Html -> Html Source
thecode :: Html -> Html Source
thehtml :: Html -> Html Source
thelink :: Html -> Html Source
thespan :: Html -> Html Source
thetitle :: Html -> Html Source
variable :: Html -> Html Source
Extra elements in XHTML Frameset
frameset :: Html -> Html Source
noframes :: Html -> Html Source
Attributes in XHTML Strict
action :: String -> HtmlAttr Source
align :: String -> HtmlAttr Source
alt :: String -> HtmlAttr Source
altcode :: String -> HtmlAttr Source
archive :: String -> HtmlAttr Source
base :: String -> HtmlAttr Source
border :: Int -> HtmlAttr Source
bordercolor :: String -> HtmlAttr Source
cellpadding :: Int -> HtmlAttr Source
cellspacing :: Int -> HtmlAttr Source
codebase :: String -> HtmlAttr Source
cols :: String -> HtmlAttr Source
colspan :: Int -> HtmlAttr Source
content :: String -> HtmlAttr Source
coords :: String -> HtmlAttr Source
enctype :: String -> HtmlAttr Source
height :: String -> HtmlAttr Source
href :: String -> HtmlAttr Source
hreflang :: String -> HtmlAttr Source
httpequiv :: String -> HtmlAttr Source
identifier :: String -> HtmlAttr Source
lang :: String -> HtmlAttr Source
maxlength :: Int -> HtmlAttr Source
method :: String -> HtmlAttr Source
name :: String -> HtmlAttr Source
rel :: String -> HtmlAttr Source
rev :: String -> HtmlAttr Source
rows :: String -> HtmlAttr Source
rowspan :: Int -> HtmlAttr Source
rules :: String -> HtmlAttr Source
shape :: String -> HtmlAttr Source
size :: String -> HtmlAttr Source
src :: String -> HtmlAttr Source
theclass :: String -> HtmlAttr Source
thefor :: String -> HtmlAttr Source
thestyle :: String -> HtmlAttr Source
thetype :: String -> HtmlAttr Source
title :: String -> HtmlAttr Source
usemap :: String -> HtmlAttr Source
valign :: String -> HtmlAttr Source
value :: String -> HtmlAttr Source
width :: String -> HtmlAttr Source
Extra attributes in XHTML Frameset
frameborder :: Int -> HtmlAttr Source
marginheight :: Int -> HtmlAttr Source
marginwidth :: Int -> HtmlAttr Source
scrolling :: String -> HtmlAttr Source
Converting strings to HTML
stringToHtml :: String -> Html Source
Convert a String
to Html
, converting characters that need to be escaped to HTML entities.
lineToHtml :: String -> Html Source
This converts a string, but keeps spaces as non-line-breakable.
linesToHtml :: [String] -> Html Source
This converts a string, but keeps spaces as non-line-breakable, and adds line breaks between each of the strings in the input list.
Html abbreviations
primHtmlChar :: String -> Html Source
Copyright sign.
Non-breaking space.
Same as paragraph
.
Hotlinks
Constructors
HotLink | |
Fields
|
hotlink :: URL -> Html -> HotLink Source
Lists
ordList :: HTML a => [a] -> Html Source
unordList :: HTML a => [a] -> Html Source
defList :: (HTML a, HTML b) => [(a, b)] -> Html Source
Forms
widget :: String -> String -> [HtmlAttr] -> Html Source
checkbox :: String -> String -> Html Source
String -> String -> Html Source
::radio :: String -> String -> Html Source
reset :: String -> String -> Html Source
submit :: String -> String -> Html Source
password :: String -> Html Source
textfield :: String -> Html Source
afile :: String -> Html Source
clickmap :: String -> Html Source
menu :: String -> [Html] -> Html Source
Deprecated: menu generates strange XHTML, and is not flexible enough. Roll your own that suits your needs.
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/8.10.2/docs/html/libraries/xhtml-3000.2.2.1/Text-XHtml-Frameset.html