| We hope you enjoy your visit to this forum. If you are reading this then it means you are currently browsing the forum as a guest, we don’t limit any of the content posted from guests however if you join, you will have the ability to join the discussions! We are always happy to see new faces at this forum and we would like to hear your opinion, so why not register now? It doesn’t take long and you can get posting right away. Click here to Register! If you are having difficulties validating your account please email us at admin@dbzf.co.uk If you're already a member please log in to your account: |
| Semantic XHTML; [WEB] | |
|---|---|
| Tweet Topic Started: Dec 6 2007, 10:03 AM (311 Views) | |
| Snarup | Dec 6 2007, 10:03 AM Post #1 |
![]()
|
You may be asking yourself, what is Semantic XHTML? Well, that's why I'm writing about it, to clarify some and to enlighten others of this fairly new approach to a better internet. The idea of Semantic XHTML is to use tags as they are intended, an example being the <p> tag, which represents paragraphs, and thus should be used to contain paragraphs. Following that guideline with the rest of the non-deprecated tags is one step toward Semantic XHTML. The next step would be to only use tags necessary and not useless tags to just add another element of style as well as using the minimum amount of tags for the content at hand. A prime example of this is the common website navigation, which many nest within a <div> tag, which has multiple <a> tags or even a <table> tag with many <a> tags nested within it. According to W3C this is perfectly acceptable, but if you want to keep in the flow of Semantic XHTML than you would look at it like follows. Most websites navigation is a list of links, considering this, and the fact that most navigations aren't exactly dynamic and are thereby ordered by the person who coded we find ourselves with and ordered list of links. Well, there is actually a tag which will cover that semantic wise and that would be the <ol> tag. I'm not going to go into what the <ol> tag is other than that is is short for ordered list and it's child tag is <li> which stands for list item. Now, with that in mind the correct way in terms of semantics would be...
For now, this is all I will write, please ask any question as I want this article to be as informative as possible. Also, feel free to pressure me into more articles.
|
![]() |
|
| 0 users reading this topic | |
| « Previous Topic · Archive · Next Topic » |
| Track Topic · E-mail Topic |
4:51 PM Jul 13
|
Theme Designed by McKee91
Powered by ZetaBoards Premium · Privacy Policy






4:51 PM Jul 13