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_ 8 Deprecated <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>