Data types in html5

What are data types in html.
I read here about it while surfing for it.
But, didn’t really got it.

It mentions that,

datatypes as microsyntaxes

I’m confused as to what to get as an extract from it.

A microsyntax basically refers to the rules for how a certain kind of value (eg. a colour, a date, a url) should be represented. For example, in the link you provided it shows the valid way to represent date values: ‘1996-12-19’ would be a valid date string, but ‘19th of December, 1996’ would not.

Likewise, there is a microsyntax that describes valid ways to represent colours.

2 Likes
color
date
datetime
datetime-local
email
month
number
range
search
tel
time
url
week

Yes, it’s a shame that the docs are so dry and robotic that they can’t even offer a simple example of how these might be used, or a link to some demos. I find it very frustrating.

1 Like