UB Computer Science and Engineering logo

HyperText Markup Language (HTML)

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.

Example

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>

References

  1. https://en.wikipedia.org/wiki/HTML
  2. w3schools.com HTML5 Tutorial

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