HTML is a way of describing how a set of text and images should be displayed to the viewer, similar in concept to a newspaper editor's markup symbols.
Let us dissect the HTML on the simple webserver example.
The "/" symbol tells the mikroC compiler it's the end of the line.
const char *indexPage =
Creating the "indexPage" array.
Everything in between the =" and "; is part of the "indexPage" array.
<meta http-equiv="refresh" content="3;url=http://192.168.20.60">
It refreshes "http://192.168.20.60
" for every 3 seconds.
Useful for updating the status of the ADC's.
These are HTML tags.
It is enclosed in between <tagname> and </tagname>.
We start the HTML code with <HTML> and ends (at the bottom) with </HTML>.
In the <HEAD></HEAD> tag we could put here other infos about our html for example the title to display above the browser.
We will write most of our HTML codes inside the <BODY> and </BODY>. It is just like the body of a letter.
<h1>PIC ENC28J60 Mini Web Server</h1>
It's self explanatory.
From <h1> to <h6> can be used, decreasing in size.
<a> </a> is a link tag.
The link it represent is written after the "href=".
In between the tag, "Reload" in this example, is rendered as the link the user can click on.
Goes to "http://192.168.20.60/s
This is where we get the values of our ADC's.
These is a script code, so better check it by yourselves what it really means.