Specify current page in summary

How do I highlight the current page in the links list? Comparing the URL in the list with the URL of the current page.

An active page means the current page, not to be confused with the active link indicated in the CSS by the nickname: active, which corresponds to the link to which the mouse button is pressed.
To find out if the link in the list matches the current page, you need JavaScript code.

The lease object and the href property are used to retrieve the URL of the current page.

var pageurl = location.href;

Demo (click to display this page's URL).

The style of the current page in the list changes, for example, by displaying the anchor in bold or highlighting it. We can also increase the size, move it...

pageactive.style.fontWeight = "bold"; 

It remains to find the current page in the list of links...

Full JavaScript code:

<script>
function relief()
{
var pageurl = location.href;
var dnl = document.getElementsByTagName("a");
for(i = 0; i < dnl.length;i++)
{
var x = dnl.item(i);
if(x.href == pageurl)
{
x.style.fontWeight = "bold";
x.style.textDecoration = "underline";
}
}
}
window.onload=relief;
</script>

Brief Demonstration:

Practical application is the paging of articles to ponder, as this has implications for search engines.