Module elt

Source
Expand description

Common HTML elements

Note that you may create your own element with Element::new or Element::new_void

It is also possible to inline raw HTML with raw and raw_unsafe

Functions§

a
<a>
article
<article>
body
<body>
br
<br>
button
<button>
div
<div>
fieldset
<fieldset>
footer
<footer>
form
<form>
h1
<h1>
h2
<h2>
h3
<h3>
h4
<h4>
h5
<h5>
h6
<h6>
head
<head>
header
<header>
hgroup
<hgroup>
hr
<hr>
img
<img>
input
<input>
label
<label>
legend
<legend>
li
<li>
link
<link>
link_stylesheet
<link rel="stylesheet" href="{url}">
main
<main>
meta
<meta>
meta_charset_utf8
<meta charset="UFT-8">
meta_charset_utf_8Deprecated
<meta charset="UFT-8">
meta_color_scheme
`<meta name=“color-scheme content=”{scheme}“>
meta_viewport
<meta name="viewport" content="width=device-width, initial-scale=1.0">
none
Renders nothing. Useful fo conditional rendering.
ol
<ol>
option
<option>
p
<p>
raw
Inline raw HTML without escaping
raw_unsafe
Inline raw HTML without escaping
script
<script>
script_empty
<script>
section
<section>
select
<select>
small
<small>
span
<span>
table
<table>
tbody
<tbody>
td
<td>
text
HTML escaped text
textarea
<textarea>
tfoot
<tfoot>
th
<th>
thead
<thead>
title
<title>
tr
<tr>
ul
<ul>