To illustrate this in a more intuitive way, let’s take a look at two scenarios in a Restaurant: Or maybe when the time changes, different content is returned. Or maybe when a user changes a setting, a new page is returned. So, for example, if a different user requests the same page, different content is returned. The creator does not have to manually edit the content, as with Static Web Pages. This is because the page created is dependent on the user's information and the program. On every request, every new page created may be different from the last.It does this by interacting with a database to retrieve data which it packages and sends over as a page. Instead, when a user makes a request a script or program runs and ultimately cooks up a web page.The page is not physically present on the server when the user makes a request for it.But the only way to change a static page for the creator to manually edit the content (like an HTML document)Ī dynamic page has the following characteristics: This is not to say static pages cannot be modified. If hitting the same URL returns different content, then that page is not static at all. The page generally maintains the same content every time the user requests it. If it is not present, then it is not static. A static page must be already physically present and hydrated (i.e with content) by the time a user makes a request for it. The page is already present even before a user requests it.What is a Static Page?Ī static page has the following characteristics: How you answer these questions (and a couple more I will ask below) will determine whether the page is a static one or a dynamic one. Are you prompted to submit a form before having the page rendered on your browser?.Assuming you change your browser settings (like clearing cookies, for example), does hitting the same URL returns a different page?.Does the page’s URL ends with a document extension /.html for example) or did it end with an endpoint? /profile for example).If you compare the current state of the page to its previous state, are there any differences in its content?.Wait for some time, and then visit that URL again. Take a snapshot of the current state of the web page and close it. A web page will be rendered on your browser window. Navigate to the address bar and type in (or select) any random but valid URL you know. Don’t worry, we will find out what that means very shortly. N/B: In case you are wondering, the page that the above URL returns is a dynamic page. These interconnected web pages forms an organised network of web pages, which we then call a website.Įvery web page accessible on the internet must have its own URL. A hyperlink is any element in the web page which, when you click on it, links to another web page. HyperText is any web document which contains hyperlinks. We create web pages using a markup language such as HyperText Markup Language – more commonly known as HTML. This is very similar to web pages and web sites.Ī web page is a single document which can contain text, images, hypertext, or any other elements. It is very common in an encyclopedia to find words on the page which refer (or link) to another page for additional information. Each page has its own content: A header, paragraph, images, diagrams, bullet points, lists, and of course, the definitions of the terms you're looking up. To do that, let’s consider an encyclopedia.Īn encyclopedia (like Wikipedia, for example) consists of many pages. What is a Web Page?įirst, we need to understand what a web page and a web site are and how they differ. And, as usual, I will be doing so in plain English. In this article, I am going to tell you all you need to know – and why it's important. You might wonder what makes a web page static and what makes a web page dynamic. If you're a beginner coder, you might have heard of the terms “static web pages” and “dynamic web pages” – but you might not know what they mean. If you don’t know the answer to that question, or are struggling to think it up, then this article is for you. “So can you distinguish between a static web page and a dynamic web page?” Imagine that you're interviewing for your dream job and the interviewer drops this question for you:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |