References

Collection of references for web development.

HTML legend tag

Description

The HTML <legend> element represents a title or caption for describing its parent <fieldset> contents.

Example

<fieldset>
	<legend>Contact Us</legend>
	<form>
		<input type="email" name="email" placeholder="Your Email Address">
		<br><br>
		<textarea name="comments" placeholder="Your comments..."></textarea>
		<br><br>
		<button>Submit</button>
	</form>	
</fieldset>