Duplicate output is coming in xwiki page when adding code in html macro

when I am using html macro to write code in xwiki the output of that code is giving duplicated value.also css is not working in xwiki. Please help me that.

We cannot help you. You need to provide LOTs of details:

  • Detailed steps of what you did with you content
  • Screenshots

Hi,
1 2 3

these are the 3 steps that I am following and am getting duplicated output , also css is not working

Can you show us the page title + the content of the page in source mode (click the source button when you edit in WYSIWYG)?

4

That’s weird but one thing you should know is that the content of the HTML macro should be what’s inside the <BODY> tag.

If you need to inject CSS or Javascript, please see https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/Tutorials/SkinExtensionsTutorial/

Maybe you could view in source mode inside your browser and copy paste the HTML that’s generated inside <div class='xwikicontent'>. Just the part that is relevant.

ohh So we cannot add <head> tag in html macro.i.e we cannot add the previously written html code that we are having with us directly by simply copying .