- Aug 12, 2014
- 522
- 3
- 81
Hello,
What I mean is, let's say that I have a web page that I want to push out to clients.
My web page will put the word "Hello" in plain text in the top corner of the screen, feature a CSS addendum to format that text, and feature a JS script such that when you hover the mouse pointer over the text, it changes in some way and returns to its normal state after you pull the mouse pointer away.
Possibly the simplest front end dynamic site you can imagine.
How many packets would it take to send this code out?
What would the payload of these packets look like in binary / hex?
What I'm really asking is, how are HTML / CSS / JS encoded?
Also, this is all just binary coming at a browser. How does a browser know where HTML ends and CSS begins? Same with JS. Are there delimiters?
What I mean is, let's say that I have a web page that I want to push out to clients.
My web page will put the word "Hello" in plain text in the top corner of the screen, feature a CSS addendum to format that text, and feature a JS script such that when you hover the mouse pointer over the text, it changes in some way and returns to its normal state after you pull the mouse pointer away.
Possibly the simplest front end dynamic site you can imagine.
How many packets would it take to send this code out?
What would the payload of these packets look like in binary / hex?
What I'm really asking is, how are HTML / CSS / JS encoded?
Also, this is all just binary coming at a browser. How does a browser know where HTML ends and CSS begins? Same with JS. Are there delimiters?