HTML Fundamentals

Structure the web with HTML – the foundation of modern web development

The Building Blocks of HTML

HTML Tags

HTML uses elements and tags to define different parts of a web page. Elements define the content type. Tags define their behavior and style on a page.


<h1>Hello, World!</h1>
<p>This is a paragraph</p>
                            

Elements

HTML elements define content. An element consists of a start tag, content, and end tag. Some elements don't need a closing tag.


<h1>My Heading</h1>
                            
  • Opening tag <h1>
  • Content: Hello World
  • Closing tag </h1>