Wikipedia:WikiProject Usability/HTML: Difference between revisions

Content deleted Content added
M~enwiki (talk | contribs)
No edit summary
Line 1:
Wikipedia allows the use of [[HTML]] directly, and the use of [[CSS]] through the <tt>style=" "</tt> and <tt>class=" "</tt> elements.
Wikipedia allows the use of [[HTML]], and through the style="" and class="" elements, the use of [[CSS]]. The use of HTML instead of [[Wiki markup]] is strongly discouraged, because it makes the edit pages hard to read, and on a wiki the readability of the edit page is almost as important as the readability of the page itself, because nobody wants to edit something that they don't understand.
 
We believe that:
However, occasionally, such as when you are creating tables, notices, and so on, for which there is no markup defined, it must be used.
* The use of HTML instead of [[Wiki markup]] is strongly discouraged
* If HTML and CSS ''must'' be used, editors should know how to use properly, with regard to:
** [[W3C]] standards
** Cross-browser compatability
 
== Why HTML should be used conservatively ==
== Primer ==
 
Wikipedia allows the use of [[HTML]], and through the style="" and class="" elements, the use of [[CSS]]. The use of HTML instead of [[Wiki markup]] is strongly discouraged, because it makes the edit pages hard to read, and on a wiki the readability of the edit page is almost as important as the readability of the page itself, because nobody wants to edit something that they don't understand.
 
However, occasionallyOccasionally, such as when you are creating tables, notices, and so on, (for which there is no markup defined,) itHTML/CSS must be used.
 
== HTML and CSS primer ==
 
HTML is simple to use - just put a pair of tags around a word, <nowiki><i>italics</i></nowiki>, and it will show up <i>as the tags defined it</i>. Most HTML elements, like bold (strong, b), italic (em, i), list (li), heading (h1, h2...) and even table (table) have their equivelant in the markup, so should be avoided. The CSS, which you can think of as the "display attributes" may be added to the markup itself - this is covered later.