Hello I am getting an error that my Google Custom search bar
cannot be in a div. Not sure why that is. Is their an alternative way that
I can put it? PAGE
<script>
(function() {
var cx = '008024285318458230614:whfnj_-zutw';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>
</div>
The google search bar is an invalid element as far as the validator is concerned. As long as the search bar works properly, the error is meaningless. The validator flags unknown proprietary tags as invalid.