FAQ: Overview of the Internet - How Do Browsers Work?

This community-built FAQ covers the “How Do Browsers Work?” exercise from the lesson “Overview of the Internet”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Code Foundations

FAQs on the exercise How Do Browsers Work?

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

I have a question. It is stated that certain web browsers work faster than others, because the request-response cycle from the server to the browser happens parallelly. How do they do it?

2 Likes

Hey Prodigy, How did everything come along for you when you started venturing into the mind of computer science and the HTML communication between server and client?

Personally, I think the URL is immediately scanned and creates a prime directive to instantiate any keywords that register as a data file on the server to run on command GET.

I would love to know what you found out.

I definitely need to get myself a good avatar or codeName. LoL

Hi, everyone!

(Oooh, scary: my first post ever on the Codecademy forum! I thought I could make it through Code Foundations without asking for help—how naïve.)

I have a quick question regarding the following:

“The browser will begin to search for elements in the HTML file and it will start to make additional HTTP requests for any other external resources used by the HTML file.”

Am I correct in understanding that the CSS stylesheet(s) and JavaScript files are not contained within the HTML file? I just want to make sure I’m correctly following this.

Thanks, team!

4 Likes

Hi gmwrites,

Yes the CSS and JS files are not contained within the HTML file. They are all separate files. That being said, the HTML file will contain lines of codes that make reference to the CSS and JS files which will trigger the browser to request data and render the visuals.

4 Likes

I actually believe that accessing a web page in an environment where such a website is blocked or banned may affect how long it takes to appear, if it appears at all. This has been my experiences living in areas where certain websites are intentionally blocked by governmental or security agencies.

3 Likes

A webpage that does not use JavaScript is known as a static webpage.

Is not a static webpage actually a “not dynamic webpage which is cached on the server”?

I also think that a bug or the bandwidth of a web can reduce the speed at which a server can send back requested web page from the internet. Is this accurate?

I’m late to this party. Thank you for this clear explanation. It makes perfect sense!

1 Like

could you please elaborate more clearly what are you trying to say?

Like static means HTML and dynamic means PHP generated?

1 Like

Does this mean the CSS and JavaScript all make up the HTML file?
Also, is that to say that the user’s request cannot be succesfull without CSS?

1 Like

The different components of a web page such as HTML, CSS, JavaScript, and images are typically stored in separate files. For example, the HTML content is usually stored in an HTML file, CSS styles are stored in a CSS file, JavaScript code is stored in a JavaScript file, and images are stored in separate image files. When a user requests a web page, the browser makes multiple requests to the server to retrieve these different files and then combines them to render the complete web page. So, a web page is typically made up of multiple files rather than a single file.

3 Likes

Indeed, the CSS and JS files are not contained within the HTML files, BUT, they can be!

But the best way to use CSS and JavaScript with HTML is clearly to use external files and to link to them.

1 Like

Yes I think you are wright

CSS styles and I believe Java Script can be embedded in the requested HTML file or they can be in separate files. There are pros and cons to either way. When you study CSS it will for sure explain these.

1 Like

The server responds with an HTML page, from which all the resources on this page are requested, each resource a separate request, until the page finishes loading.
It is a relationship between the client and the server. The server must deliver the resources requested by the client, and the client must organize and display them in their correct and final form.

1 Like