Diferencia entre revisiones de «Lenguaje XHTML»

Contenido eliminado Contenido añadido
m Programación:XHTML trasladada a Lenguaje XHTML
Sin resumen de edición
Línea 125:
para obtener esto: [[Main Page#Wikibooks' Sister Projects]].
 
Hagamos un XHTML más largo para ilustrar mejor este punto.
Let's make a bigger XHTML page to illustrate this better.
 
<table>
Línea 167:
<center>[[Media:Wikibooks-paragraph.html|Download here]]</center></td></tr></table>
 
Los ''saltos de línea'' y los separadores están indicados con un elemento vacío, o uno que se cierra a sí mismo usando un signo '/' al final del tag. Los saltos de línea, que crean una nueva línea sin empezar un nuevo párrafo, están definidas por el elemento &lt;br /&gt;. Aunque si seguimos los estándares, es correcto escribirlo como &lt;br /&gt; si no lo escribes como un elemento suelto, algunos navegadores no lo renderizarán de forma correcta. Lo mismo se aplica a los separadores, escritos usando el elemento &lt;hr /&gt;. Los separadores se ven como una línea que cruza la pantalla en horizontal, así:
Line breaks and separators are each denoted by an empty element, or one which closes itself using a '/' at the end of the tag. Line breaks, which create a new line without starting a new paragraph, are denoted with the &lt;br /&gt; element. Although according to the standard it is correct to write it as &lt;br /&gt;, if you don't write it as an empty element, some browsers will not render it correctly. The same goes for the separator, written using the &lt;hr /&gt; element. Separators look like a line going across the screen, like this:
<hr />
(''Note: If you are using the Cologne Blue theme on Wikibooks, you might not see that line. If you don't see it, temporarily switch to a different theme like Standard or Nostalgia'')
 
(''Nota: Si estas usando el tema Cologne Blue en los Wikibooks, puede que no veas esta línea. Si no la ves, cambia temporalmente a un tema diferente como Standard o Nostalgia'')
The space between <code>br</code> and <code>/</code> is needed for some old browsers to display the tag correctly. The standard does not require it nor does it prohibit it.
 
El espacio entre <code>br</code> y <code>/</code> es necesario para que algunos navegadores viejos lo interpreten correctamente. Los estándares no lo requieren pero tampoco lo prohíben.
 
[[Category:Programación|XHTML]]