title: Link doesn't reference anchor
body: <p>I have a link that doesn't redirect to the anchor: </p>
  
  <pre><code> while($nextLine != false){
                          # echo link 
                          echo '&lt;a href="#peak1"&gt;'.$nextLine.'&lt;/a&gt;';
                          # update line 
                          $nextLine=fgets($entireFile , filesize("Khagay Nanoproject/peaks.txt"));
                          # skip a line (for proper formatting) 
                          echo '&lt;br&gt;';
                      }
   echo '
                      &lt;section&gt;
                          &lt;details&gt;
                              &lt;summary&gt; Peak Image &lt;/summary&gt;';
                                  # create a bookmark with the id attribute. Used to link from Peak Table rows
                                  echo '&lt;h2 id="peak1"&gt;Peak 1&lt;/h2&gt;';
  </code></pre>
  
  <p>This the order that the commands are in. Is the reason because of scope or because the anchor is after the link? </p>