How I can add a body on a website page


#1

Hello Everyone,

I hope you are doing well. I am writing to kindly ask for help on how I can add a body on a website page. Actually, it is a first time I learn cording that is why I am struggling. Thank you I am waiting for your responses


How to answer questions and help here
#2

Hi @rubycoder82697,

Are you asking based on any of the lessons offered in Codecademy? If yes, it’s good to provide us a link towards the lesson/exercise together with the issue you’re facing.

If it’s just a general question, generally, to add a body into HTML, you will need to follow the structure something like below:

<!DOCTYPE html>
<html>
  <head>
    <title></title>
  </head>
  <body>
  </body>
</html>

Whereby inside the <body> ...... </body> part, you can have different elements inserted into it, such as frequent use of h1 to h6 tags, span tags, p tags, a tags, div tags, unordered list/ ordered list tags and much more.

For reference (documentation), you can read:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body

Have a look on the left panel, HTML Elements part, you can click on and see there are a lot of other HTML elements too.

Hope it helps. :slight_smile:


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.