Index
A
- HTML::assert() — Method in class HTML
Checks if the passed condition and throws exception if it's not truthy.
- HTML::a() — Method in class HTML
Defines a hyperlink.
- HTML::abbr() — Method in class HTML
Defines an abbreviation or an acronym.
- HTML::acronym() — Method in class HTML
Not supported in HTML5. Use <abbr> instead. Defines an acronym.
- HTML::address() — Method in class HTML
Defines contact information for the author/owner of a document.
- HTML::applet() — Method in class HTML
Not supported in HTML5. Use <embed> or <object> instead. Defines an embedded applet.
- HTML::area() — Method in class HTML
Defines an area inside an image map.
- HTML::article() — Method in class HTML
Defines an article.
- HTML::aside() — Method in class HTML
Defines content aside from the page content.
- HTML::audio() — Method in class HTML
Defines embedded sound content.
B
- $ HTML#buffer — Property in class HTML
Current buffer.
- HTML::b() — Method in class HTML
Defines bold text.
- HTML::base() — Method in class HTML
Specifies the base URL/target for all relative URLs in a document.
- HTML::basefont() — Method in class HTML
Not supported in HTML5. Use CSS instead. Specifies a default color, size, and font for all text in a document.
- HTML::bdi() — Method in class HTML
Isolates a part of text that might be formatted in a different direction from other text outside it.
- HTML::bdo() — Method in class HTML
Overrides the current text direction.
- HTML::big() — Method in class HTML
Not supported in HTML5. Use CSS instead. Defines big text.
- HTML::blockquote() — Method in class HTML
Defines a section that is quoted from another source.
- HTML::body() — Method in class HTML
Defines the document's body.
- HTML::br() — Method in class HTML
Defines a single line break.
- HTML::button() — Method in class HTML
Defines a clickable button.
C
- $ HTML#conditions — Property in class HTML
Conditions track.
- HTML::comment() — Method in class HTML
Creates an HTML comment from the specified text and pass it to the buffer.
- HTML::close() — Method in class HTML
Creates an HTML closing tag matching the last tag opened by
self::open()
.- HTML::condition() — Method in class HTML
Takes a condition (some boolean value) to determine whether or not to create the very next element and pass it to the buffer.
- HTML::canvas() — Method in class HTML
Used to draw graphics, on the fly, via scripting (usually JavaScript).
- HTML::caption() — Method in class HTML
Defines a table caption.
- HTML::center() — Method in class HTML
Not supported in HTML5. Use CSS instead. Defines centered text.
- HTML::cite() — Method in class HTML
Defines the title of a work.
- HTML::code() — Method in class HTML
Defines a piece of computer code.
- HTML::col() — Method in class HTML
Specifies column properties for each column within a <colgroup> element.
- HTML::colgroup() — Method in class HTML
Specifies a group of one or more columns in a table for formatting.
D
- HTML::do() — Method in class HTML
Alias for
self::function()
. See the corresponding method for more details.- HTML::data() — Method in class HTML
Adds a machine-readable translation of a given content.
- HTML::datalist() — Method in class HTML
Specifies a list of pre-defined options for input controls.
- HTML::dd() — Method in class HTML
Defines a description/value of a term in a description list.
- HTML::del() — Method in class HTML
Defines text that has been deleted from a document.
- HTML::details() — Method in class HTML
Defines additional details that the user can view or hide.
- HTML::dfn() — Method in class HTML
Specifies a term that is going to be defined within the content.
- HTML::dialog() — Method in class HTML
Defines a dialog box or window.
- HTML::dir() — Method in class HTML
Not supported in HTML5. Use <ul> instead. Defines a directory list.
- HTML::div() — Method in class HTML
Defines a section in a document.
- HTML::dl() — Method in class HTML
Defines a description list.
- HTML::dt() — Method in class HTML
Defines a term/name in a description list.
E
- HTML::entity() — Method in class HTML
Creates an HTML entity from the specified name and pass it to the buffer.
- HTML::element() — Method in class HTML
Creates a complete HTML element (opening and closing tags) constructed from the specified parameters and pass it to the buffer.
- HTML::em() — Method in class HTML
Defines emphasized text.
- HTML::embed() — Method in class HTML
Defines a container for an external application.
F
- HTML::function() — Method in class HTML
Takes a callback and executes it after binding $this (HTML) to it, useful for example to execute any PHP code while creating the markup.
- HTML::fieldset() — Method in class HTML
Groups related elements in a form.
- HTML::figcaption() — Method in class HTML
Defines a caption for a <figure> element.
- HTML::figure() — Method in class HTML
Specifies self-contained content.
- HTML::font() — Method in class HTML
Not supported in HTML5. Use CSS instead. Defines font, color, and size for text.
- HTML::footer() — Method in class HTML
Defines a footer for a document or section.
- HTML::form() — Method in class HTML
Defines an HTML form for user input.
- HTML::frame() — Method in class HTML
Not supported in HTML5. Defines a window (a frame) in a frameset.
- HTML::frameset() — Method in class HTML
Not supported in HTML5. Defines a set of frames.
H
- HTML — Class in namespace MAKS\PhpHtml
A class that serves as a fluent interface to write HTML in PHP. It also helps with creating HTML elements on the fly.
- HTML::h1() — Method in class HTML
Defines HTML heading.
- HTML::h2() — Method in class HTML
Defines HTML heading.
- HTML::h3() — Method in class HTML
Defines HTML heading.
- HTML::h4() — Method in class HTML
Defines HTML heading.
- HTML::h5() — Method in class HTML
Defines HTML heading.
- HTML::h6() — Method in class HTML
Defines HTML heading.
- HTML::head() — Method in class HTML
Contains metadata/information for the document.
- HTML::header() — Method in class HTML
Defines a header for a document or section.
- HTML::hr() — Method in class HTML
Defines a thematic change in the content.
- HTML::html() — Method in class HTML
Defines the root of an HTML document.
I
- HTML::if() — Method in class HTML
Alias for
self::condition()
. See the corresponding method for more details.- HTML::interpolate() — Method in class HTML
Replaces variables in the passed string with values from the passed variables.
- HTML::isConditionTruthy() — Method in class HTML
Determines whether or not the last set condition is truthy or falsy.
- HTML::i() — Method in class HTML
Defines a part of text in an alternate voice or mood.
- HTML::iframe() — Method in class HTML
Defines an inline frame.
- HTML::img() — Method in class HTML
Defines an image.
- HTML::input() — Method in class HTML
Defines an input control.
- HTML::ins() — Method in class HTML
Defines a text that has been inserted into a document.
K
L
- HTML::label() — Method in class HTML
Defines a label for an <input> element.
- HTML::legend() — Method in class HTML
Defines a caption for a <fieldset> element.
- HTML::li() — Method in class HTML
Defines a list item.
- HTML::link() — Method in class HTML
Defines the relationship between a document and an external resource (most used to link to style sheets).
M
- HTML::minify() — Method in class HTML
Minifies HTML buffers by removing all unnecessary whitespaces and comments.
- HTML::main() — Method in class HTML
Specifies the main content of a document.
- HTML::map() — Method in class HTML
Defines an image map.
- HTML::mark() — Method in class HTML
Defines marked/highlighted text.
- HTML::meta() — Method in class HTML
Defines metadata about an HTML document.
- HTML::meter() — Method in class HTML
Defines a scalar measurement within a known range (a gauge).
N
- HTML::node() — Method in class HTML
Creates an arbitrary text-node from the specified text and pass it to the buffer (useful to add some special tags, "<!DOCTYPE html>" for example).
- HTML::normalizeTagName() — Method in class HTML
Returns a normalized HTML tag name from the specified name.
- HTML::nav() — Method in class HTML
Defines navigation links.
- HTML::noframes() — Method in class HTML
Not supported in HTML5. Defines an alternate content for users that do not support frames.
- HTML::noscript() — Method in class HTML
Defines an alternate content for users that do not support client-side scripts.
O
- HTML::open() — Method in class HTML
Creates an HTML opening tag from the specified parameters and pass it to the buffer. Works in conjunction with
self::close()
.- HTML::object() — Method in class HTML
Defines a container for an external application.
- HTML::ol() — Method in class HTML
Defines an ordered list.
- HTML::optgroup() — Method in class HTML
Defines a group of related options in a drop-down list.
- HTML::option() — Method in class HTML
Defines an option in a drop-down list.
- HTML::output() — Method in class HTML
Defines the result of a calculation.
P
- HTML::p() — Method in class HTML
Defines a paragraph.
- HTML::param() — Method in class HTML
Defines a parameter for an object.
- HTML::picture() — Method in class HTML
Defines a container for multiple image resources.
- HTML::pre() — Method in class HTML
Defines preformatted text.
- HTML::progress() — Method in class HTML
Represents the progress of a task.
Q
R
- HTML::render() — Method in class HTML
Returns the created HTML elements found in the buffer and empties it.
- HTML::rp() — Method in class HTML
Defines what to show in browsers that do not support ruby annotations.
- HTML::rt() — Method in class HTML
Defines an explanation/pronunciation of characters (for East Asian typography).
- HTML::ruby() — Method in class HTML
Defines a ruby annotation (for East Asian typography).
S
- $ HTML#stack — Property in class HTML
Current stack (nesting).
- HTML::stringifyAttributes() — Method in class HTML
Returns an HTML attributes string from an associative array of attributes.
- HTML::s() — Method in class HTML
Defines text that is no longer correct.
- HTML::samp() — Method in class HTML
Defines sample output from a computer program.
- HTML::script() — Method in class HTML
Defines a client-side script.
- HTML::section() — Method in class HTML
Defines a section in a document.
- HTML::select() — Method in class HTML
Defines a drop-down list.
- HTML::small() — Method in class HTML
Defines smaller text.
- HTML::source() — Method in class HTML
Defines multiple media resources for media elements (<video> and <audio>).
- HTML::span() — Method in class HTML
Defines a section in a document.
- HTML::strike() — Method in class HTML
Not supported in HTML5. Use <del> or <s> instead. Defines strikethrough text.
- HTML::strong() — Method in class HTML
Defines important text.
- HTML::style() — Method in class HTML
Defines style information for a document.
- HTML::sub() — Method in class HTML
Defines subscripted text.
- HTML::summary() — Method in class HTML
Defines a visible heading for a <details> element.
- HTML::sup() — Method in class HTML
Defines superscripted text.
- HTML::svg() — Method in class HTML
Defines a container for SVG graphics.
T
- HTML::table() — Method in class HTML
Defines a table.
- HTML::tbody() — Method in class HTML
Groups the body content in a table.
- HTML::td() — Method in class HTML
Defines a cell in a table.
- HTML::template() — Method in class HTML
Defines a container for content that should be hidden when the page loads.
- HTML::textarea() — Method in class HTML
Defines a multiline input control (text area).
- HTML::tfoot() — Method in class HTML
Groups the footer content in a table.
- HTML::th() — Method in class HTML
Defines a header cell in a table.
- HTML::thead() — Method in class HTML
Groups the header content in a table.
- HTML::time() — Method in class HTML
Defines a specific time (or datetime).
- HTML::title() — Method in class HTML
Defines a title for the document.
- HTML::tr() — Method in class HTML
Defines a row in a table.
- HTML::track() — Method in class HTML
Defines text tracks for media elements (<video> and <audio>).
- HTML::tt() — Method in class HTML
Not supported in HTML5. Use CSS instead. Defines teletype text.
U
- HTML::u() — Method in class HTML
Defines some text that is unarticulated and styled differently from normal text.
- HTML::ul() — Method in class HTML
Defines an unordered list.
V
- HTML::validate() — Method in class HTML
Asserts that the passed HTML is valid.
- HTML::var() — Method in class HTML
Defines a variable.
- HTML::video() — Method in class HTML
Defines embedded video content.
W
- HTML::write() — Method in class HTML
Writes content to the HTML buffer.
- HTML::wbr() — Method in class HTML
Defines a possible line-break.
_
- HTML::__construct() — Method in class HTML
HTML constructor.
- HTML::__toString() — Method in class HTML
Returns the current HTML buffer.
- HTML::__call() — Method in class HTML
Makes HTML tags available as methods on the class.
- HTML::__callStatic() — Method in class HTML
Makes HTML tags available as static methods on the class.