Finally we get to the body
. This is almost always going to be the largest section of your web page; the body
is where you mark up the content of the page. Everything inside the body
element is displayed in the browser. There are a vast array of different types of tags you can use here, all with different functions, but our focus is to output, "Hello, world." Technically, you do not need to enclose that in a tag at all, but it is good practice to do so. The most semantic, meaningful tag would be the p
element, which creates a paragraph.
Previous Lesson: The Head | Next Tutorial: Marking up a Page
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Write your title here.</title> </head> <body> <p>Hello, world.</p> </body> </html>