I have an html "head" template and a navigation template that I want to include in all my other html files for my site. I found this post:
Include another HTML file in the HTML file
And my question is: what if this is the title that I want to include?
So, for example, I have the following file structure:
/var/www/includes/templates/header.html navigation.html
header.html might look like this:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="author" content=""> <title>Test Portal</title> </head>
In that case, can I continue to follow the example in another post where they create a div and populate the div through jquery?
javascript jquery html include
Happydevdays
source share