Typed HyperText Markup Language
You can add types to the HyperText Markup Language.
Types
To declare two types, they must be separated by a period and a space.
Typed for values
-
All types of JavaScript.
- boolean ─ Example: true
- number ─ Example: 2332
- string ─ Example: "Hello world!"
-
Others
- readonly ─ Values cannot be changed.
- uint ─ Integer numbers.
Typed for attributes
- Attributes
- static_attr ─ No attribute can be modified.
- static_class ─ The class attribute cannot be modified.
- static_id ─ The id attribute cannot be modified.
Examples
hi
BEee
Lmao
"><body>
<h1 typed="number"> 230 h1>
<p typed="string"> hi p>
<h3 id="Be" typed="static_id, string"> BEee h3>
<p typed="readonly">Lmaop>
body>
Future plans
[ x ] Interfaces for the divs. You can give an idea of how it could be, this will NOT be like that.
Carlos
description....23232dadasd
<div typed="User">
<h4>Carlosh4>
<p>description....23232dadasdp>
div>