Gizmos Freeware Reviews  

Go Back   Gizmo's Freeware Forum > Freeware Forum > Website Design, Support and Maintenance

Reply
 
Thread Tools Display Modes
Old 03. Aug 2011, 10:59 AM   #1 (permalink)
Banned
 
Join Date: Aug 2011
Posts: 1
Default how HTML works

Hi.When I click on a URL and the web page comes up with all the elements like text, colors, images, etc....

Are the web pages actually (A) completed, self-contained pages sitting on the server waiting to be retrived? Or is it more like (B) the elements that make up the web page are sitting on the server and the HTML goes gets the different elements based on the code and puts them together to display the web page? Thanks
tunaizuy is offline   Reply With Quote
Old 03. Aug 2011, 01:03 PM   #2 (permalink)
Progradminstrateditor
 
George's Avatar
 
Join Date: Mar 2008
Location: Frankfurt, GER
Posts: 2,293
Default

Hi tunaizuy

in the simplest case the web page is represented by one HTML file on the server. When you type in the URL the web server knows which file to send to your browser.

Your browser interprets the HTML code it retrieves and renders the page accordingly. The file contains paragraphs, tables and such and also the text. It might also contain information about the formatting, like font size etc.

Most times the formatting information are in a separate style sheet file. In that case the HTML your browser retrieves contains a link to it. The browser will then retrieve it too and use the formatting on the page.

Several elements in the web page will not be in that one file, e.g. images. But what the file contains, again, is a reference to where to find the image files and how and where on the page to display it.

Hope that explains it a bit.
__________________
Best regards, George
George is offline   Reply With Quote
Old 03. Aug 2011, 01:54 PM   #3 (permalink)
Senior Member
 
Ritho's Avatar
 
Join Date: Apr 2008
Location: Planet Earth
Posts: 1,379
Default

Quote:
Originally Posted by tunaizuy View Post
Or is it more like (B) the elements that make up the web page are sitting on the server and the HTML goes gets the different elements based on the code and puts them together to display the web page? Thanks
Many websites do work this way. Take a blog for instance. All the information in a blog post entry is store in a database. When a request is made for that post, the server side software (something like PHP or ASP but not HTML) pulls the needed information out of the database and assembles it into a html document which is then passed to browser. Usually a template is used the control how the resulting page will look. The advantage to this is only the actuall text information must be entered, none of the other html code has to be manually created.

So in actuality both of your scenarios are true. (A) Static html pages, and (B) dynamically created pages both live on the internet.

Any more questions?
__________________
The smallest good deed is better than the greatest intention.
Ritho is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT +1. The time now is 06:19 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.