HTML, an initialism of Hypertext Markup Language, is the predominant markup language for web pages. It provides a means to describe the structure of text-based information in a document — by denoting certain text as headings, paragraphs, lists, and so on — and to supplement that text with interactive forms, embedded images, and other objects. HTML is written in the form of labels (known as tags), surrounded by angle brackets. HTML can also describe, to some degree, the appearance and semantics of a document, and can include embedded scripting language code which can affect the behavior of web browsers and other HTML processors.
HTML is also often used to refer to content of the MIME type text/html or even more broadly as a generic term for HTML whether in its XML-descended form (such as XHTML 1.0 and later) or its form descended directly from SGML (such as HTML 4.01 and earlier).
Elements are the basic structure for HTML markup. Elements have two basic properties: attributes and content. Each attribute and each element’s content has certain restrictions that must be followed for an HTML document to be considered valid. An element usually has a start label (e.g.
<label>) and an end label (e.g.
</label>). The element’s attributes are contained in the start label and content is located between the labels (e.g.
<label attribute="value">Content</label>). Some elements, such as
<br>, do not have any content and so need no closing label.
Structural markup describes the purpose of text,for example,
<h2>Golf</h2> establishes “Golf” as a second-level heading. Structural markup does not denote any specific rendering, but most web browsers have standardized on how elements should be formatted. Further styling should be done with Cascading Style Sheets (CSS).
Presentational markup describes the appearance of the text, regardless of its function.For example
<b>boldface</b> indicates that visual output devices should render “boldface” in bold text, but gives no indication what devices which are unable to do this should do.
Hypertext markup links parts of the document to other documents. HTML up through version XHTML 1.1 requires the use of an anchor element to create a hyperlink in the flow of text:
<a>Wikipedia</a>. However, the
href attribute must also be set to a valid URL so for example the HTML code,
<a href="http://en.wikipedia.org/">Wikipedia</a>, will render the word “ ” as a hyperlink.
There are some basic HTML basic codes such as:
- <html>: Defines the beginning of HTML’s document which indicates to the browser that, which comes next is the HTML code.
- <head>: Defines the top of HTML’s code which contains information that is not seen to the browser.
<title>: Defines the title of the page.
<link>: To link the place to icones e.g.<link rel=”stylesheet” href=”/style.css” type=”text/css”>
<body>: Defines the principal content. It is the part shown by tha browser here we can find:
- <h1>, <h2>, <h3>, <h4>, <h5>, <h6>: titles depending to the importance.
- <a>: A link in or out of the web site. It must be defined by the atrute href.
- <div>: Page area
- <img>: Images, requires src atribute.
- <font color=”#rrggbb”>: Color of the text, represented by the code hexadecimal.
- <b>: Text in bold.
- <i>: Text in italics.
- <u>: Text underlined.
The majority should be closed like they are opened “/”, e.g:
- <table><tr><td> Content of a cell</td></tr></table>
- <script> Code of an script put it on the page </script>
Libro-e(2007,23)de novienmvbre.Wikipedia, La enciclopedia libre. Fecha de consulta, Noviembre,24,2007, 10:45 from