Labels in a div

Label : some value <-----some gap-----> Label: another value.

please tell how to code this in HTML ?

Your question is a bit vague, but remember that “gaps” etc. are a visual thing, and thus are a job for CSS, not HTML.

In your HTML, just place two labels. E.g.

<label for="name">Your Name</label>
<label for="email">Your Email</label>

By default, they will sit side by side; and if you want a gap between them, you could give the first a right margin.

Is it same if instead I give the second a left margin ? can I do this way ? any issue with this ?

That’s fine too. :slight_smile:

Thanks