Forum Moderators: open
Iam working on a XHTML quiz and keep getting some questions wrong and can't find the answer anywhere so I thought I would ask here.
1. Is the <center> tage allowed in XHTML?
2. Is the <div align="center"> tag allowed in XHTML?
3. For questions 1 and 2 if the tags are not allowed why not?
Also, I have a couple of questions that I would like to ask to help me make part of my intranet XHTML Strict complient.
Are the <font> and the <u> tags XHTML 1.0 Strict complient?
Any help would be greatly aprechiated, thanks.
So just to make sure I don't get confused (which can happen very easily!) both the <center> and <div align="center"> elements have been replaced by something newer?
So they can still be used but it is best to use the newer element - can anyone tell me what the newer element is.
Thanks.
center and font elements as well as the align and border attributes have been deprecated in XHTML 1.0 Transitional (so they are valid but not recommended), and they have been removed from XHTML 1.0 Strict. The u element has been removed entirely. CSS replaces presentational markup, so you just can use the CSS equivalents in each case.