made required attribute XHTML compliant

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
Merge pull request #1023 from D-storm/xhtml-compliance

made required attribute XHTML compliant