Examples

HTML Basic Page

Creating a Basic HTML Page

Basic HTML page uses <!DOCTYPE html>, <head>, and <body> for structure.

Understanding the HTML Document Structure

An HTML document is the foundation of any web page. To create a basic HTML page, you need to understand the essential elements that build the structure. These include the , , and tags.

Defining the Document Type

The declaration is crucial as it tells the web browser that the document is an HTML5 document. It must be the very first thing in your HTML document, before the tag.

The Head Section

The section contains meta-information about the HTML document, such as its character set, title, and links to stylesheets or scripts. Here's a basic example of a section:

The Body Section

The section contains the content that is displayed on the web page, such as text, images, and other media. Everything you want the user to see or interact with goes inside the tag.

Putting It All Together

Now that you have seen the individual parts, let's combine them to form a complete HTML page structure. This example includes all the elements we've discussed so far.

Previous
Microdata