I'm trying to insert some text in border but don't know how to do.
How can i put some text in middle of border.
Below is the screen-shot it should look like
For the four borders, we need four <fieldset> elements, each containing a <legend> element inside. We add the text that will appear at the borders inside the <legend> elements. To begin, we stack the <fieldset> elements on top of each other in a grid cell and give them borders.
HTML tags can be formatted using a style attribute. To add a border using the style attribute, add the border CSS inside the quotes after style=. In the example below, we surrounded a paragraph (<p></p>) with a solid red border that is 3 pixels wide. First example with text surrounded by a red border.
Try HTML legend tag.
HTML legend
use legend inside fieldset
The HTML Legend Field Element (
<legend>
) represents a caption for the content of its parent<fieldset>
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With