- Joined
- Aug 8, 2023
- Messages
- 2
- Reaction score
- 0
Templating Headers and Footers with Custom HTML Elements - YouTube
Hello everyone, this is my first post here. I am trying to follow the video given above which enables same footer and header in all pages using JS. But I am not able to make it work.
I have tried the step in the video about 'alert(1) and it works but not the code related to <header>. I am posting screenshot of code below, please guide me. I do not understand where I am going wrong. I am eager to learn JS.
Hello everyone, this is my first post here. I am trying to follow the video given above which enables same footer and header in all pages using JS. But I am not able to make it work.
I have tried the step in the video about 'alert(1) and it works but not the code related to <header>. I am posting screenshot of code below, please guide me. I do not understand where I am going wrong. I am eager to learn JS.
![Screenshot-from-2023-08-08-15-11-26.png](/proxy.php?image=https%3A%2F%2Fi.postimg.cc%2FnLWt2FqQ%2FScreenshot-from-2023-08-08-15-11-26.png&hash=adc47c2e97fec0f92bb3852c9fde4c04)
![Screenshot-from-2023-08-08-15-11-40.png](/proxy.php?image=https%3A%2F%2Fi.postimg.cc%2Fc1QVgMk3%2FScreenshot-from-2023-08-08-15-11-40.png&hash=528bd21be0d530f7c7c5e5486b0c759a)