- 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.