<!doctype html>
<head>
<title>basic Legend tag example</title>
<style>
legend {
background-color: #000;
color: #fff;
padding: 3px 6px;
}
.output {
font: 1rem 'Fira Sans', sans-serif;
}
input {
margin: .4rem;
}
</style>
</head>
<body>
<fieldset>
<legend>Choose your favorite Fruit</legend>
<input type="radio" id="mango" name="mango">
<label for="mango">Mango</label><br/>
<input type="radio" id="Pineapple" name="Pineapple">
<label for="Pineapple">Pineapple</label><br/>
<input type="radio" id="Kiwi" name="Kiwi">
<label for="Kiwi">Kiwi</label>
</fieldset>
</body>
</html>