On website, when first option in the table is clicked What is difference between document.getElementById() and document.querySelector()?, user is not redirected to the QnA section beneath the table.
The reason is a mismatch in ids.
The table entry link:
<a href="#q-what-is-difference-between-document-getelementbyid-and-document-queryselector">What is difference between document.getElementById() and document.querySelector()?</a>
QnA section header:
<h2 id="q-what-is-difference-between-documentgetelementbyid-and-documentqueryselector">Q. <strong><em>What is difference between document.getElementById() and document.querySelector()?</em></strong></h2>
On website, when first option in the table is clicked
What is difference between document.getElementById() and document.querySelector()?
, user is not redirected to the QnA section beneath the table.The reason is a mismatch in ids.
The table entry link:
<a href="#q-what-is-difference-between-document-getelementbyid-and-document-queryselector">What is difference between document.getElementById() and document.querySelector()?</a>
QnA section header:
<h2 id="q-what-is-difference-between-documentgetelementbyid-and-documentqueryselector">Q. <strong><em>What is difference between document.getElementById() and document.querySelector()?</em></strong></h2>
h2 tag id is missing a few hyphens