HTML

Last Updated: 9/19/2022

Introduction

What is HTML?

  • HTML stands for Hyper Text Markup Language
  • HTML is not a programming language but a Markup Language
  • HTML is used for creating Web pages
  • HTML defines the meaning and structure of web content.
  • HTML tell the browser how to display the content
  • HTML consists of a series of elements
  • Latest Version is HTML 5
  • Hypertext refers to links that connect web pages to one another, either within a single website or between websites.
  • HTML uses markup to annotate text, images, and other content for display in a Web browser.

Software Requirements

  • A text editor to write code. Eg Notepad, Notepad++, Sublime, Visual Studio Code
  • Web browser to test code. Eg Google Chrome, Microsoft Edge, Firefox

Creating HTML file

  • Html file is saved with .html or .htm extension

Resources

Basics

  • HTML consists of elements

Elements

  • An HTML element is defined by a start tag, some content, and an end tag

Syntax <tagname> Content goes here... </tagname>

Example <p>sample text</p> <p> is the opening tag </p> is the closing tag sample text is the content

Attributes

Attributes provide additional information about elements <meta charset="utf-8">