Thursday, 8 August 2013

Welcome to Basics of HTML:
  • HTML stands for Hyper Text Markup Language.
  • HTML mainly used  to develop webpages.
  • HTML contains predefined tags which represents the markup language.
  • The browser display the page according to the html tags.
  • HTML is case insensitive.
  • The file must save with .html or .htm format.
Representing HTML tag:
  • Each and every tag  lies in  between < >(angular brackets).
  • Every element contains opening and closing tags.
  • ex: <p> it represent the opening tag and it must be followed by </p> closing tag.
  • Syntax to representing element:
                <tagname attribute=""> content of element </tagname>
<tagname> represents the opening tag.
</tagname> represents the closing tag.

Structure of HTML page:
HTML contains two sections, one is header section and another is body section

Header Section:
The header section can't display on web page but it act on content
  • <title> of the page belongs to header section.
  • <meta> data located in header section.
  • <style> sheet is located in header section.
  • <script> file is represented in header section.
Body section:
The content belongs to body will display on the browser screen.
Sample HTML file:

<html>
       <head>
                     <title>First Page</title>
       </head>      
       <body>
                   <h1>Welcome to Web Development</h1>
       </body>
</html>

output:

                    

Explanation:
The content belongs to body displayed on the webpage.
The <title> displayed as tab name.

0 comments:

Post a Comment