I'm looking to create a new page for my articles on my site that replicates the contents of my <h1> tag later in the page.
I wanted to include a small bit of code (I imagined Javascript, but something else will do) - to dyanmically add the Title <h1> of my article in the bottom so it will look something like this:
<h1> This is the title of the article </h1>
and then at the end of the page:
Related Articles:
<p> If you enjoyed reading
<script>... populatate "This is the title of the article"</script>
then why not explore the following similar articles? </p>
I've looked into it and can't seem to see how to do this more than replicating the <title> tag. It's probably really simple but does anyone know how to do this?