Using html elements in ZK

Well today I had to face this situation since I am a newbie in ZK Framework. In a single line in my code I had to leave a new space between two different components I found the solution first of all we need to add the ZK html namespace in our code and with the namespace we can use zk specialized html elements

<zk xmlns:h="http://www.w3.org/1999/xhtml" xmlns:zk="http://www.zkoss.org/2005/zk">
	<window  title="ZK HTML Elements" width="300px"
		border="normal">
		<label value="First element"/>
<h:br />
		<label value="Second Element" />
<h:br />
<h:p>Another<h:br /> break <h:br /> example </h:p>
	</window>
</zk>

Leave a Reply

Your email address will not be published. Required fields are marked *