Klickitat Posted May 14, 2022 Report Share Posted May 14, 2022 Beginner here - learning HTML in the StudioWeb course. This is in regard to Chapter 6 'HTML Forms' (specifically 6.6, 6.7 and 6.8). (see code below) The text which reads 'User name:' and 'Password:' displays just fine in the browser. So that's good! But why doesn't that text belong in a <p> tag? <form name="login" action="process-form.php" method="get"> User name: <input type="text" name="username"> <br> Password: <input type="password" name="password"> </form> Quote Link to comment Share on other sites More sharing options...
Klickitat Posted May 15, 2022 Author Report Share Posted May 15, 2022 Just arrived at the chapter on HTML tables. That text inside a table doesn't need to be in a <p> tag either. Quote Link to comment Share on other sites More sharing options...
administrator Posted May 16, 2022 Report Share Posted May 16, 2022 20 hours ago, Klickitat said: That text inside a table doesn't need to be in a <p> tag either. Nope. And 99% of the time, you should not use formatting tags like P inside a table. Stef Quote Link to comment Share on other sites More sharing options...
administrator Posted May 16, 2022 Report Share Posted May 16, 2022 On 5/14/2022 at 3:24 PM, Klickitat said: But why doesn't that text belong in a <p> Because a line of text is not a paragraph. That said, in this situation you could use a P tag. Quote Link to comment Share on other sites More sharing options...
Klickitat Posted May 16, 2022 Author Report Share Posted May 16, 2022 Thanks for your response and advice! I think I was just overthinking it a bit. I just finished the HTML course and am excited to learn more with CSS. Thanks again! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.