BeSmart Computer Education Logo
BeSmart Computer Education Modern Computer Coaching in Haldwani
Call for Offline Batches
Tag Description Effective Usage Instructions Example
<!DOCTYPE>HTML version declarationAlways first line; use <!DOCTYPE html> for HTML5.
<!DOCTYPE html>
<html>Root elementSet language with lang for SEO/a11y.
<html lang="en">...</html>
<head>Document metadataPut meta, title, links, styles/scripts (not visible content).
<head>...</head>
<title>Browser tab titleKeep <60 chars; add brand/keywords.
<title>BeSmart — HTML Tags Guide</title>
<base>Base URL/targetOnly one per page; affects all relative links.
<base href="https://besmartcomputer.com/" target="_blank">
<meta>Metadata nodesCharset, viewport, description, og/meta, etc.
<meta name="description" content="BeSmart Computer Education — Haldwani">
<link>External resourcesStylesheets, icons, preconnect/preload.
<link rel="stylesheet" href="styles.css">
<style>Embedded CSSSmall pages/overrides; keep scoped.
<style>h1{color:#1d4ed8}</style>
<script>Client-side JSPrefer defer or type="module".
<script defer src="app.js"></script>
<noscript>Fallback when JS offProvide essential info/CTA.
<noscript>Enable JS to use BeSmart demos.</noscript>
<body>Visible content wrapperOne per document; apply global layout classes here.
<body>...</body>
<header>Intro/branding areaTop section or section header; logo + nav.
<header>BeSmart Header</header>
<nav>Navigation linksUse clear labels; add aria-label if needed.
<nav aria-label="Main"><a href="#tags">Tags</a></nav>
<main>Primary contentOne per page; skip headers/footers/sidebars.
<main>All HTML Tags Table</main>
<section>Thematic groupingAlways include a heading inside.
<section><h2>Media</h2>...</section>
<article>Self-contained unitBlog/news card that stands alone.
<article><h3>BeSmart Update</h3></article>
<aside>Complementary contentTips/ads/related info; not core flow.
<aside>Tip: Use semantic HTML</aside>
<footer>Footer contentCopyright, contacts, links.
<footer>&copy; BeSmart</footer>
<address>Contact informationUse for org/person postal/email/phone.
<address>BeSmart, Haldwani, India</address>
<figure>Media + captionWrap images/charts with a caption.
<figure><img src="logo.png" alt="BeSmart"><figcaption>Brand Mark</figcaption></figure>
<figcaption>Caption for figureFirst/last child of <figure>.
<figcaption>BeSmart Logo</figcaption>
<h1>…<h6>Headings levelsRespect hierarchy (h1→h2→h3…).
<h1>BeSmart</h1> <h2>HTML</h2>
<p>ParagraphKeep concise; use CSS for spacing.
<p>Learn at BeSmart Haldwani.</p>
<span>Inline wrapperStyle small text fragments.
<p>Join <span class="brand">BeSmart</span></p>
<div>Generic blockPrefer semantic tags when possible.
<div class="card">...</div>
<a>HyperlinkDescriptive text; external links: rel="noopener".
<a href="https://besmartcomputer.com" target="_blank" rel="noopener">Visit BeSmart</a>
<em>Stress emphasisScreen-readers emphasize.
<p>Learn <em>fast</em>.</p>
<strong>Strong importanceSemantic bold; not just visual.
<strong>Important:</strong> Semantic HTML
<small>Side commentsLegal notes/footnotes.
<small>*Limited seats</small>
<mark>Highlight textShow search hits or emphasis.
<p>Best for <mark>Haldwani</mark> learners.</p>
<b>Stylistic boldUse sparingly; prefer <strong>.
<b>BeSmart</b>
<i>Stylistic italicUse <em> for emphasis.
<i>Term</i>
<u>Underline (presentational)Avoid link confusion.
<u>BeSmart</u>
<s>No longer accurateShow old price/state.
<s>₹9,999</s> ₹6,499
<del>Deleted textAdd datetime when possible.
<del datetime="2025-10-31">Old syllabus</del>
<ins>Inserted textChange tracking with datetime.
<ins datetime="2025-10-31">New module</ins>
<sub>/<sup>Sub/superscriptChemistry/math/footnotes.
H<sub>2</sub>O, x<sup>2</sup>
<q>Inline quotationBrowser adds quotes automatically.
<q>BeSmart rocks!</q>
<blockquote>Block quotationUse cite attribute for source.
<blockquote cite="https://besmartcomputer.com">...</blockquote>
<cite>Work titleBooks/reports/media titles.
<cite>BeSmart HTML Guide</cite>
<abbr>AbbreviationExpand via title attribute.
<abbr title="BeSmart Computer Education">BCE</abbr>
<dfn>Term being definedPlace near its definition.
<dfn>SEO</dfn> is …
<time>Date/timeUse machine-readable datetime.
<time datetime="2025-10-31">Oct 31, 2025</time>
<data>Machine valueBind a readable label to a value.
<data value="101">HTML 101</data>
<code>Inline codeWrap blocks inside <pre>.
<code>console.log('BeSmart')</code>
<pre>Preformatted blockWhitespace preserved; ideal for code.
<pre>line 1\nline 2</pre>
<kbd>User input (keys)Show shortcuts clearly.
<kbd>Ctrl</kbd>+<kbd>S</kbd>
<samp>Sample outputProgram/console output.
<samp>OK 200</samp>
<var>Variable nameMath/program variables.
<var>x</var> = 42
<bdi>Bi-di isolationIsolate mixed-direction text.
<bdi>علي</bdi>
<bdo>Bi-di overrideSet dir="rtl|ltr".
<bdo dir="rtl">BeSmart</bdo>
<wbr>Optional line breakBreak long words/URLs.
be<wbr>smart<wbr>computer.com
<br>Line breakUse sparingly; prefer CSS margins.
BeSmart<br>Haldwani
<hr>Thematic breakSeparate sections of content.
<hr>
<ruby>/<rb>/<rt>/<rp>/<rtc>Ruby annotationsEast Asian pronunciation guides.
<ruby><rb>学</rb><rt>study</rt><rp>( </rp><rtc><rt>gaku</rt></rtc><rp> )</rp></ruby>
<ul>/<ol>/<li>Lists (unordered/ordered)Nesting allowed; keep items parallel.
<ul><li>HTML</li><li>CSS</li></ul>
<dl>/<dt>/<dd>Description listGlossaries/FAQs key–value pairs.
<dl><dt>BeSmart</dt><dd>Haldwani</dd></dl>
<img>ImageAlways meaningful alt; optimize size.
<img src="https://besmartcomputer.com/wp-content/uploads/2025/10/Be-Smart-logo-1-1.png" alt="BeSmart logo" width="160">
<picture>Responsive imagesArt direction with multiple sources.
<picture>
  <source srcset="logo.avif" type="image/avif">
  <img src="logo.png" alt="BeSmart">
</picture>
<source>Media sourceUse inside <audio>/<video>/<picture>.
<source src="intro.mp3" type="audio/mpeg">
<audio>Audio playerAdd controls; provide formats.
<audio controls><source src="intro.mp3" type="audio/mpeg"></audio>
<video>Video playercontrols, dimensions, poster, captions.
<video controls width="360">
  <source src="demo.mp4" type="video/mp4">
</video>
<track>Timed textCaptions/subtitles for media.
<track kind="captions" srclang="en" src="cap.vtt" label="English">
<map>/<area>Image mapClickable regions; include alt text.
<img src="lab.png" usemap="#campus" alt="Campus">
<map name="campus"><area shape="rect" coords="0,0,100,100" href="#labs" alt="Labs"></map>
<iframe>Embed pageUse sandbox, loading="lazy" for security/perf.
<iframe src="https://besmartcomputer.com" width="400" height="260" loading="lazy" sandbox></iframe>
<embed>External resourcePDF/legacy; prefer native HTML when possible.
<embed src="brochure.pdf" type="application/pdf" width="300" height="200">
<object>/<param>External contentProvide fallback within <object>.
<object data="doc.pdf" type="application/pdf">
  <param name="view" value="Fit">PDF fallback text
</object>
<table>Tabular dataNot for layout; make responsive.
<table>...</table>
<caption>Table titleFirst child of <table>.
<caption>BeSmart Timetable</caption>
<colgroup>/<col>Column groupsSet widths/backgrounds per column.
<colgroup><col span="1" style="width:30%"></colgroup>
<thead>/<tbody>/<tfoot>Table sectionsSticky header via CSS on <thead>.
<thead>...</thead> <tbody>...</tbody>
<tr>/<th>/<td>Rows & cellsscope on headers for a11y.
<tr><th scope="col">Course</th><td>HTML</td></tr>
<form>Form containerUse proper action/method; group logically.
<form action="/submit" method="post">...</form>
<label>Label for inputfor attribute must match input id.
<label for="name">Name</label>
<input>Form controlUse correct type (text, email, date, etc.).
<input id="name" type="text" placeholder="BeSmart student">
<textarea>Multi-line inputSet rows/cols; use for long text.
<textarea rows="4">Goal: Learn HTML</textarea>
<button>Clickable buttontype="submit" / button / reset.
<button type="submit">Send</button>
<select>/<option>DropdownKeyboard friendly; add clear labels.
<select><option>HTML</option><option>CSS</option></select>
<optgroup>Group optionsLabel groups for long lists.
<select><optgroup label="Web"><option>JS</option></optgroup></select>
<datalist>Autocomplete listConnect via input’s list attribute.
<input list="courses"><datalist id="courses"><option value="HTML"></datalist>
<fieldset>/<legend>Group controlsImproves structure/accessibility.
<fieldset><legend>Enroll</legend>...</fieldset>
<output>Calculation resultUpdate via JS or form events.
<output id="total">0</output>
<progress>Task progressSet value / max.
<progress value="70" max="100">70%</progress>
<meter>Scalar measurementUse min/max/low/high/optimum.
<meter min="0" max="1" value=".8">80%</meter>
<canvas>Scripted drawingSet width/height as attributes; draw via JS.
<canvas id="c" width="200" height="100"></canvas>
<svg>Vector graphicsInline scalable graphics in HTML.
<svg width="80" height="80"><circle cx="40" cy="40" r="30" /></svg>
<details>/<summary>Disclosure widgetExpandable sections without JS.
<details><summary>Show tips</summary>Use semantic HTML</details>
<dialog>Modal dialogUse .showModal()/.close() in JS.
<dialog open>BeSmart says hi!</dialog>
<template>Client-side templateHidden until cloned via JS; ideal for rows/cards.
<template id="rowTpl"><tr>...</tr></template>
<slot>Shadow DOM slotNamed/unnamed slots in custom elements.
<slot name="cta">Default CTA</slot>
<center>Deprecated centeringUse CSS text-align:center.
<!-- Avoid: <center>...</center> -->
<font>Deprecated font stylingUse CSS for typography.
<!-- Avoid: <font color="red">...</font> -->
<big>/<tt>/<strike>Deprecated text tagsUse CSS or semantic alternatives.
<!-- Avoid <big> <tt> <strike> -->
<acronym>Deprecated abbreviationUse <abbr> instead.
<!-- Avoid: <acronym> -->
<applet>Deprecated Java appletUse modern web APIs.
<!-- Avoid: <applet> -->
<frameset>/<frame>/<noframes>Deprecated framesUse iframes/CSS layouts.
<!-- Avoid frameset/frame/noframes -->
<basefont>Deprecated base fontUse CSS.
<!-- Avoid: <basefont> -->
<dir>Deprecated listUse <ul>/<ol>.
<!-- Avoid: <dir> -->
<keygen>Deprecated key-pair form controlUse Web Crypto / server flows.
<!-- Avoid: <keygen> -->
<menu>/<menuitem>Obsolete command menuPrefer buttons/UL; menuitem removed.
<!-- Avoid: <menu><menuitem> -->
<marquee> / <blink>Non-standard animationsUse CSS/JS animations.
<!-- Avoid: <marquee> / <blink> -->

Leave a Comment