example9_inheritance - funcyTags can inherit options from other funcy tags



show FuncyTag html string output

show Javascript source code

To Notice: New FuncyTags can be built by inheriting from previously defined FuncyTags. As a simple example, if we have already created a <span> tag like this:
span=funcyTag('span',{_nobrout:true,_nobrin:true});
we can then create a <big> tag that inherits everything about span but also sets the font size to be 150%:
big = funcyTag( span, {cssFontSize_pct:150} );
and a <bigred> tag could inherit from that to be a span that's both 150% bigger and colored red:
bigred = funcyTag( big, {cssColor:'red'} );

next: example10_esc top: all js examples