CARVIEW |
Select Language
HTTP/2 301
server: GitHub.com
content-type: text/html
location: https://webplatform.github.io/docs/html/data_types/
access-control-allow-origin: *
expires: Wed, 15 Oct 2025 11:22:50 GMT
cache-control: max-age=600
x-proxy-cache: MISS
x-github-request-id: F79C:17272A:084E:097C:68EF81AB
accept-ranges: bytes
age: 0
date: Wed, 15 Oct 2025 11:12:50 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210049-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1760526770.993479,VS0,VE317
vary: Accept-Encoding
x-fastly-request-id: 71f59ce43bb16d7e5260ba91a4fc6d0dc7b8356f
content-length: 162
HTTP/2 200
server: GitHub.com
content-type: text/html; charset=utf-8
x-origin-cache: HIT
last-modified: Thu, 09 Jan 2020 08:57:10 GMT
access-control-allow-origin: *
etag: W/"5e16eae6-187a"
expires: Wed, 15 Oct 2025 11:22:50 GMT
cache-control: max-age=600
content-encoding: gzip
x-proxy-cache: MISS
x-github-request-id: 6A6D:36CB09:0804:092C:68EF81B1
accept-ranges: bytes
age: 0
date: Wed, 15 Oct 2025 11:12:50 GMT
via: 1.1 varnish
x-served-by: cache-bom-vanm7210049-BOM
x-cache: MISS
x-cache-hits: 0
x-timer: S1760526770.323864,VS0,VE293
vary: Accept-Encoding
x-fastly-request-id: edbb5dec4690f3eb943755fe048f0e4c21b149fa
content-length: 2176
data types · WebPlatform Docs
This page is Not Ready
Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.
data types
Summary
Data types are a way of configuring how a HTML element ( “HTML tag” ) should look or behave on a HTML document or a view in a Web Application. Data types define existing attributes associated with a HTML element. The “id” and “class” attribute doesn’t have predefined data types and is used by CSS stylesheets or for further enhancements through Javascript logic.
Usage
In HTML, the Data Types that are supported are used attributes values within an HTML element. They are used to describe
- Colors (basic ones are "red", "blue", etc…)
- Lengths
- Links and relationships
<!-- <element attribute="data type">...</element> -->
<a href="/docs/" target="_blank" class="linkStyle" id="linkAnchorOrUniqueStyle" >HTML Element hyperlink</a>