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.
==
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.
==
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>
==
In XHTML, headings are denoted by the tags <h1>, <h2>,..., <h6>. <h1> is the largest heading and <h6> 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 <p> element. A paragraph should not include its heading.
|