HTML Introduction and Elements of HTML in Web


What is HTML ?

  • It stands for Hypertext Markup Language.Most documents that appear on the World Wide Web were written in HTML. HTML is markup language, not a programming language. In fact , the term HTML is an acronym that stands for Hypertext Markup Language. We can apply this markup language to your pages to display text, images, sound and movie files, and almost any other type of electronic information.

HTML Elements :

  • An element consists of three basic parts: an opening tag, the elements content, and finally, a closing tag.
                 <p> - opening paragraph tag
                 Element Content - paragraph words
                 </p> - closing tag

1. <html> Element...</html>

  • <html> begins and ends each and every web page.
  • Its purpose is to encapsulate all the HTML code and describe the HTML document to the web browser.
                  <html>
                 </html>

2. <head> Element

  • The <head> element is "next" as they say. As long as it falls somewhere between your <html> tag and your web page content.
  • The head functions "behind the scenes".
  • We will be placing the <title> element here.
          <html>
               <head>
               </head>
          </html>

3. The <title> Element

  • Place the <title> tag within the <head> element to title your page.
  • The words you write between the opening and closing <title></title> tags will be displayed at the top of a viewer's browser.
          <html> 
          <head>
          <title>My web-page </title>
          </head>
          </html>

4. The <body> Element

  • The <body> element is where all content is placed.
  • The body element will encapsulate all of your web page's viewable content.
          <html> 
          <head>
          <title>My web-page </title>
          <body>
                    Hello world! All my content goes here!
          </body>
          </head>
          </html>