HyperText Markup Language (HTML) is the main markup language for displaying web pages and other information that can be displayed in a web browser.
HTML is written in the form of HTML elements consisting of tags enclosed in angle brackets (like <html>
), within the web page content. HTML tags most commonly come in pairs like <h1>
and </h1>
, although some tags, known as empty elements, are unpaired, for example <img>
. The first tag in a pair is the start tag, the second tag is the end tag (they are also called opening tags and closing tags). In between these tags web designers can add text, tags, comments and other types of text-based content.
Suffix HTML pages with file extension: .html
(preferred) or .htm
. Set their permissions to be world-readable (chmod 644
). A minimal hello.html says, "Hello, World!".
<html> <head> <title>Hello, World! (HTML)</title> </head> <body> <h1>Hello, World!</h1> </body> </html>
This page last modified: Mon, June 25, 2018 16:08:59
Send your comments to: cse-webmaster@buffalo.edu
© 2024 University at Buffalo. All rights reserved. | Privacy | Accessibility