Inside An HTML File

Pages 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

The rules to write a tag is to go like this:

<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.

Be aware of the difference between the forward slash (/) mentioned with relation to tags, and backslashes (\), which are used by DOS and Windows in directory references on hard drives (as in C:\window or other directory paths). If you accidentally use the backslash in place of a forward slash in HTML, the browser won’t recognize the ending tags.

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.

Filed under HTML XHTML And CSS. You can follow any responses to this entry through the RSS 2.0. You can leave a response by filling following comment form or trackback to this entry from your site

HTML XHTML And CSS' CATEGORY »

Introduction to HTML
From HTML To XHTML
Inside An HTML File
Creating Your First HTML Page
Intergrate CSS

No Responses for “Intergrate CSS”

  1. Geb says:

    genuinely a fantastic post. I will definitely be reading this blog more.

Leave a Reply