I have a little issues in writing my personal HTML code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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>

28th Sep 2020, 5:05 PM
Oyetoro Johnson
Oyetoro Johnson - avatar
3 Answers
+ 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.
28th Sep 2020, 5:17 PM
Steve Sajeev
Steve Sajeev - avatar
+ 2
Thanks guys have gotten the hang of it
28th Sep 2020, 6:03 PM
Oyetoro Johnson
Oyetoro Johnson - avatar
+ 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
28th Sep 2020, 5:29 PM
LIONEL
LIONEL - avatar