W3C home > Mailing lists > Public > www-validator@w3.org > July 2016

How TO - Include HTML

From: V G Woodhouse <vgw@vgwoodhouse.co.uk>
Date: Fri, 8 Jul 2016 17:46:21 +0100
To: <www-validator@w3.org>
Message-ID: <002c01d1d938$41f61fa0$c5e25ee0$@vgwoodhouse.co.uk>
Hello,

 

Ref: http://www.vgwoodhouse.co.uk/contactus.htm

Line 212

<div w3-include-html="footer-all.html"></div>

 

Error:

Error: Attribute w3-include-html not allowed on element div at this point.

>From line 212, column 2; to line 212, column 40

er -->↩↩↩ <div w3-include-html="footer-all.html"></div>

 

I have used code equivalent to w3schools example, reproduced below,  and have been unable to clear validation.

 

Kindly let me know the solution.

 

Regards

 

Vic Woodhouse 020 8810 4500

 

V.G. Woodhouse & Co. 12 a The Mall Ealing London W5 2PJ

Chartered Certified Accountants, Registered Auditors

http://www.vgwoodhouse.co.uk/

 

 

http://www.w3schools.com/howto/howto_html_include.asp

Full Example

Example

<!DOCTYPE html>

<html>

<script src="http://www.w3schools.com/lib/w3data.js"></script>

 

<body>

 

<div w3-include-html="content.html"></div>

 

<script>

w3IncludeHTML();

</script>

 

</body>

</html>
Received on Tuesday, 12 July 2016 14:35:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 12 July 2016 14:35:06 UTC