The hypertext markup language, or HTML, is the language used to publish things using a computer application named a user agent or browser. Put in reverse, a browser is a computer application that receives instructions in a descriptive language, called a meta-language (a language that describes some things), and displays them in its main area which can be the screen or a computer monitor. The language serves two purposes. It primarily describes how something should appear. Secondly, it gives instructions to the browser about how to display something. HTML is primarily used on the Internet, in applications referred to as web-based; but HTML can also be involved in applications that are not used on the Internet. The bottom line is that a browser, or whatever application uses it, must be able to “read” and interpret HTML.
HTML instructions are written in a language of the same name. The instructions, also called code, are written in a simple text document and saved as a computer file. The file must have a normal or regular computer name. The name can have any characters allowed by the operating system, including space in a name. As much as you can, you should avoid including spaces in the names of your HTML files. An HTML file uses the extension .htm or .html. Such a file is called a webpage. An HTML file, or webpage, must reside in a folder or directory. You use the rules of your operating system to create and specify such a folder. You can add as many files as you want in that folder. You can also create sub-folders in the main folder and add all desired files and other sub-folders in the primary sub-folders. The group of files, objects, and sub-folders located in a main folder and serving a common purpose is called a website. The person in charge of the management (and/or creation) of a website (and/or webpage(s)) is called a webmaster. Creating and managing a website (which of course include webpages) is referred to as web design. Adding complexity such as style, interactivity, scripts, and code, is referred to as web development. In computer application, a person who uses an application is referred to as a user. In the Internet, a person who accesses or opens a webpage can be referred to as a visitor.
HTML gives instructions to a browser using small code objects named tags. The primary formula to create a tag is: <tag-name> A tag starts with the LESS THAN sign: <. It is followed by a name, followed by the GREATER THAN sign: >. < and > are required. The names of tags have already been created and you simply use them. You must know what tag to use when, why, and how. The purpose of these lessons is to show you what tag to use when, why, and how. For example, we will see that some tags are used to display text. Some tags are used to display a picture. Some tags are used to change how text or a picture displays.
Normally, HTML is not case-sensitive. This means that a tag name can be completely in lowercase: <something> A tag can be completely in uppercase: <SOMETHING> Or a tag can be in a mixture of lowercase and uppercase: <SomeThing> To avoid confusion in your code, please adopt one case and stick to it. Most webmaster exclusively use lowercase for their tag names.
Some tags must indicate where their job starts and where it ends. For example, if a tab is used to create a paragraph, a column of a newspaper, or a section on a page, the tag must indicate where the paragraph, the column, or the section starts, and where the paragraph, the column, or the section ends. Such a tag uses an end tag. The formula to indicate where the effect of a tag ends is: <tag-name> . . . </tag-name> In this case, the end tag starts with </ followed by the name of the tag and >. The start tag and the end tag must use the same name. Remember to use the same case for both. When necessary, the start tag and the end tag can (should, must) be written on separate lines.
The combination of a start tag and an end tag is called an HTML element, or just an element.
An element is said to be nested if it is created inside of another element. The primary element can be referred to as a parent element. The nested or inside element can be referred to as child element. The primary formula to nest an element is: <parent-tag> . . . <child-tag > . . . < parent-tag> If the child element is to be closed, it must be closed before the end tag of the parent element: <parent-tag> . . . <child-tag> . . . </child-tag> . . . < parent-tag> In the same way, a nested element can have its own nested element(s). There are rules and suggestions pertaining to nested elements:
A comment is a section that the browser will not present to a visitor. The formula to create a comment is: <!—The comment goes here --> |