Enterprise Verified
Advertisement
Google AdSense Slot (LEADERBOARD)
Automated High-CTR Ad Rail • Set Publisher ID in config/adsense.php
Syntax 6 min read • Chapter 5 of 32

HTML Elements

An HTML element is defined by a start tag, some content, and an end tag: <tagname>Content...</tagname>.

The HTML element is everything from the start tag to the end tag. Some elements have no content and are empty elements (e.g. <br>).

Example

<!DOCTYPE html>
<html>
<body style="font-family:sans-serif;padding:20px;">
    <h1>Start tag, Content, End tag</h1>
    <p>Line 1<br />Line 2 (Empty element &lt;br /&gt; inserted)</p>
</body>
</html>
Try it Yourself >> Opens live sandboxed code editor
Advertisement
Google AdSense Slot (IN-ARTICLE)
Automated High-CTR Ad Rail • Set Publisher ID in config/adsense.php

Community Q&A & Discussion

No questions yet. Be the first to start the discussion!
Enterprise Operations Suite

Streamline Employee Payroll & Attendance Operations

Eliminate manual spreadsheet errors. Integrate automated attendance tracking, EPF/ESI statutory calculations, and custom GST invoices.

Copied!

AI Learning Assistant

Ready to explain & guide

Hello! I am your MBS Digital AI Tutor. Ask me to explain concepts, review code, or suggest debugging steps.

Quick Starters:
AI Tutor is thinking...