Is HTML Coding or Scripting?


Larry Thompson

HTML (Hypertext Markup Language) is a fundamental language used for creating webpages. It provides the structure and content of a webpage, defining the various elements such as headings, paragraphs, links, images, and more.

But is HTML coding or scripting? Let’s delve into this question and understand the nature of HTML.

HTML: A Markup Language

HTML is primarily considered a markup language rather than coding or scripting. It serves as a set of instructions that describe the structure and presentation of content within a webpage. The purpose of HTML is to define the various elements and their relationships on a page, allowing browsers to interpret and display them correctly.

Markup languages like HTML use tags to mark up different parts of the content. These tags provide information about how specific elements should be displayed or behave when rendered by a web browser. Let’s explore some examples:

  • Bold Text: To emphasize important text in HTML, we can use the tag. For example, <b>This text will be bold</b>.
  • Underlined Text: If you want to underline text in HTML, you can make use of the tag.

    For instance, <u>This text will be underlined</u>.

  • List:

    To create lists in HTML, we have two types: ordered lists (

      ) and unordered lists (

        ). Each list item is marked with an

      • tag. For example:

      An Ordered List:

      1. List item 1
      2. List item 2
      3. List item 3

      An Unordered List:

      • List item 1
      • List item 2
      • List item 3

      HTML and Scripting Languages

      While HTML itself is not considered a scripting language, it can interact with other scripting languages such as JavaScript. JavaScript is a powerful scripting language that allows for dynamic behavior on webpages. By combining HTML with JavaScript, we can create interactive and responsive web experiences.

      JavaScript code can be embedded within HTML using the