This is a Premium Blog

Elements of HTML

Written on October 18, 2007 by admin

The computer language HTML involves the idea and concept of a markup language. HTML is basically an application of another language called SGML, which is an abbreviated form of Standard Generalised Markup Language. To begin with we have to encode the heading in the document by a start tag, content and finally an end tag. Tags indicate the beginning and end, starting with < (less than) symbol and ending with / (slash), element followed by > (greater than) symbol. For example to make the heading of this article ‘Elements of HTML’ as an element, we can write it as < H 1 >Elements of HTML< / H 1 > without the spaces between the characters. In this we have used H1 as start tag, ‘Elements of HTML’ as content tag and lastly /H1 as end tag. The H1 element is level 1 heading. By using proper nexting, elements can be indicated inside other elements. In other words, the element should have a same beginning and an end. We can also indicate empty element by start tag with HR.

For the purposes of HTML there is no need to learn or master SGML. The HTML to be a part of SGML should have Document Type Declaration declaring a specific document, say HTML. The SGML code is indicated by an exclamation mark (!) to start the construction of content. After the specification of an HTML document, elements are to be added, starting with an HTML element. In totality, a legible HTML document should contain a head element tag containing information about document and a body element tag containing document itself. White spaces like tabs, spaces and linefeeds have to be collapsed in the HTML to make it easily readable without change in literal meaning. A simple, unique and descriptive title of the document containing text, distinguishing the document is also very important in HTML. After insertion of title the document is complete and finished.

If you enjoyed this post Subscribe to our feed

One Comment on “Elements of HTML”

  1. Home Security Guy |

    Great article. HTML is quite easy to learn and you can view the source of any web page on the internet - to see how its built. Just click View / Page Source.

Leave a Reply