Beispiel:HTML input-element sonstige-typen.html

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche
<!DOCTYPE html>
<html lang="de">
<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <link rel="stylesheet" media="screen" href="./Beispiel:SELFHTML-Beispiel-Grundlayout.css" />
  <title>sonstige input-Elemente</title>
  <style>
    body {
      margin: 2em;
    }
    form {
      width: 25em;
      margin-top: 2em;
    }
    input {
      margin: 0 0 1.5em .5em;
    }
    label { 
      float: left; 
      text-align: right; 
      width: 10em; 
    }
    label::after {
      content: ": ";
    }
  </style>
</head> 

<body>
  <h1>sonstige input-Elemente</h1>
  <form> 
    <label for="hidden">type = "hidden"</label>
    <input type="hidden" id="hidden">
    <br>
    <label for="file">type = "file"</label>
    <input type="file" id="file">
    <br>
    <label for="color">type = "color"</label>
    <input type="color" id="color">
  </form> 

</body>
</html>