HTML Basic Structure

HTML Basic
HTML Basic

In this chapter we will learn some basic HTML examples with details explanation.


HTML Documents

  • All the HTML document have a .html or .htm extension to execute them into browser.
  • All the HTML document should start with HTML type declaration tag <!DOCTYPE html>.
  • All the HTML document itself enclosed into <html> and </html> tag.
  • All the metadata information, CSS style, JavaScript language script inclosed between <head> and </head> tag.
  • All the visible part of HTML document enclosed between <body> and </body>.

Lets have an example of HTML document with above tags

<!DOCTYPE html>
<html>
<body>

<h1>C Programming SimPly</h1>
<p>This is my first HTML document</p>

</body>
</html>