• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

anything smaller than html ?

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.
What do you mean? If you code a script to produce an HTML output, that will take up more space than just the HTML itself.

What is the purpose of the script you are trying to make?
 
well there is stuff like .asp and it looks like html...but n/m about the question, i guess its no. :)
 
File size of html isn't the problem, it's what you put in it. Graphics, java, flash, all adds size to the desired output. But in essence, html is still nothing but simple text, and you can't get much smaller than that unless you want to do your pages is 1's and 0's.

ASP is a whole different monster. ASP is in a sense HTML and Visual Basic crammed together and run out of .dll files.

There is DHTML, XML, and a pletora of other codes, but they are all in essence, simple text.
 
Being programmed for 4 yrs... in ASP, CFM, JSP, SQL etc.... this question really wakes me up at night. I really want to know what do you mean by that
 
No because there are in essecense nothing but raw text. Your computer or your browser it was makes the display. Think of it in raw computer terms. The data is data and the browser is the GUI. It will remain simply data until the GUI translates it into what you want it to look like.

What your wondering is, if you take a picture and want to display it in a browser, then what code will be smaller in file size to produce that code. ASP, XML, DHTML, or HTML. Well, in that case html is going to be the smaller code.

ASP will need a .dll file to go along with it. DHTML and XML are pretty much overkill, and HTML is the simplest. It would take 3 lines of code to produce that picture...

"<HTML>"
"<IMG SRC="whatever.jpg">"
"</HTML>"

You can even trim that down by not adding the "<HTML>" and "</HTML>" tags. So you can get it down to one line of code. Your not going to do that with the others.

If you use a WYSIWYG editor (Word, Frontpage, etc) it is going to add obsene amounts of unusable and worthless code to that. DHTML and XML are going to take extra lines of code and are complete overkill for putting up a static picture. And like I said earlier ASP can do it in one line of code, but it will need a .dll file to accompany it.

So, HTML is going to be the simplest IN THIS CASE.

Now if your going to be going with dynamic stuff, say HTML with Java scripts in it, sometimes you can accomplish the same thing with less code and less file size with DHTML or XML.

It basically depends on what your doing. But, even the most intense HTML page is still strictly raw text and the file size is puny.
 
Back