What I Wish I Knew Before Writing HTML

HTML5 logo with HTML tags such as DOCTYPE, head, title, body, and various heading tags on an orange background

Learning HTML can be confusing at first, especially if you expect it to behave like a programming language. When I first started, I didn’t fully understand what HTML was or how it fit into building a website. Here are four things I wish I had known before I began writing HTML.


1. HTML Is Not a Programming Language

HTML is a markup language, not a programming language. This means it is used to organize and structure content on a webpage, but it does not control how the page looks or how it behaves. If you want to make your website visually appealing, you need to use CSS (Cascading Style Sheets). If you want to make it interactive, you need to use JavaScript. HTML alone will only give you the basic structure.


2. HTML Uses Elements Made of Tags

HTML is built with elements, and elements are made with tags. Most tags come in pairs: an opening tag, the content, and a closing tag. For example, a paragraph element looks like this: <p>This is a paragraph.</p>.

Each tag tells the browser how to display the content inside it. Some of the most common HTML tags include:

  • <html> — the main container for the entire HTML document

  • <head> — contains information about the webpage (like the title)

  • <title> — sets the title that appears on the browser tab

  • <body> — contains everything you see on the page

  • <h1> — creates a top-level heading

  • <p> — creates a paragraph of text

Understanding how these elements work is key to writing clean and organized HTML.


3. Choosing the Right HTML Editor

There are many tools available to help you write HTML. For beginners, web-based editors like Replit, CodePen, or JSFiddle are easy to use and let you see your code output immediately. As you get more comfortable, you can try more advanced editors like Visual Studio Code or Sublime Text. These tools offer helpful features like auto-complete and syntax highlighting that make writing code faster and easier.


4. HTML Works Together with CSS and JavaScript

Modern websites use three core technologies: HTML, CSS, and JavaScript. HTML gives your site its structure, CSS controls how it looks, and JavaScript makes it interactive. For example, HTML might create a button, CSS styles it with color and spacing, and JavaScript makes it respond to clicks. Learning how these three tools work together will help you build better websites.


Want to Learn More?

A great place to start is the W3Schools HTML Tutorial. It’s beginner-friendly, free to use, and full of examples you can try on your own.


What Do You Think?

What do you wish you had known before writing your first HTML page? Share your thoughts in the comments and keep the conversation going.

Author: SiqiHu

2 thoughts on “What I Wish I Knew Before Writing HTML”

  1. Thanks for sharing these basics of getting started with HTML. Working on websites for the first time in IS 409, I often find myself following along with coding the elements in HTML without really understanding how everything works and fits together. Your post, along with opate22’s, have provided some valuable syntheses of our class.

Leave a Reply

Your email address will not be published. Required fields are marked *