Web page code basics Web page code basics

Web page code basics
Web page code basics
Web page code as it relates to the human body
• The human body consists of 3 main sections
The h man bod consists of 3 main sections
– The outer skin
– The brain
– The body
• A Web pages consists of 3 main code sections
– The outer markup language
– The head
– The body
Skin = <HTML></HTML>
The human skin is to our body as
HTML tags are to a Web page.
Both wrap the body in order to
make it’s contents recognizable to
others.
You m
Yo
must
st ha
have
e an opening <tag>
and closing </tag> in order for the
Web to recognize a Web page.
<html>
</html>
Brain = <head></head>
The brain is what allows our body
to function. People don’t see our
brain but it is constantly working
behind the scenes giving our body
instructions. The same happens in
a Web page. Information that is in
the <head></head> tags are giving
gi ing
orders behind the scenes to the
body.
You must have an opening <tag>
and closing </tag> in with in the
html tags.
<html>
<head>
</head>
</html>
Body = <body></body>
The body
bod is what
hat we
e shape and
form and where all of our
information appears. Information
placed in between the
that is p
<body></body>tags is visible to
everyone.
You must have an opening <tag>
and closing </tag> in with in the
html tags.
<html>
<head>
<body>
</body>
</head>
</html>
<head>
<html>
</head>
<body>
This is how all initial Web
pages should be set up in
order to render properly
p p y
</body>
</html>