(HTML, DOM API, CSS)
<html>
My Title
<body>
Header
Content
</body>
</html>
Block content
Inline content
Inline content 2
Paragraph
Paragraph
Header size 6
- unordered list item 1
- unordered list item 2
- ordered list item 1
- ordered list item 2
...
- list item 1
Added to the <head> tag
/* class selector */
.class-name {
background-color: blue;
}
/* id selector */
#elementId {
color: red;
}
<link rel="stylesheet" href="https://cdn.rawgit.com/kimeiga/bahunya/css/bahunya-0.1.3.css" />
Added to the end of the <body> tag
const container = document.querySelector('#someId');
// These methods can be called on any DOM elements
const containerChild = container.querySelectorAll('.some-class');
const tasklist = document.createElement('ul');
const listItem = document.createElement('li');
listItem.textContent = 'List item text';
tasklist.appendChild(listItem);
// listen to the click event on an element
document.addEventListener('click', () => console.log('clicked'));