<h1>
ページの後半でタグのコンテンツを複製する、自分のサイトの記事用の新しいページを作成しようとしています。
私は少しのコードを含めたいと思っていました (私は Javascript を想像しましたが、何か他のものでも構いません) -<h1>
私の記事のタイトルを下に動的に追加して、次のようにします:
<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>
<title>
私はそれを調べましたが、タグを複製する以外にこれを行う方法がわかりません。たぶんとても簡単ですが、これを行う方法を知っている人はいますか?