]>
HyperText Markup Language Request For Comments FormatCisco Systems, Inc.jhildebr@cisco.comICANNpaul.hoffman@icann.orghtmlcssrfcIn order to meet the evolving needs of the Internet community, the
format for RFCs is changing from a plain-text, ASCII-only format to a
canonical XML format that will in turn be rendered into several
publication formats. This document defines the HTML format that will
be rendered for an RFC or Internet-Draft.As described in , the RFC
Series is changing. One of those changes includes the RFC Editor
publishing a non-canonical HTML version of RFCs.This document describes the HTML format that will be used as one of the
publication formats for the RFC Series. It defines a strict subset of
HTML appropriate for RFC Series documents. The visual layout of the
document will be defined through a cascading style sheet (CSS)
. The CSS will be included in the
HTML file but will be described in .The details (particularly any vocabularies) described in this document
are expected to change based on experience gained in implementing the
RFC production center's toolset. Revised documents will be published
capturing those changes as the toolset is completed. Other implementers
must not expect those changes to remain backwards-compatible with the
details described this document.This section lists the design requirements used to create the HTML
format described in this document. These requirements build on those
found in . Many of these requirements are
naturally fulfilled by using the output of the preparation tool
.The HTML has to render correctly on a list of browser versions that
the RFC Editor will keep up to date outside of this document.The format will consist of a subset of HTML deemed to be widely
implemented by common browsers at the time the specification is
created, likely to continue to be widely-implemented, and unlikely to
cause security issues. This will maximize the chances that future HTML
renderers (such as new web browsers) will continue to produce readable
text from the HTML format without the format needing to be changed
frequently.These requirements are expected to change in the future to reflect the
expectation that HTML rendering will be required for current versions of
browsers and platforms, while ideally continuing to render correctly on
recent versions of those browsers.The HTML documents from the RFC Editor or Internet-Drafts directory
may be re-rendered from the canonical XML format in
the future to ensure the ongoing readability of the documents. The
intent is that any re-rendering would be due to exceptional
circumstances rather than for minor annoyances.The HTML must display adequately in at least one text-based browser.
Some consumers of the RFC series can only access the series on
text-based terminals.The HTML document will be self-contained, without requiring external
files for images, CSS, JavaScript, or the like. This will allow
the HTML file to be moved over various non-HTTP transports (such as
e-mail, FTP, and rsync) without breakage.JavaScript will be supported on a limited basis. It will not be
permitted to overwrite or change any text present in the rendered html.
It may, on a limited basis, add additional text that provides
post-publication metadata or pointers if warranted. All such text will
be clearly marked as additional.The HTML document will allow easy local override of the default CSS
formatting. This will allow users who have a different visual style
that they prefer to make RFCs display with that style without having to
alter the contents of the HTML document. This might also be valuable
for allowing people with specific accessibility needs to use a
customized CSS.HTML tags in documents will rarely have attributes whose only purpose
is to affect the rendered styling, and those will only be used if it
would not be possible to specify that styling in CSS. No such attributes are known at this time.Both user-defined and auto-generated anchors must be supported and
linkable, with user-defined anchors appearing in an "id" attribute.
Auto-generated anchors will be generated for every heading, paragraph,
and so on, not just those that do not have user-defined anchors.
User-defined anchors may, and auto-generated anchors will, appear next to
paragraphs, figures, tables, blockquotes, and section titles.All section, subsections, figures, and paragraphs should have stable
numbered link anchors. Additionally, anchors expressed in the source
XML should be exposed as anchors in the HTML output as well.The HTML must make it easy to separate sections along with all of their
subsections into separate files. This will make creating EPUB
documents easier in the future.The HTML produced for Internet-Drafts will differ from that produced
by the RFC Editor due to differences in the output from the prep tool.The abstract must be marked up or tagged in a way that popular search
engines will extract it as a summary.Normative information must be easily accessible to the following
consumers:
People with impaired vision, including those that use large fonts
and those that use screen readersPeople with difficulty distinguishing between colorsPeople who use devices with small screens, such as cell phonesSpecific instances where goals for accessibility are important in the
design choices of the format have been called out in the text.NOTE: designing for these consumers does not preclude the use of
features they cannot use, but does require that key semantic data is not
lost when read using the tools and settings that are required by a given
constituency.The RFC Editor will periodically determine which version of the
HTML specification will be referenced for tools generating the
format defined in this document. The starting version will be that
defined in , commonly known as
"HTML5". Although the HTML specification mandates several of the syntax
and structure rules described in this document, they are called out here
for emphasis.The processor emitting HTML from the XML source will follow these
rules:The HTML output is encoded as UTF-8, as specified in
.The document is valid HTML.Double quotes (U+0022 QUOTATION MARK: ") are used to quote attribute
values unless the HTML specification forbids quoting a particular
attribute.Each logical line is terminated solely with a \n (U+000A: LINE
FEED), otherwise known as "Unix-style" line endings.Code points below (U+0020: SPACE) or character entity references
that generate them (e.g. 	), other than (U+000A: LINE FEED)
may not be used. NOTE: this rule explicitly forbids \t (U+0009:
CHARACTER TABULATION), \f (U+000C: FORM FEED), and \r (U+000D:
CARRIAGE RETURN) from appearing in the HTML output.Comments in the source XML, if any, will not be copied into
the HTML.The HTML output will be pretty-printed, using whatever
consistent rules are deemed best by the developers of the HTML
production tools.NOTE: none of these rules affect the rendered output of the HTML, but
are intended to increase the chance that text comparison tools
(e.g., "diff") that operate on the HTML output easier to write.This section lists items that are common across multiple parts of the HTML
document.HTML elements that are generated from XML elements that include
an "anchor" attribute will use the value of the "anchor" attribute
as the value of the "id" attribute of the corresponding HTML element.
The prep tool produces XML with "anchor" attributes in all elements that need them.
Some HTML constructs (such as
<section>) will use
multiple instances of these identifiers.Each paragraph, artwork, or sourcecode segment outside of a
<figure> or <table> element will be appended with a
space and a "pilcrow" (U+00B6: PILCROW SIGN), otherwise known as a
"paragraph sign". For the purposes of clarity in ASCII renderings
of this document, in this document pilcrows are rendered as
"¶". The pilcrow will be linked to the "id" attribute on the
XML entity to which it is associated using an <a> element of
class "pilcrow". For example:
]]>
The pilcrow will normally be invisible unless the element it is
attached to is moused over. The pilcrow will be surrounded by a
link that points to the element it is attached to.Pilcrows are never included inside a <table> or
<figure> element, since the figure number or table number
serves as an adequate link target.Elements that might otherwise contain a pilcrow do not get marked
with a pilcrow if they contain one or more child elements that are
marked with a pilcrow. For example:The front matter of the HTML format contains processing information,
metadata of various types, and styling information that applies to the
document as a whole. This section describes HTML that is not
necessarily a direct transform from the XML format. For more details
on each of the tags that generate content in this section,
see .The DOCTYPE of the document is "html", which declares that the
document is compliant with HTML5. The document will start with
exactly this string:The root element of the document is <html>. This element
includes a lang attribute, whose value is a
language tag describing the natural language of the document. The
language tag to be included is "en". The class of the <html>
element will be copied verbatim from the XML <rfc> element's
<front> element's <seriesInfo> element's "name"
attributes (separated by spaces), allowing CSS to style RFCs and
Internet-Drafts differently from one another (if needed):The root <html> will contain a <head> element that
contains the following elements, as needed.In order to be correctly processed by browsers that load the HTML
using a mechanism that does not provide a valid content-type
or charset (such as from a local file system using a "file:" URL),
the HTML <head> element contains a <meta> element,
with charset attribute with value "utf-8":The contents of the <title> element from the XML source
will be placed inside an HTML <title> element in the
header.The following <meta> elements will be included:
author - one each for the each of the "fullname"s and "asciiFullname"s of
all of the <author>s from the <front> of the XML
sourcedescription - the <abstract> from the XML sourcegenerator - the name and version number of the software used
to create the HTMLkeywords - comma-separated <keyword>s from the XML
source
For example:
Note: the HTML <meta> tag does not contain a closing
slash.The <head> element contains a <link> tag, with "rel"
attribute of "alternate", "type" attribute of "application/rfc+xml",
and "href" attribute pointing to the prepared XML source that was
used to generate this document.The <head> element contains a <link> tag, with "rel"
attribute of "license" and "href" attribute pointing to the an
appropriate copyright license for the document.The <head> element contains an embedded CSS style sheet in a
<style> element. The styles in the style sheet are to be set
consistently between documents by the RFC Editor, according to the
best practices of the day.To ensure consistent formatting, individual style attributes should
not be used in the main portion of the document.Different readers of a specification will desire different
formatting when reading the HTML versions of RFCs. To facilitate
this, the <head> element also includes a <link> to a
style sheet in the same directory as the HTML file, named
"rfc-local.css". Any formatting in the linked style sheet will
override the formatting in the included style sheet. For example:Each <link> element from the XML source is copied into
the HTML header. Note: the HTML <link> element does not
include a closing slash.In order to simplify printing by HTML renderers that implement
, a hidden HTML
<table> tag of class "ears" is added at the beginning of the HTML <body>
tag, containing HTML <thead> and <tfoot> tags, each of
which contains an HTML <tr> tag, which contains three HTML
<td> tags with class "left", "center", and "right",
respectively.The <thead> corresponds to the top of the page, the
<tfoot> to the bottom. The string "[Page]" can be used
as a placeholder for the page number. In practice, this must
always be in the <tfoot>'s right <td>, and no control
of the page number formatting is implied.Information about the document as a whole will appear as the first child of the
HTML <body> element, embedded in an HTML <dl> element
with id="identifiers". The defined terms in the definition list
are "Workgroup:", "Series:", "Status:", "Published:", and "Author:"
or "Authors:" (as appropriate). For example:The table of contents will follow the boilerplate if the XML's <rfc>
element's tocInclude attribute has the value "true". An HTML <h2>
heading containing the text "Table of Contents" will be followed by a
<nav> element that contains a <ul> element for each depth
of the section hierarchy. Each section will be represented by a
<li> element containing links by the section number (from the "pn"
attribute) and by the name (from the "slugifiedName" attribute of the
<name> child element). Each <nav>, <ul>, and
<li> element will have the class "toc".For example:The main body of the HTML document is processed according to the rules in
.The back matter of the HTML document includes an index (if generated),
information about the authors, and further information about the
document itself.The index will be produced at the end of the document (before the
author information) if and only if the XML document's <rfc>
element has an indexInclude attribute with the value "true", and there
is one or more <iref> elements in the document.The index section will start with an <h2> heading containing
the text "Index", followed by links to each of the lettered
portions of the index. Links are not generated for letters that
do not occur as the first letter of an index item.For example:This section describes how each of the XML elements from
is rendered to HTML.
Many of the descriptions have examples to clarify how elements will be rendered.The abstract is rendered similarly to a <section> with anchor="abstract" and
<name>Abstract</name>, but without a section number.
]]>
This element is used in
. It is rendered
as an HTML <address> tag of class "vcard". If none of the
descendant XML elements has an "ascii" attribute, the <address>
HTML tag includes the HTML rendering of each of the descendant
XML elements. Otherwise, the <address> HTML tag includes
an HTML <div> tag of class "ascii" (containing the HTML
rendering of the ASCII variants of each of the descendant XML
elements), an HTML <div> tag of class "alternative-contact",
(containing the text "Alternate contact information:"), and
an HTML <div> tag of class "non-ascii" (containing the HTML
rendering of the non-ASCII variants of each of the descendant XML
elements).
Note: The following example shows some ASCII equivalents that are
the same as their nominal equivalents for clarity; normally the ASCII
equivalents would not be included for these cases.
Joe Hildebrand
(editor)
Cisco Systems, Inc.
Alternate contact information:
Joe Hildebrand
(editor)
Cisco Systems, Inc.
]]>This element is rendered as the text ", " (a comma and a space)
followed by a span of class "annotation" at the end
of a <reference> element, the span
containing appropriately-transformed elements from the children of
the <annotation> tag.Some thing.]]>Not currently rendered to HTML.Artwork can either consist of inline text or SVG. If the artwork is
not inside a <figure> element, a
pilcrow is included. Inside a
<figure> element, the figure title serves the purpose of the
pilcrow. If the "align" attribute has the value "right", the CSS class
"alignRight" will be added. If the "align" attribute has the value
"center", the CSS class "alignCenter" will be added.Text artwork is rendered inside an HTML <pre> element, which
is contained by a <div> element for consistency with SVG
artwork. Note that CDATA blocks are not a part of HTML,
so all <, >, and & must be escaped as <, >,
and &, respectively.The <div> element will have CSS classes of "artwork",
"art-text", and "art-" prepended to the value of the <artwork>
element's "type" attribute, if it exists.
¶
]]>SVG artwork will be included inline. The SVG is wrapped in a
<div> element with CSS classes "artwork" and "art-svg".If the SVG artwork element is a child of <figure> and the
artwork is specified as align='right', an
empty HTML <span> element is added directly after the
<svg> element, in order to get right alignment work correctly
in HTML rendering engines that do not support the flex-box
model.Note: the alt attribute of <artwork> is not currently used
for SVG; instead, the <title> and <desc> tags are used
in the SVG.¶
]]>Other artwork will have a src attribute uses the "data" URI scheme
defined in . Such artwork is rendered in an
HTML <img> element. Note: the HTML <img> element does
not have a closing slash.Note: such images are not yet allowed by the RFC Series Editor,
even though the format supports them. The RFC Series Editor may
allow a limited set of "data:" mediatypes for artwork in the
future.¶
]]>This element is rendered as an HTML <aside> element, with
all child content appropriately transformed.
]]>The <author> element is used in several places in the output.
Different rendering is used for each.As seen in the
at the beginning of the HTML, each document author is rendered
as an HTML <div> tag of class "author".Inside the <div class="author"> HTML tag, the author's
initials and surname (or the fullname, if it exists and the others
do not) will be rendered in an HTML <div>
tag of class "author-name". If the <author>
contains "asciiInitials" and "asciiSurname" attributes, or contains
as "asciiFullname" attribute, the author's name is rendered twice,
with the first being the non-ASCII version, wrapped in an HTML
<span> tag of class "non-ascii", followed by the ASCII
version wrapped in an HTML <span> tag of class "ascii",
wrapped in parentheses. If the <author> has a "role"
attribute of "editor", the <div class="author-name"> will
also contain the text ", " (comma, space), followed by an HTML
<span> tag of class "editor", which contains the text "Ed.".If the <author> element contains an
element, it is also rendered inside the <div class="author">
HTML tag.
H. Flanagan,
Ed.
Test Org
Hildebrand
(HILDEBRAND)
Test Org
(TEST ORG)
]]>As seen in ,
at the end of the HTML, each document author is rendered into an
HTML <address> element with the CSS class "vcard".The HTML <address> element will contain an HTML <div>
with CSS class "nameRole". That div will contain an HTML <span>
element with CSS class "fn" containing the value of the "fullname"
attribute of the <author> XML element, and an HTML <span>
element with CSS class "role" containing the value of the "role"
attribute of the <author> XML element (if there is a role).
Parentheses will surround the <span class="role">, if it
exists.
Joe Hildebrand
(editor)
...]]>After the name, the
and
child elements of
the author are rendered inside the HTML <address> tag.When the <author> element or any of its descendant elements
has any attribute that start with "ascii", all of the author
information is displayed twice. The first version is wrapped in
an HTML <div> tag with class "ascii"; this version prefers
the ASCII version of information, such as "asciiFullname", but falls
back on the non-ASCII version if the ASCII version doesn't exist.
The second version is wrapped in an HTML <div> tag with class
"non-ascii"; this version prefers the non-ASCII version of
information, such as "fullname", but falls back on the ASCII
version if the non-ASCII version does not exist. Between these
two HTML <div>s, a third <div> is inserted, with class
"alternative-contact", containing the text "Alternate contact
information:".
The ASCII name
Alternate contact information:
The non-ASCII name
(editor)
]]>
In the output generated from a reference element, author tags are
rendered inside an HTML <span> element with CSS class
"refAuthor". See , section 4.8.6.2 for
which sections of the author name to use.Flanagan, H. and
N. Brownlee]]>If there is exactly one
child, renders
that child similarly to a .
If there are more than one
child, renders
as a whose name is
"References", containing a
for each .After any sections,
renders each child
as appendices.
]]>
This element marks up words like MUST and SHOULD with an HTML
<span> element with the CSS class "bcp14".MUST be joking.]]>This element renders as the similar HTML <blockquote>
element. If there is a "cite" attribute, it is copied
to the HTML cite attribute. If there is a "quoteFrom" attribute,
it is placed inside a <cite> element at the end of the quote,
with an <a> element surrounding it (if there is a "cite"
attribute), linking to the "cite" URL.If the blockquote does not contain another element that gets a
pilcrow, a pilcrow is added.Note that the "—" at the beginning of the <cite> element
should be a proper emdash, which is difficult to show in the
current format of this format.
Four score and seven years ago our fathers
brought forth on this continent, a new nation, conceived
in Liberty, and dedicated to the proposition that all men
are created equal.
¶
— Abraham Lincoln
]]>The IPR boilerplate for the document appears directly after the
Abstract. The children of the input <boilerplate> element
are treated similarly to unnumbered sections.
This Internet-Draft is submitted in full
conformance with the provisions of BCP 78 and BCP 79.
¶
...]]>This element is directly rendered as its HTML counterpart. Note:
in HTML, <br> does not have a closing slash.This element is rendered as a <span> element with CSS
class "locality".Guilford]]>This element is rendered as a <span> element with CSS
class "postal-code".GU16 7HF]]>This element is rendered as a <div> element with CSS
class "country-name".England
]]>This element is rendered as a <span> element with CSS
class "cref". Any anchor is copied to the id attribute. If there is
a source given, it is contained inside the cref span with another
span of class "crefSource".Just a brief comment
about something that we need to remember later.
--life]]>This element is rendered as the HTML <time> element. If the
"year", "month", or "day" attribute is included on the XML element,
an appropriate "datetime" element will be generated in HTML.If this date is a child of the document's <front> element, it
gets the CSS class "published".If this date is inside a <reference> element, it gets the
CSS class "refDate".October 2014]]>This element is directly rendered as its HTML counterpart.Does not affect the HTML output, but used in the generation of
,
,
, and
.This element is directly rendered as its HTML counterpart.If the hanging attribute is "false", add the "dlParallel" class, else
add the "dlHanging" class.If the spacing attribute is "compact", add the "dlCompact" class.This element is directly rendered as its HTML counterpart.This element is directly rendered as its HTML counterpart.As shown in this element is
rendered as an HTML <div> containing the string "Email:" and
an HTML <a> element, with "href" attribute set to the
equivalent "mailto:" URI, CSS class of "email", and the contents set
to the email address. If this is the version of the address with
ASCII, the "ascii" attribute is preferred to the element text.Email:joe@example.com
]]>This element is rendered as HTML <a> element, with the "href"
attribute set to the value of the "target" attribute, and the CSS
class of "eref".the text]]>This element renders as the HTML <figure> element, containing
the artwork or sourcecode indicated and an HTML <figcaption>
element. The <figcaption> will contain an <a> element
around the figure number. It will also
contain another <a> element with CSS class "selfRef" around the
figure name, if a name was given.
...
Figure 1.
It figures
]]>
See .This element is rendered as an empty <> tag of class iref, with
an id consisting of the <iref> element's irefid:]]>Each of these elements renders its text into the <meta>
keywords in the document's header, separated by commas.]]>This element is rendered as its HTML counterpart. However if there
is no contained element that had a
pilcrow attached, a pilcrow
is added.Item ¶]]>This element is rendered as its HTML counterpart, in the HTML
header.This element does not add any direct output to HTML.This element is never rendered directly, but instead when
considering its parent element, such as
,
,
, or
.This element is rendered similarly to a
, but without
a section number, and with the CSS class of "note". If the
"removeInRFC" attribute is set to "yes", the generated <div>
will also include the CSS class "rfcEditorRemove".
]]>
The output created from an <ol> element depends upon the style
attribute.If the spacing attribute has the value "compact", a CSS class of
"olCompact" will be added.The group attribute is not copied; the input XML should have start
values added by a prep tool for all grouped <ol> elements.If the style attribute includes the character "%", the output is
a <dl> tag with the class "olPercent". Each contained li
is emitted as a <dt>/<dd> pair, with the generated
label in the <dt> and the contents of the li in the
<dd>.
Requirement xviii:
Wheels on a big rig
]]>For all other styles, an <ol> tag is emitted, with any
style attribute turned into the equivalent HTML type attribute.
Wheels on a big rig
]]>As shown in this element is
rendered as an HTML <div> tag with CSS class "org".If the element contains the "ascii" attribute, the organization name
is rendered twice, once with the non-ASCII version wrapped in an
HTML <span> tag of class "non-ascii", then as the ASCII version
wrapped in an HTML <span> tag of class "ascii" wrapped in
parentheses.Test Org
(TEST ORG)
]]>As shown in this element is
rendered as an HTML <div> containing the string "Phone:" (wrapped
in a span), an HTML <a> tag with CSS class "tel" containing the
phone number (and an href with a corresponding "tel:" URI) and an
HTML <span> with CSS class "type" containing the string
"VOICE".Phone:+1-720-555-1212VOICE
]]>This element renders as an HTML <div> with CSS class
"adr", unless it contains one or more <postalLine> child
elements; in which case it renders as an HTML <pre> with CSS
class "label".When there is no <postalLine> child, the following child
elements are rendered into the HTML:
Each <street> is renderedA <div> that includes:
The rendering of all <city> elementsA comma and a space: ", "The rendering of all <region> elementsWhitespaceThe rendering of all <code> elementsThe rendering of all <country> elements
1 Main Street
Suite 1
Denver,
CO80212
US
]]>This element renders as the text contained by the element, followed
by a newline. However, the last <postalLine> in a given
<postal> should not be followed by a newline. For example:In care of:Computer Sciences Division
]]>Would be rendered as:In care of:
Computer Sciences Division]]>This element renders as an HTML <span> with CSS class
"refcontent".Self-published pamphlet]]>If the parent of this element is not a <referencegroup>, this
element will render as a <dt> <dd> pair, with the
defined term being the reference "anchor" attribute surrounded by
square brackets, and the definition including the correct set of
bibliographic information as specified by .
The <dt> element will have an "id" attribute of the reference
anchor.
[RFC5646]
Phillips, A.andM. Davis"Tags for Identifying Languages",
...
]]>If this element is the child of a <referencegroup>, this
element renders as a <div> of class "refInstance", whose
"id" attribute is the value of the source element's "anchor"
attribute.
...
]]>A <referencegroup> is translated into a <dt> <dd>
pair, with the defined term being the referencegroup "anchor"
attribute surrounded by square brackets, and the definition containing
the translated output of all of the child <reference>
elements.[STD69]
Hollenbeck, S.
...
Hollenbeck, S.
...
...
]]>If there is at exactly one <references> element, a
section is added to the document, continuing with the next
section number after the last top-level <section> in
<middle>. The <name> element of the <references>
element is used as the section name.
...
]]>
If there is more than one <references> element, an HTML
<section> element is created to contain a sub-section for
each of the <references>. The section number will be the next
section number after the last top-level <section> in
<middle>. The name of this section will
be "References", and it's "id" attribute will be "n-references".
...
]]>
This element is rendered as a <span> tag with CSS
class "region".Colorado]]>This element is rendered as an HTML <a> tag with CSS class
"relref" and "href" attribute of the "derivedLink" attribute of the
element. Different values of the "displayFormat" attribute cause
the text inside that HTML <a> tag to change, as well as extra
text to be generated. Some values of the "displayFormat"
attribute also cause another HTML <a> tag to be rendered
with CSS class "xref" and an "href" of "#" and the "target" attribute
(modified by any applicable <displayreference> XML element)
and text inside of the "target" attribute
(modified by any applicable <displayreference> XML element).
When used, this <a class='xref'> HTML tag is always surrounded
by square brackets, like "[<a class='xref' href='#foo'>foo</a>]".The output is an <a class='relref'> HTML tag, with
contents of "Section " and the value of the "section" attribute.
This is followed by the word "of" (surrounded by whitespace). This
is followed by the <a class='xref'> HTML tag (surrounded by
square brackets).For example, with an input of:
See <relref section="2.3" target="RFC7878" displayFormat="of"
derivedLink="http://www.rfc-editor.org/info/rfc7878#s-2.3"/>
for an overview.The HTML generated will be:
See <a class="relref"
href="http://www.rfc-editor.org/info/rfc7878#s-2.3">Section
2.3</a> of [<a class="xref" href="#RFC7878">RFC7878</a>]
for an overview.The output is an <a class='xref'> HTML tag (wrapped by
square brackets), followed by a comma (","), followed by
whitespace, followed by an <a class='relref'> HTML tag, with
contents of "Section " and the value of the "section"
attribute.For example, with an input of:
See <relref section="2.3" target="RFC7878" displayFormat="comma"
derivedLink="http://www.rfc-editor.org/info/rfc7878#s-2.3"/>,
for an overview.The HTML generated will be:RFC7878], Section 2.3,
for an overview.]]>The output is an <a> element with "href" attribute whose value
is the value of the "target" attribute prepended by "#", and whose
content is the value of the "target" attribute; the entire element
is wrapped in square brackets. This is followed by whitespace.
This is followed by an <a> element whose "href" attribute is
the value of the "derivedLink" attribute and whose content is the
value of the "derivedRemoteContent" attribute; the entire element is
wrapped in parentheses.For example, if Section 2.3 of RFC 7878 has the title "Protocol
Overview", for an input of:
See <relref section="2.3" target="RFC7878" displayFormat="parens"
derivedLink="http://www.rfc-editor.org/info/rfc7878#s-2.3"
derivedRemoteContent="Section 2.3"/> for an overview.The HTML generated will be:RFC7878]
(Section
2.3) for an overview.]]>The output is an <a> element whose "href" attribute is
the value of the "derivedLink" attribute and whose content is the
value of the "derivedRemoteContent" attribute.For this input:
See <relref section="2.3" target="RFC7878" displayFormat="bare"
derivedLink="http://www.rfc-editor.org/info/rfc7878#s-2.3"
derivedRemoteContent="Section 2.3"/> and ...The HTML generated will be:Section
2.3 and ...]]>Various attributes of this element are represented in different parts of the HTML
document.This element is rendered as an HTML <section> element,
containing an appropriate level HTML heading element
(<h2>-<h6>). That heading element contains an <a>
element around the part number (pn), if applicable (for instance,
<abstract> does not get a section number). Another <a>
element is included with the section's name.
]]>
This element is rendered in an HTML <span> element with CSS
name "seriesInfo".RFC 5646]]>This element is rendered in an HTML <pre> with a CSS class of
"sourcecode". Note that CDATA blocks do not work consistently in
HTML, so all <, >, and & must be escaped as <,
>, and &, respectively. If the input XML has a "type"
attribute, another CSS class of "lang-" and the type is added.If the sourcecode is not inside a <figure> element, a
pilcrow is included. Inside a
<figure> element, the figure title serves the purpose of the
pilcrow.
#include <stdio.h>
int main(void)
{
printf("hello, world\n");
return 0;
}
]]>This element renders as an HTML <div> with CSS class
"street-address".1899 Wynkoop St, Suite 600]]>This element is directly rendered as its HTML counterpart.This element is directly rendered as its HTML counterpart.This element is directly rendered as its HTML counterpart.This element is rendered as an HTML <p> element. A
pilcrow is included.A paragraph.
¶]]>This element is directly rendered as its HTML counterpart.This element is directly rendered as its HTML counterpart.This element is directly rendered as its HTML counterpart.This element is directly rendered as its HTML counterpart.This element is directly rendered as its HTML counterpart.This element is directly rendered as its HTML counterpart.The title of the document appears in an <title> element in the
<head> element, as shown in .The title also appears in an <h1> element, and follows directly
after the Document Information. The <h1> element has an id
attribute with value "title".HyperText Markup Language Request For
Comments Format]]>Inside a reference, the title is rendered as an HTML <span>
tag with CSS class "refTitle". The text is surrounded by quotes
inside the <span>."Tags for Identifying Languages"]]>This element is directly rendered as its HTML counterpart.This element is rendered as an HTML <code> element.This element is directly rendered as its HTML counterpart. If the
"spacing" attribute has the value "compact", a CSS class of "ulCompact"
will be added. If the "empty" attribute has the value "true", a CSS
class of "ulEmpty" will be added.As shown in this element is
rendered as an HTML <div> containing the string "URI:" and
an HTML <a> element, with "href" attribute set to the
linked URI, CSS class of "url" [sic], and the contents
set to the linked URI.URI:
http://www.example.com
]]>This element does not add any direct output to HTML.This element is rendered as an HTML <a> element containing an
appropriate local link as the "href" attribute. The value of the
"href" attribute is taken from the "target" attribute,
prepended by "#". The <a> element generated will have
class "xref". The contents of the <a> element are
the value of the "derivedContent" attribute. If the "format"
attribute has the value "default", and the "target" attribute points
to a <reference> or <referencegroup> element, then
the generated <a> element is surrounded by square brackets
in the output.Table 2]]>orRFC1234]]]>This element is rendered as part of the <artwork> element.
The "xmlns='http://www.w3.org/2000/svg'" namespace declaration should
be included, and the SVG should be serialized as well-formed XML,
even for tags that would otherwise not need closing in HTML5.This document contains no actions for IANASince RFCs are sometimes exchanged outside the normal Web sandboxing mechanism
(such as using the "rsync" program to a mirror site) then loaded from a local file, more care must be taken
with the HTML than is ordinary on the web. Heather Flanangan was an early co-author of this document and helped its formation.
The authors gratefully acknowledge the contributions of: Patrick Linskey, and the
members of the RFC Format Design Team (Nevil Brownlee, Sandy Ginoza, Tony Hansen,
Ted Lemon, Julian Reschke, Adam Roach, Alice Russo, Robert Sparks,
Dave Thaler).
&RFC2397;
&RFC3629;
&RFC5646;
&RFC7322;
&I-D.iab-rfc-css;
&I-D.iab-xml2rfc;
&W3C.REC-html5-20141028;
Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) SpecificationCSS Paged Media Module Level 3hCard 1.0
&RFC6949;
&I-D.iab-rfcv3-preptool;
&I-D.iab-rfc-framework;