Print Search
Content Actions
Wiki Search
Random Art
Update
(Well Formed Document)
(Well Formed Document)
Line 27: Line 27:
 
This is the '''MOST IMPORTANT''' thing to know about HTML editing.  In the earlier versions of HTML, it did not have to well formed, but now it does.
 
This is the '''MOST IMPORTANT''' thing to know about HTML editing.  In the earlier versions of HTML, it did not have to well formed, but now it does.
  
'''Well formed'''
 
 
* For every start element there is a end element.
 
* For every start element there is a end element.
 
* Elements are properly nested
 
* Elements are properly nested

Revision as of 06:28, 8 December 2005

Purpose

There are many different places that members and especially volunteers add page markup. While, this is a positive thing, we need to try to do so in a compatibile way.


The End Result

EB Pages are XHTML 1.0 Strict. For the most people, that has little to no impact. The average user need only ensure that the XML (HTML) document is well formed.

Wiki Guidelines

In general, use as much non-HTML wiki markup as possible. Avoid using the <br/>, <p/>, <b>, <i> and <u> HTML elements just to name a few. This way we can more easily control the quality of the page layout.

Forum Guidelines

Use the forum style markup only.

HTML Guidelines

For the most part this applied to the volunteers, but it good reading for users who wish to embed html in the wiki pages (not advised, but not forbidden).

Definitions

Element 
a.k.a. Tag, A structural part of the XML document. For example, <p> </p> is a paragraph element.
Attribute 
A property of an element expressed as name and value pair. For example, <p style="font-color:red"></p> is a paragraph element whose text will be displayed in the color red.


Well Formed Document

This is the MOST IMPORTANT thing to know about HTML editing. In the earlier versions of HTML, it did not have to well formed, but now it does.

  • For every start element there is a end element.
  • Elements are properly nested
  • All attributes have a value
  • All attribute values ar quoted with double quotes
Bad Good Why
This is my first paragraph. <p> And this is my second. <p>This is my first paragraph.</p> <p>And this is my second.</p> The element p must have a beginning and an end.
This is my first line. <br> And this is my second. This is my first line.<br/> And this is my second. The element brdoes not contain text, so we must use a slash at the end to indicate that the element does not continue on.
<b> i like <i> fomatting </b></i>! <b> i like <i> fomatting </i></b>! Improperly nested elements.
<img align=right src=image.jpg> <img align="right" src="image.jpg"> Attribute values must be quoted