Saturday, 10 June 2017

Introduction to HTML Tags

Tags are instructions that are embedded directly into the text of document. An HTML tag is a signal to a browser that it should do something on the text. All HTML tags begins with open angle bracket (<) and ends with close angle bracket (>)


HTML Tags are of two types:
  • Container Tags: The tags that include both ON and OFF tags are called container tags or container elements. These tags need both an opening tag < > and the closing tag < / >. The only difference between an opening tag and closing tag is the forward slash ' / '.                                                                    For example : <HTML> tag has its closing tag , which is </HTML> 
  • Empty Tags: Empty tags contain only ON tags, they do not have OFF tags. these tags do not enclose any data. Instead they function on their own. These tags need only opening tag     < > , there is no need of closing tag .                                           For example : <BR> tag is an empty tag which breaks the line and displays the text from the next line .                                
    sequence to use tags
                                                   

No comments:

Post a Comment