Diferencia entre revisiones de «Lenguaje XHTML»

Contenido eliminado Contenido añadido
Sin resumen de edición
Sin resumen de edición
Línea 23:
Try learning XHTML by writing code rather than using a WYSIWYG editor. You can use a plain text editor such as [[w:Notepad|Notepad]], [[w:SimpleText|SimpleText]] or [[w:Kate|Kate]] for this purpose. [[w:Microsoft FrontPage|Microsoft FrontPage]] often produces pages which looks properly only when viewed with [[w:Microsoft Internet Explorer|Microsoft Internet Explorer]]. Also, it often produces much bigger files than they need to be. [[w:Nvu|Nvu]] is a free XHTML editor which doesn't create pages which look well in just one browser and which are not unneccesarilly big.
 
==TagsEtiquetas andy ElementsElementos==
XHTML uses tags. Tags are pieces of text enclosed in less-than (<) and greater-than (>) signs. An example of a tag in XHTML is the <html> tag, in which all XHTML documents are enclosed. In XHTML all tags shall be lower-cased.
 
Línea 35:
You'll learn what the <span> tag does later.
 
==AUn BasicDocumento XHTML DocumentBásico==
Now, we're going to make a simple XHTML document. As I said before, the document starts with an <html> tag. The document also ends with </html>. The HTML tag is refered to as the root element. Within those tags, there are two elements nested: the <head> element and the <body> element. Of course, other elements may be nested or sub-nested within these elements.
 
Línea 104:
</html>
 
==ParagraphsParágrafos ande <code>id</code>s==
In XHTML, headings are denoted by the tags &lt;h1&gt;, &lt;h2&gt;,..., &lt;h6&gt;. &lt;h1&gt; is the largest heading and &lt;h6&gt; is the smallest. The heading for a section should be in one of these tags, but not the actual section. A paragraph should be placed within a &lt;p&gt; element. A paragraph should not include its heading.