What is HTML ?

HTML is a simple scripting language used to create Hypertext Documents.
                         Hypertext  is simply a piece of text that works as a link.
                         Markup Language    is a way of writing layout information within documents.
                         HTML is a collection of Markup Tags (platform-independent) that define the various
                    components of a worldwide web documents. We can use any types of text editors (like
                    Notepad, Edit pad..) for HTML Coding.
                         HTML documents are saved with  .htm  or  .html  extensions.

                    Tags:
                         In HTML, all commands (code) are called Tags. Tags are not case sensitive. There are

                    two types of tag:
                         •    Single (empty/unpair) tag
                             These types of tag don't have its ending tags like : <BR>, <!>, <HR>  etc.
                         •    Pair (container) tag
                             Tags with starting and endings are called Container tags. We have to close these
                             types of tags; otherwise, they will not function properly. Container tags are ended
                             with slash (/) key.
                    Tag consists of three parts:
                         •    Element (main tag) - Identification of Tag
                         •    Attribute - Property of Tag
                         •    Value - Value assigned for Attributes

                    For example:
                    <BODY BGCOLOR = "RED">
                         BODY   = Element (Main Tag)
                         BGCOLOR    = Attribute
                         "RED"  = Attribute Value
                    Note 1:  We only have to close the Element (Main) Tags like </body> in the end.
                    Note 2: We can use more than one attributes and its value for the Element. For example:
                    <font size=5 color=red>
adse

0 comments:

Post a Comment