11.10.17

html elements

HTML ELEMENTS


                          In all HTML/XHTML documents the root element is <html>which has two children:head and body.

                   any text contained within the head element does not appear directly in the client area of web browser.

                   the <title>element is used to give title to the web page.

                   note that this title element does not appear in client area.rather it appears at the top of web browser.

                   the >body>element contains the information which is to be displayed in the client area of the browser.

                   the body element can contain several fundamental elements such as <p>,<h1>,<div>,<a>,<hr>,<br> and so on.

                   the elements within the body part is for deciding the layout of your web page.

basic html program:

<html>
<head>
<title>basic html</title>
</head>
<body>
I LOVE MY COUNTRY
</body>
</html>

output:
   I LOVE MY COUNTRY


EXPLANATION:

   if we give any content in the body part only that content can be display. 

No comments:

Post a Comment

Featured Post