What means '?' after href do?

What? after href do? You will often see something like this

href='?page=1'

      

Somebody knows? Thank you all in advance for your help.

+3


source to share


2 answers


This means that this is a link to the current web page with a query string parameter. In this case, the page number. This usually happens if you have dynamic page list content and page limit.



+3


source


"?" The sign is very useful and important in many ways. for example, and uses to define a specific use for specific reasons, one of those reasons is that when you have a site with three languages, but it has the same pages. check the following links below.

http://example.com/news?language=EN

      

The language of the sample website is in English

http://example.com/news?language=RU

      

Sample website language in Russian

http://example.com/news?language=DE

      

The language of the sample website is in Germany

Another reason is that you have a dynamic page containing only one page with a lot of content stored in the website database. before it became static pages like the following links below



http://example.com/page1.html
http://example.com/page2.html
http://example.com/page3.html

      

As you can see, we have three pages. how about we can have many pages, but on one page. the only difference is to change the parameter of the page itself.

Let's say you have an electronic library. you don't waste your life creating thousands of pages dealing with book details, you can simply create a book page with isbn parameter like below.

 https://example.com/books?isbn=0132947048

      

It is also used to track online campaigns and determine the source from which users are coming ...

http://example.com/?source=StackOverFlow&medium=Banner

      

I hope I answered your question clearly :)

+2


source







All Articles