Query on bit of HTML code

When adding a body with text what is the correct format?

1 <body>
2 <p>"Life is very short and what we have to do must be done in the now." - Audre Lorde</p>
3 </body>

or

1 <body> <p>"Life is very short and what we have to do must be done in the now." - Audre Lorde</p> </body>

Everything for the user to see will go into the BODY element. Textual content is best wrapped in P (paragraph) elements, as you’ve done above. Whitespace is free and has no effect so best use separate lines for each element, as your first example shows.

HTML is not program code so we do not use quotes on textual content.

<body>
<p>Life is short and what we have to do must be done in the now.</p>
</body>
1 Like

Thanks for the Help! :slight_smile:

2 Likes