Code in the head tag will be executed before that in the body, because of the order of page loading. Additionally, anything written to the body using the document.write method goes in the position of a script tag in the body
Wiki User
∙ 15y agoWiki User
∙ 12y agoJavascript in the head of an HTML document is run before the body loads, while any Javascript in the body of an HTML document is run after all the elements above it have been loaded, meaning that, using the following code:
<html>
<body>
start text
<script type="text/javascript">
document.writeln("this is inserted text");
</script>
end text
</body>
</html>
"start text" would be loaded first, then the script would run, which would write "this is inserted text" after "start text" but before "end text", then, finally, "end text" will load.
Wiki User
∙ 14y agoThe <HEAD> tag is used to display the heading information like company name, page title etc in the web page
The <BODY> tag is used to display the body of the web page - which contains all the contents you want to display
Wiki User
∙ 12y agoThere isn't much of a difference. They are both javascript code and can be referred to anywhere inside the program.
Wiki User
∙ 6y agoThe head contains JavaScript, favicons, styles, etc..
The body has text and images.
Wiki User
∙ 12y agoHead is for the title and the icon. Body is what you see in the window.
Wiki User
∙ 6y agoThe head is where headings, JavaScript, and CSS styles, can go.
<html> <head> <title></title> </head> <body> </body> </html>
No, it must be used in the section of your HTML document. Here is an example of how to use it: <html> <head> <title>Web Page</title> </head> <body> </body> </html>
Heading, denoted by the tages <head> </head> and body denoted by <body> </body>
You need to use a <body> tag because it defines the main body section of an HTML document. Here are the minimum tags required to create a web page: <html> <head><title>My Page</title></head> <body> Hello World! </body> </html>
No code is needed. If you wanted to, you could just make a blank HTML page and write "Hello world" on it with out any HTML code. Tumudracs improved answer: If you want to be a true HTML coder here is the code: <HTML> <head> <title> Hello World </title> </head> <body> Hello World </body> </HTML> If you wanna get technical, it would be <! DOCTYPE HTML PUBLIC "-//W3C DTD HTML 4.01//EN" "http://www.w3c.org/TR/html14/strict.dtd"> <HTML> <head> <meta http-equiv="Content-Type" content="text/HTML; charset=iso-8859-1"> <title>Hello World</title> </head> <body> <p> Hello World </p> </body> </HTML>
The basic HTML base to a HTML website is <HTML> <title> </title> <head> </head> <body> </body> </HTML>
<html> <head> <title></title> </head> <body> </body> </html>
< html > < head > </ head > < body > </ body > </ html > Without spaces.
HTML head title /title meta style /style /head body /body /HTML
The <body></body> tag defines the body of an HTML document. Here is the minimum format needed for a basic HTML page. <html> <head> <title>Title</title> </head> <body> Stuff goes here... </body> </html>
The <body></body> tag defines the body of an HTML document. Here is the minimum format needed for a basic HTML page. <html> <head> <title>Title</title> </head> <body> Stuff goes here... </body> </html>
The <head> at the beginning of an HTML document comes between <html> and <body>. It is a container that includes information that relates to the entire document. You can include the following tags in the <head> tag: <title> (required in an HTML document), <style>, <base>, <link>, <meta>, <script>, and <noscript>.
The <HEAD> tag is used to display the heading information like company name, page title etc in the web page The <BODY> tag is used to display the body of the web page - which contains all the contents you want to display
<html> <head> <title> <body>
Basically, it tell a browser that what follow is written in the HTML markup language. This allows the browsetr to look for the relevant tags to properly display the context. Relevant tags are: <html> <head> </head> <body> </body> </html>
Below is an example of a very basic webpage: <html> <head> <title>My First Webpage</title> </head> <body bgcolor="yellow"> <p>This is a yellow webpage</p> </body> </html>
No, it must be used in the section of your HTML document. Here is an example of how to use it: <html> <head> <title>Web Page</title> </head> <body> </body> </html>