Architect's Log

I'm a Cloud Architect. I'm highly motivated to reduce toils with driving DevOps.

input要素(type属性 = color)

色を指定するための入力フィールドを表します。

使用例

<!DOCTYPE html>
<html lang="ja">
<head>
<title>Hello! HTML5></title>
<meta charset="UTF-8">
</head>
<body>
    <form action="hoge.cgi" method="post">
        <p>
            色:<input type="color" id="color" />
            <input type="submit" value="送信" />
        </p>
    </form>
</body>

レンダリング

初期表示

クリックでカラーピッカー表示

カラーピッカーの[その他]ボタンクリック

カラーピッカーから色を選択

#ff8888を直接入力