#1.3 | HTML - Element
The element is everything starts from start tag, if contains other content and end with closing tag,
<Start Tag> Your Content... </Closing Tag>
There are many elements which don't need to be closed, elements with no content. This kind of elements are called Empty or void Elements. such as <br>, <hr> etc.
Nested HTML Elements
Nested Elements mean one Element can content another Element and that Element can contains another Elements and so on.
For Example
<html>
<head>
<title> This is the Document Title </title>
</head>
<body>
<h1> This is the Main Heading of this Example </h1>
<p> Introduction paragraph for rest pages.
<br>
Depend on the content size it might be divided into several subs heading and paragraph<p>
</body>
</html>
Explanation
- Here <HTML> ...</HTML> Element defines entire document.
- This element content many others element like <head>....</head>, <title>...</title> and <body>...</body>.
- Again <body>...</body> Element content is other elements like <h1>..</h1>, <p>..</p> and <br>.
< Previous | Next >
Subscribe My YouTube Channel - http://bit.ly/2x7HSsw
Like Our Facebook Page - www.fb.com/RubanTheGeek
Follow Us on Twitter - www.twitter.com/ruban_thegeek
Comments
Post a Comment