add legend html element

This commit is contained in:
Tim Goldbach 2022-10-20 10:54:25 +02:00
parent 5dc82b852f
commit ef61cafb15
2 changed files with 31 additions and 0 deletions

View file

@ -91,6 +91,10 @@
<a href='./lazy-loading/index.html'>
Lazy Loading</a> - Lazy Load html images natively
</li>
<li>
<a href="./legend/index.html">
Legend</a> - Represents a caption for the content of its parent element
</li>
<li>
<a href='./iframe/index.html'>
Iframe</a> - Embed YouTube Videos

27
legend/index.html Normal file
View file

@ -0,0 +1,27 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>HTML Tips and Tricks - Legend</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link href="https://fonts.googleapis.com/css2?family=Chilanka&display=swap" rel="stylesheet">
<link rel='stylesheet' type='text/css' media='screen' href='../main.css'>
</head>
<body>
<div class="demo">
<fieldset>
<legend>Choose your favorite language</legend>
<input type="radio" id="php" name="language" value="P">
<label for="php">Php</label><br>
<input type="radio" id="Go" name="language" value="G">
<label for="Go">Go</label><br>
<input type="radio" id="javascript" name="language" value="J" />
<label for="javascript">JavaScript</label>
</fieldset>
</div>
</body>
</html>