HTML, Head and Body

The HTML, Head and Body are the main structure of every web page.

Key Points

<html> tells the browser that this page contains HTML.

<head> is the first part of the page that runs when opened in a browser.

<body> contains all the content that will be displayed to the user.

Adding the structure

Every HTML file will use the same page structure. This structure includes:

<html> tags which open at the start of the file and close at the end of the file. This tells the browser that everything in between these tags is HTML.

<head> tags which open and close at the top of the file. All code between these tags is run before anything else.

<body> tags which contain the content for a webpage. All code between these tags is displayed in a browser.

<html>
    <head>

    </head>
    
    <body>


    </body>

</html>

Styling Body

Internal Style Sheets / External Style Sheets

body{
    color: blue;
    background-color: white;
    font-size: 30px; 
    font-family: "Times New Roman"; 
    text-align: center;
}

National 5 Requirements

You should be able to create the structure of your website using HTML, Head and Body tags.

You should be able to style the body of a website.