Is it bad to have several <head> tags on my page? For example, <head> Stilesheets, javascripts</head> <h1>Some content</h1> <head> <meta-tags></> </head> ?
In a word, Yes! html/xhtml should at least consist of: <html> <head></head> <title></title> <body> </body> </html> Valid code is not only good practice but search engines love it too.
the page will work but it's no best practice, also any meta information in the second head tag will be ignored
I simply don't know how to do it, because I need to include CSS and JS files in a top, but I can generate title tag only later, when receiving data from DB and URL. I guess I'll need to code such a kind of "engine" to firstly receive needed data from URL and generate title metatag...