+ 3
I have a little issues in writing my personal HTML code
<html> <head> <\head> đđ» Does this mean heading <body> đđ»Do i type the content here <\body>đđ» or here? <html>
3 Respostas
+ 5
Html is the full Container
You need to understand the basics of tag
â Basics
A tag can be opened and closed,for example a body tag
<body> This is the inside </body>
WHATEver that goes inside those will be the content of that particular tag..
For example:
<html>
<head></head>
<body></body>
</html>
So right now head and body goes inside html tag..
âWhat is head.
Head is something u cant see in the webpage. Rather it contains information about the page.. for example the title of the page can be placed in header like:
<html>
<head>
<title>THIS IS THE TITLE</title>
</head>
<body></body>
</html>
So here title goes inside head..
âWhat is body
Body is the place the user sees. Like buttons which user can click, something that user can read, etc.
+ 2
Thanks guys have gotten the hang of it
+ 1
First of all the HTML ending tags are not correctly written...
all ending tags have a front slash "/" NOT back slash "\" so the head and body tags are closed like this
<head> </head>
<body> </body>,
the head tag contains the non visible content of your web page like css files , JavaScript files,
the title of your web page e.t.c
______
or if you don't still understand....just don't write any tag in your head apart from
<script></script> or <link> or <title></title>
the body "<body>" is the visible part of your
web page... it is in this tag that you can add your contents ,
note that
âïž"head" is not call heading it is the head of your html document
__
đ
âïžheader and head are not the same tag
header is a semantic element, while head coach contains the meta data, scripts e.t.c
and lastly the <html> ending tag is </html>
just like the <body> and <head> closing tag