Learn R Programming

html5 (version 1.0.2)

Creates Valid HTML5 Strings

Description

Generates valid HTML tag strings for HTML5 elements documented by Mozilla. Attributes are passed as named lists, with names being the attribute name and values being the attribute value. Attribute values are automatically double-quoted. To declare a DOCTYPE, wrap html() with function doctype(). Mozilla's documentation for HTML5 is available here: . Elements marked as obsolete are not included.

Copy Link

Version

Install

install.packages('html5')

Monthly Downloads

417

Version

1.0.2

License

GPL (>= 2)

Maintainer

Last Published

October 17th, 2022

Functions in html5 (1.0.2)

abbr

Generate the <abbr> HTML tag.
a

Generate the <a> HTML tag.
attr_helper

Helper function to generate HTML5 attribute strings
audio

Generate the <audio> HTML tag.
article

Generate the <article> HTML tag.
b

Generate the <b> HTML tag.
br

Generate the <br> HTML tag.
base

Generate the <base> HTML tag.
boolean_attributes

Vector of boolean attributes
button

Generate the <button> HTML tag.
body

Generate the <body> HTML tag.
bdi

Generate the <bdi> HTML tag.
bdo

Generate the <bdo> HTML tag.
caption

Generate the <caption> HTML tag.
blockquote

Generate the <blockquote> HTML tag.
canvas

Generate the <canvas> HTML tag.
content

Generate the <content> HTML tag.
code

Generate the <code> HTML tag.
colgroup

Generate the <colgroup> HTML tag.
datalist

Generate the <datalist> HTML tag.
cite

Generate the <cite> HTML tag.
col

Generate the <col> HTML tag.
dd

Generate the <dd> HTML tag.
data

Generate the <data> HTML tag.
content_indenter

Add new lines and tabs to format HTML content.
del

Generate the <del> HTML tag.
embed

Generate the <embed> HTML tag.
em

Generate the <em> HTML tag.
details

Generate the <details> HTML tag.
dt

Generate the <dt> HTML tag.
dfn

Generate the <dfn> HTML tag.
empty_tag_helper

Helper function to generate HTML5 strings without end tags
dialog

Generate the <dialog> HTML tag.
dl

Generate the <dl> HTML tag.
doctype

Generate HTML document string with properly declared DOCTYPE.
div

Generate the <div> HTML tag.
h3

Generate the <h3> HTML tag.
figure

Generate the <figure> HTML tag.
form

Generate the <form> HTML tag.
footer

Generate the <footer> HTML tag.
fieldset

Generate the <fieldset> HTML tag.
h2

Generate the <h2> HTML tag.
h1

Generate the <h1> HTML tag.
formatted_tag_helper

Helper function to generate HTML5 strings formatted with new lines and tabs
figcaption

Generate the <figcaption> HTML tag.
hr

Generate the <hr> HTML tag.
h4

Generate the <h4> HTML tag.
html

Generate the <html> HTML tag.
html5_vars

Environment to set formatted to TRUE/FALSE
i

Generate the <i> HTML tag.
head

Generate the <head> HTML tag.
header

Generate the <header> HTML tag.
img

Generate the <img> HTML tag.
iframe

Generate the <iframe> HTML tag.
h6

Generate the <h6> HTML tag.
h5

Generate the <h5> HTML tag.
label

Generate the <label> HTML tag.
ins

Generate the <ins> HTML tag.
input

Generate the <input> HTML tag.
kbd

Generate the <kbd> HTML tag.
legend

Generate the <legend> HTML tag.
li

Generate the <li> HTML tag.
keygen

Generate the <keygen> HTML tag.
link

Generate the <link> HTML tag.
map

Generate the <map> HTML tag.
main

Generate the <main> HTML tag.
meta

Generate the <meta> HTML tag.
meter

Generate the <meter> HTML tag.
menuitem

Generate the <menuitem> HTML tag.
nav

Generate the <nav> HTML tag.
menu

Generate the <menu> HTML tag.
mark

Generate the <mark> HTML tag.
object

Generate the <object> HTML tag.
noscript

Generate the <noscript> HTML tag.
ol

Generate the <ol> HTML tag.
optgroup

Generate the <optgroup> HTML tag.
output

Generate the <output> HTML tag.
option

Generate the <option> HTML tag.
pre

Generate the <pre> HTML tag.
picture

Generate the <picture> HTML tag.
param

Generate the <param> HTML tag.
p

Generate the <p> HTML tag.
rb

Generate the <rb> HTML tag.
ruby

Generate the <ruby> HTML tag.
rp

Generate the <rp> HTML tag.
script

Generate the <script> HTML tag.
samp

Generate the <samp> HTML tag.
s

Generate the <s> HTML tag.
select

Generate the <select> HTML tag.
section

Generate the <section> HTML tag.
rt

Generate the <rt> HTML tag.
q

Generate the <q> HTML tag.
progress

Generate the <progress> HTML tag.
rtc

Generate the <rtc> HTML tag.
style

Generate the <style> HTML tag.
sub

Generate the <sub> HTML tag.
summary

Generate the <summary> HTML tag.
slot

Generate the <slot> HTML tag.
shadow

Generate the <shadow> HTML tag.
small

Generate the <small> HTML tag.
sup

Generate the <sup> HTML tag.
table

Generate the <table> HTML tag.
tag_helper

Helper function to generate HTML5 strings with end tags
span

Generate the <span> HTML tag.
source

Generate the <source> HTML tag.
strong

Generate the <strong> HTML tag.
tbody

Generate the <tbody> HTML tag.
td

Generate the <td> HTML tag.
tfoot

Generate the <tfoot> HTML tag.
template

Generate the <template> HTML tag.
thead

Generate the <thead> HTML tag.
time

Generate the <time> HTML tag.
tr

Generate the <tr> HTML tag.
title

Generate the <title> HTML tag.
video

Generate the <video> HTML tag.
var

Generate the <var> HTML tag.
th

Generate the <th> HTML tag.
textarea

Generate the <textarea> HTML tag.
tt

Generate the <tt> HTML tag.
track

Generate the <track> HTML tag.
u

Generate the <u> HTML tag.
wbr

Generate the <wbr> HTML tag.
ul

Generate the <ul> HTML tag.
area

Generate the <area> HTML tag.
aside

Generate the <aside> HTML tag.
applet

Generate the <applet> HTML tag.
address

Generate the <address> HTML tag.