- HTML Getting started with HTML Hello World
- Element insight
- Creating a simple page
- Simple page break down
- Html Tutorial Hello World
- Steps to create HTML page
- 1. Text Editor
- 2. HTMP Code
- 3. Save It
- 4. Demo
- Explanation of code
- Hello World in HTML
- An HTML Hello World Example, the Basic HTML Web Page
- Understanding the Hello World HTML Code
- Whitespace Handling
- The HTML5 Specifications
- Summary
- Do you have a question or comment about this article?
HTML Getting started with HTML Hello World
HTML (Hypertext Markup Language) uses a markup system composed of elements which represent specific content. Markup means that with HTML you declare what is presented to a viewer, not how it is presented. Visual representations are defined by Cascading Style Sheets (CSS) and realized by browsers. Still existing elements that allow for such, like e.g. font , «are entirely obsolete, and must not be used by authors» [1] .
HTML is sometimes called a programming language but it has no logic, so is a markup language. HTML tags provide semantic meaning and machine-readability to the content in the page.
An element usually consists of an opening tag (
There are some HTML elements that don’t have a closing tag or any contents. These are called void elements. Void elements include , , and .
Element names can be thought of as descriptive keywords for the content they contain, such as video , audio , table , footer .
A HTML page may consist of potentially hundreds of elements which are then read by a web browser, interpreted and rendered into human readable or audible content on the screen.
For this document it is important to note the difference between elements and tags:
Elements: video , audio , table , footer
Element insight
The
tag represents a common paragraph.
Elements commonly have an opening tag and a closing tag. The opening tag contains the element’s name in angle brackets (
). The closing tag is identical to the opening tag with the addition of a forward slash ( / ) between the opening bracket and the element’s name (
).
Content can then go between these two tags:
This is a simple paragraph.
.
Creating a simple page
The following HTML example creates a simple «Hello World» web page.
HTML files can be created using any text editor. The files must be saved with a .html or .htm [2] extension in order to be recognized as HTML files.
Once created, this file can be opened in any web browser.
Hello World!
This is a simple paragraph.
Simple page break down
These are the tags used in the example:
Tag | Meaning |
---|---|
Defines the HTML version used in the document. In this case it is HTML5. See the doctypes topic for more information. | |
Opens the page. No markup should come after the closing tag ( |