Tags:
create new tag
view all tags
---+ Using HTML, CSS and !JavaScript %STARTINCLUDE% You can use most HTML tags in TWiki topics without a problem. This is useful where you want to add some content that is formatted in a way that is not supported using [[#TWikiShorthand][TWiki shorthand]], for example, you can write =<strike>deleted text</strike>= to get <strike>deleted text</strike>. There are a few usability and technical considerations to keep in mind: * On collaboration pages, it's better *not* to use HTML, but to use TWiki shorthand instead - this keeps the text uncluttered and easy to edit using the plaintext editor. * If you _must_ use HTML, use [[http://www.w3.org/TR/xhtml1/][XHTML 1.0 Transitional]] syntax. * Use =<literal>..</literal>= tags around blocks of HTML to avoid accidental interpretation of TWiki shorthand within the HTML. * %X% Script tags may be filtered out, at the discretion of your TWiki administrator. Recommendations when pasting HTML from other sources (using the plain-text editor): * Copy only text between =<body>= and =</body>= tags. * Remove all empty lines. TWiki inserts =<p />= paragraph tags on empty lines, which causes problems if done between HTML tags that do not allow paragraph tags, like for example between table tags. * Remove leading spaces. TWiki might interpret some text as lists. * Do not span a tag over more than one line. TWiki requires that the opening and closing angle brackets - ==<...>== - of a HTML tag are on the same line, or the tag will be broken. * In your HTML editing program, save without hard line breaks on text wrap. When using a WYSIWYG editor, you can just copy-paste directly into the editor, and the content will be converted to TWiki shorthand automatically when you save. It is also possible to add Cascading Style Sheets ([[http://en.wikipedia.org/wiki/Cascading_Style_Sheets][CSS]]) and [[http://en.wikipedia.org/wiki/JavaScript][JavaScript]] code to TWiki pages, which can be used to make TWiki application more interactive. To prevent TWiki from interpreting some text as markup, it can be enclosed in HTML-escaped <tt><pre></tt>-tags. <table border="0" cellpadding="5" cellspacing="10"> <tr bgcolor="#DDDDDD"><th valign="top"> !JavaScript Example: </th><th valign="top"> CSS Example: <tr bgcolor="#EEEEEE"><td valign="top"> <verbatim> <!-- <pre> --> <script language="javascript"> <!-- // put your JavaScript code here //--> </script> <!-- </pre> --> </verbatim> </td><td valign="top"> <verbatim> <!-- <pre> --> <style type="text/css"> /* put your CSS code here */ </style> <!-- </pre> --> </verbatim> </td></tr></table> %STOPINCLUDE% __Related topics:__ TextFormattingRules, TWikiShorthand -- __Contributors:__ TWiki:Main/KennethLavrsen, TWiki:Main/PeterThoeny
E
dit
|
A
nexar
|
Watch
|
Im
p
rimir
|
H
istórico
: r5
<
r4
<
r3
<
r2
<
r1
|
We
b
|
V
er tópico
|
Ra
w
edit
|
M
ais ações de tópico
Versão do tópico: r5 - 07 Jul 2011
-
TWikiContributor
Home
Site map
Main web
Sandbox web
TWiki web
Web TWiki
User registration
Usuários
Grupos
Índice
Busca
Alterações
Notificações
Fonte RSS
Estatísticas
Preferências
Ver
Raw View
Print version
Find backlinks
History
More topic actions
Editar
Editar modo texto
Attach file or image
Editar preferências do tópico
Marcar novo tópico pai
More topic actions
Referência do usuário
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Manutenção Administrativa
Reference Manual
InterWikis
ManagingUsers
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categorias
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Account
Iniciar sessão
Български
Cesky
Dansk
Deutsch
English
Español
_Français_
Italiano
日本語
한글
Nederlands
Polski
Português
Русский
Svenska
简体中文
簡體中文
E
dit
A
nexar
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Idéias, solicitações, problemas com relação ao TWiki?
Nos dê um retorno
Note:
Please contribute updates to this topic on TWiki.org at
TWiki:TWiki.UsingHTML
.