First we should understand the difference between tags and attributes,
TAGS:
Tags are specified keywords which is used to define content format of web pages.There should be opening and closing tag and closing tag must contain forward slash(</p>).
ATTRIBUTES:
Attributes used to define the property of the element.
if don't understand no problem look at the examples
HTML TAG:
<!doctype html>
This was in HTML 5,some tags in html 4 are not supported by html 5,we can use just <html> instead.
BODY TAG:
<body> </body>
Body tag used for design document body or web page,in body tag images,videos,links,list are used.
we have already discussed about head tag <head> </head>
COMMENT TAG:
<!--aaaabbbb -->
PRG:
<html>
<body>
<p> hello every one</p> <!-- paragraph tags-->
</body>
</html>
HEADING TAG:
<h1> to <h6>
PRG:
<html>
<body>
<h1> hello world 1</h1>
<h2> hello world </h2>
<h3> hello world </h3>
<h4> hello world </h4>
<h5> hello world </h5>
<h6> hello world <h6>
</body>
</html>
Look at the size difference from h1 to h6 the size decreases.
FOOTER AND HEADER TAGS:
Footer used used for giving page numbers,contacts,addresses etc...
Header is for heading.
Now just learn how to use these two tags after learning or during css we see the differences between header and footer looks,
PRG:
<html>
<body>
<footer>
<p> 1 </p>
</footer>
</body>
</html>
PRG:
<html>
<body>
<header>
<h3> Web design introduction </h3>
</header>
</body>
</html>
COMMENT YOUR OPINION BELOW:👇💬
Good job logesh.keep up the great work..
ReplyDelete