Should I have to put input tag inside p tag?

Should I have to put input tag inside p tag?
or it’s ok if I don’t do that?


            <form action="">
             <input type="text" placeholder="Name" name="u-name">
             <input type="email" placeholder="E-mail address" name="u-email">
             <input type="submit" value="Subscribe">
            </form>


or


            <form action="">
             <p><input type="text" placeholder="Name" name="u-name"></p>
             <p><input type="email" placeholder="E-mail address" name="u-email"></p>
            <p><input type="submit" value="Subscribe"></p>
            </form>


Thank you

In HTML4, you were encouraged to wrap form elements in some kind of block level element, like a P or a DIV, but thankfully in HTML5 that seems to have been dropped, so if you are using the latest doctype, then there won’t be a validation problem on that score.

Even if using HTML4, there won’t be a problem with leaving out the Ps. Just a validation message.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test</title>
</head>
<body>

<form action="something.php">
    <input type="text" placeholder="Name" name="u-name">
    <input type="email" placeholder="E-mail address" name="u-email">
    <input type="submit" value="Subscribe">
</form>

</body>
</html>

Typically the FIELDSET and LEGEND would go after the FORM start tag. That is one reason as to why it was recommended you wrap the thematically related controls and labels.