To get the element/tag name with jQuery:
$( '.selector' ).get( 0 ).tagName
To get the element/tag name with jQuery:
$( '.selector' ).get( 0 ).tagName
Found this which said:
$('<div/>').text('This is fun & stuff').html();
My CSS height value wasn’t being applied. Found this. The problem was that I needed to specify heights for all of the ancestor elements. Bug fixed!
Today I read What is the Meta Refresh Tag? about the HTML Meta Refresh facility, basically:
<meta http-equiv="refresh" content="0;url=https://www.jj5.net/">
Today I read about how to link to archive.org videos…
Today I was forced to lookup how to treat <blockquote> and <p> elements. It turns out you wrap paragraphs with blockquote, i.e.:
<blockquote><p>...</p></blockquote>
Today I had to look up all the various ways HTML might nominate a content-type and I found Character encodings in HTML over on Wikipedia which had all the answers…
Today I had to lookup how to set the target frame of a form.
Basically you set the ‘target’ attribute on the form to the name of the frame you want to target.
Today I discovered the $wgRawHtml setting which allows for the inclusion of HTML in MediaWiki pages. Wicked! :)
Found a list of HTML Singleton Tags, the tags that don’t require a closing tag.