Two HTML Tags to Create a Custom Border:
1.<fieldset></fieldset> and <legend></legend> tags.
<legend> tag provides a caption for the <fieldset> tag, creating the desired border effect.
Example:
<fieldset>
<legend>What is Lorem Ipsum?</legend>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived for five centuries, and also made the leap into electronic typesetting, essentially unchanged. Popularized in the 1960s with Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</fieldset>