Tuesday, July 28, 2009

HTML (Hypertext Markup Language)

Html is the language of web. Almost all the sites in the web is created using HTML.  It is a tag based language.

HTML can be created with plain Notepad or a there are a slew of editors like Visual Studio Code, Atom, Sublime, etc. I am using Notepad to start with.

 An HTML document contained two main section viz. Head section and Body section. Body section is where the contents of the page will appear. The Head section contains information like Title of the Page, Scripts, etc. 

<html>
 <body>
  Shalvin P D
 </body>
</html>

There are both opening and closing tags. Closing tag is denoted by /. Eg. </html>, </body>, etc. Notice that I have indented the tags so that it will be more readable. The relationship between tags can be better understood with indentation. Here HTML is the parent tag. 

I saved the document with .htm extension. Double clicking on the file will open the html document inside the default browser. 

 The Browser will interpret the HTML tags and produce the web site.

   

 

 

 

 

 

 

Title Title tag is used to produce a title for the document. The title appears in the title bar of Browser.  

<html>

 <head>
  <title>.Net and Angular Consultant and Trainer</title>
 <head>

 <body>
  Shalvin P D
 </body>
</html>



Br

 

Br tag is used for producing a break between contents Result

 

 

 

 

 

 

 

 

 

  

 

 

 

 

 

 

 

 

 

 

 

 

 H1 and H2 BgColor Attribute Unordered List Ordered List

No comments:

Post a Comment