Learn this written chapter step-by-step alongside the CodeToCareer series.
Zero coding experience needed. Learn what HTML actually is, how tags (<tag>) work, and build your very first interactive webpage right now.
Think of HTML like labeling boxes in a move. Putting <heading>My Name</heading> tells the browser 'Hey, make this big and important!' Putting <p>Hello</p> tells it 'This is regular text.'
If you have never written a single line of code in your life, you are in the right place!
Almost everything in HTML comes in pairs with an Opening Tag and a Closing Tag:
<p> is the Opening Tag (tells the browser: "A paragraph starts here").Hello World is the Content (the actual text on the screen).</p> is the Closing Tag (notice the forward slash / — it tells the browser: "The paragraph ends here").<p>This is a paragraph of text on my website!</p><h1> is the biggest title, <h6> is the smallest subtitle.Think of an HTML tag like a pair of bookends: <p> is the left bookend, </p> is the right bookend, and your text sits safely between them.