Help:HTML

From Library
Jump to navigation Jump to search

Basics

Notes on using HTML with MediaWiki

mw:HTML restriction

  • Configuration
  • wfLoadExtension( 'HTMLTags' );
  • $wgHTMLTagsAttributes['a'] = [ 'href', 'class' ];
  • Usage example:
  • <htmltag tagname="a" href="http://en.wikipedia.org/wiki/Antarctica" class="my-links">Read about Antarctica</htmltag>

Testing HTML elements

Semantic tags

<a />
<a>test</a> see: phabricator:T35886
<address />
<address>test</address> see: [[phabricator:T2671]
<article />
<article>test</article>
<aside />
<aside>test</aside> see: phabricator:T104770
<details /> and <summary />
<details><summary>Show/hide contents</summary>

test </details> see: phabricator:T31118

<footer />
<footer>test</footer>
<header />
<header>test</header>
<link />
<link>test</link>
<main />
<main>test</main>
<meta />
<meta>test</meta>
<meter />
<meter>test</meter> see: phabricator:T211259
<nav />
<nav>test</nav>
<progress />
<progress>test</progress>
<section />
<section>test</section> see: phabricator:T32597
<source />
test
see: phabricator:T39042
<style />
<style>test</style> see: phabricator:T37704


Sections

https://html.spec.whatwg.org/multipage/sections.html
<body />
<body>test</body>
<article />
<article>test</article>
<section />
<section>test</section>
<nav />
<nav>test</nav>
<aside />
<aside>test</aside>
<h1 />

test

<h2 />

test

<h3 />

test

<h4 />

test

<h5 />
test
<h6 />
test
<hgroup />
<hgroup>test</hgroup>
<header />
<header>test</header>
<footer />
<footer>test</footer>
<address />
<address>test</address>


Grouping content

https://html.spec.whatwg.org/multipage/grouping-content.html
<p />

test

<hr />

test
<pre />
test
<blockquote />

test

<ol />
    test
<ul />
    test
<menu />
<menu>test</menu>
<li />
  • test
  • <dl />
    test
    <dt />
    test
    <dd />
    test
    <figure />
    <figure>test</figure>
    <figcaption />
    <figcaption>test</figcaption>
    <main />
    <main>test</main>
    <div />
    test


    Text-level semantics

    https://html.spec.whatwg.org/multipage/text-level-semantics.html
    <em />
    test
    <strong />
    test
    <small />
    test
    <s />
    test
    <cite />
    test
    <q />
    test
    <dfn />
    test
    <abbr />
    test
    <data />
    test
    <var />
    test
    <samp />
    test
    <sub />
    test
    <sup />
    test
    <i />
    test
    <b />
    test
    <u />
    test
    <mark />
    test
    <br />

    test
    <wbr />
    test

    Edits

    https://html.spec.whatwg.org/multipage/edits.html


    <ins />
    test
    <del />
    test

    Embedded content

    https://html.spec.whatwg.org/multipage/embedded-content.html
    <picture />
    <picture>test</picture>
    <source />
    test
    <img />
    <img>test</img>

    Embedding

    https://html.spec.whatwg.org/multipage/iframe-embed-object.html
    <iframe />
    <iframe>test</iframe>
    <embed />
    <embed>test</embed>
    <object />
    <object>test</object>

    Media

    https://html.spec.whatwg.org/multipage/media.html
    <video />
    <video>test</video>
    <audio />
    <audio>test</audio>
    <track />
    <track>test</track>

    Image maps

    https://html.spec.whatwg.org/multipage/image-maps.html
    <map />
    <map>test</map>
    <area />
    <area>test</area>

    Other embedded content

    https://html.spec.whatwg.org/multipage/embedded-content-other.html
    <math />
    <math>test</math>
    <svg />
    <svg>test</svg>

    Tabular data

    https://html.spec.whatwg.org/multipage/tables.html

    TBD

    Forms

    https://html.spec.whatwg.org/multipage/forms.html

    TBD

    Input and buttons

    https://html.spec.whatwg.org/multipage/input.html
    https://html.spec.whatwg.org/multipage/form-elements.html

    TBD

    Interactive

    https://html.spec.whatwg.org/multipage/interactive-elements.html

    TBD

    Scripting

    https://html.spec.whatwg.org/multipage/scripting.html

    TBD

    Canvas

    https://html.spec.whatwg.org/multipage/canvas.html

    TBD

    Custom elements

    https://html.spec.whatwg.org/multipage/custom-elements.html

    TBD

    Missing from HTML5

    https://html.spec.whatwg.org/multipage/semantics-other.html

    TBD

    Microdata

    https://html.spec.whatwg.org/multipage/microdata.html

    TBD


    Other tags

    (To do: separate out by block vs. span types)

    <blockquote />

    test

    <code />
    test
    <kbd />
    test
    <pre />
    test


    References