Wednesday, March 20, 2019

25 Head and Body tags

The <head> tag describes what the document is.
Okay, by this I mean 'It can' contain information (metadata) about the document;
    The author, date of publication, Name of document...
And beyond that it can also contain the CSS style that the document will contain.

Meanwhile, the <body> tag is what is the the html that the browser displays to the user.
Full of <h...> (Headings) and <p> (Paragraphs) images and links.

Here is my Example .html script:

<!DOCTYPE html>
<html>
<head>
   <title>What will appear in the browser tag</title><!-- As it says, What will appear in the browser tag !-->
   <style>
   h1 {
   font-size: 56px;
   }
p {
font-size: 122px;
}
</style><!-- This is for css styling for the document (what is in the <body> of the document></!-->
</head>
<body>
   <h1> The Beginning</h1>
   <p>Of the end</p>
   </body>
   </html>

No comments:

Post a Comment