Inside an HTML file
Last update on: 05-10-2008Pages written in HTML are plain text files (ASCII), which means that they contain no platform- or program-specific information. Any editor that supports text can read them.HTML files contain the following:
- The text of the page itself.
- HTML tags that indicate page elements, structure, formatting, and hypertext links to other pages or to included media
<thetagname>affected content</thetagname>
The tag name itself (here, thetagname) is enclosed in brackets (< >). HTML tags generally have a beginning and an ending tag surrounding the content they affect. The beginning tag "turns on" a feature (such as headings, bold, italics, underline, and so on), and the ending tag turns it off. Closing tags have the tag name preceded by a slash (/). The opening tag (for example, <p> for paragraphs) and closing tag (for example, </p> for paragraphs) compose what is officially called an HTML element.
Not all HTML tags have both an opening and closing tag. Some tags are only one-sided, and still other tags are containers that hold extra information and text inside the brackets. XHTML 1.0, however, requires that all tags be closed.
Another difference between HTML 4.0 and XHTML 1.0 relates to usage of lowercase tags and attributes. HTML tags are not case sensitive; that is, you can specify them in uppercase, lowercase, or in any mixture. So, <HTML> is the same as <html>, which is the same as <HtMl>. This isn't the case for XHTML 1.0, where all tag and attribute names must be written in lowercase.
HTML XHTML and CSS's lessons:
Introduction To HTMLFrom HTML To XHTML
Inside An HTML File
Creating Your First HTML Page
Intergrate CSS

