Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Any free XHTML skins for DNN 5 ?Any free XHTML skins for DNN 5 ?
Previous
 
Next
New Post
1/12/2009 4:42 AM
 

Unless I am way off the mark XHTML is a pretty simple extension to HTML.

HTML is a little sloppy about things like having every tag closed properly.  The price of that sloppiness is that different browsers do not gurantee identical treatment for these loosely specified edges.

XHTML is the same HTML tags that you know and love, with the strict XML rules for properly closing tags (other things are stricter too).  Arguably XHTM is HTML done properly - so it should not be too scary. 

Once you have tightened up on your HTML then you may (OK - should) choose to add a DOCTYPE to tell the browser just how tight you are being.  The DOCTYPE tells the browser that it need not worry about those loose edge cases because you don't intend to have any loose edge cases.  This gives much more predictable behaviour across different browsers.

Now, experts, am I way off the mark?


Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
1/12/2009 6:53 AM
 

@Richard, your not completely right (<< edit, error in my initial post)

An HTML skin and an XHTML skin can be equally sloppy.

The thing is that most people who create XHTML skins, care about validation, so they make sure there skins are VALID XHTML.

XHTML is not difficult it is actually easier since Internet Explorer behaves better with that doctype an you needs less CSS hacks.

So it takes a bit more work to create an XHTML complaint skin (and everybody should IMO), but even if the skin is not 100% compliant the skin will still work, just like a "sloppy" HTML skin does.

XHTML valid skins are not difficult IMO, here are the most important things to consider:

(from this blog)

-All tags should be closed
Wrong: <br>
<hr>
<img src="test.gif" alt="test">
Correct: <br />
<hr />
<img src="test.gif" alt="test" />

-All attributes should be in lowercase
Wrong: <div Class="test">
<div onClick="myfunction">
Correct: <div class="test">
<div onclick="myfunction">

-All Attribute values should be quoted:
Wrong: <td colspan=2>
Correct: <td colspan="2">

-All image tags should have alt attribute defined.
Wrong: <img src="test.gif" />
Correct: <img src="test.gif" alt="test image" />

-Some HTML elements have been deprecated
Wrong: <center></center>
Correct: <div class="DNNAligncenter"></div>

-You cannot use Block elements inside inline elements:
Wrong: <span><div>test</div></span>
Correct: <div><div>test</div></div>
This is often caused by the use of the label control, use the literal control instead (with a div). If you have to add a block element inside an inline element, use an inline element and set its CSS to display:block, the result is the same and it will validate. Please note that a <p> element can not contain any block element either so use divs.

-Script tags must have a type="text/Javascript"
Wrong: <script src="myscript.js" language="javascript"></script>
Correct: <script src="myscript.js" type="text/javascript"></script>

- Links to external CSS stylesheet inside the body of the page are not compliant
A Link to an external stylesheet must be in the <head> of the page to be compliant
For modules, move all this CSS to module.css, if it's dynamic CSS, write it in the head of the page.
Skins should have all CSS in either in skin.css of "skinname".css

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Any free XHTML skins for DNN 5 ?Any free XHTML skins for DNN 5 ?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out