HTML, Hyper Text Markup Language, is the basic language web pages are written in. The basic syntax is made up of "tags" comprising of the tag inside two angled brackets e.g. <TAG> and the closed by a tag with a forward slash after the first angled bracket e.g. </TAG>.
HTML is not case sensitive and is a loosely typed language meaning that incorrectly nested tags are still interpreted but can have adverse effects so as a general rule, try to keep tags nested correctly:
<TAG_A>
<TAG_B>
</TAG_B>
</TAG_A>
To write HTML, you can use a text editor and save the file with an .html file extension. You open the HTML document with an opening HTML tag and close the document with the closing HTML tag:
<HTML>
</HTML>
Next you need to open the HTML header, in the header you can insert title tags, Meta tags and style sheets.
<HTML>
<HEAD>
</HEAD>
</HTML>
Next the title tag is inserted between the <HEAD> tags. The text between the title tags appears on the top of the browser window.
Working example and source code.
Here is an example code to produce the above:
<HTML>
<HEAD>
<TITLE>Page Title</TITLE>
</HEAD>
</HTML>
|