3 min read•july 23, 2024
Web technologies form the foundation of interactive digital art. structures content, styles it, and adds dynamic behavior. Together, they enable artists to create engaging online experiences.
These tools offer endless possibilities for artistic expression. From responsive designs that adapt to different devices to multimedia integration and canvas-based animations, web technologies empower artists to push creative boundaries in the digital realm.
<tag>content</tag>
) or self-closing tags (<tag />
)<!DOCTYPE html>
declaration, <html>
, <head>
, and <body>
elements<div>
(container), <p>
(paragraph), <h1>
to <h6>
(headings), <a>
(hyperlink), <img>
(image), <ul>
(unordered list), <ol>
(ordered list), <li>
(list item).class
), or IDs (#id
) and apply properties and valuesvar
, let
, or const
function name(parameters) { // code }
document.getElementById()
, document.querySelector()
, document.querySelectorAll()
element.innerHTML
, element.textContent
element.setAttribute()
, element.getAttribute()
element.style.property = 'value'
element.addEventListener('event', function)
transition
property, transition-duration
, transition-timing-function
@keyframes
rule, animation
property, animation-duration
, animation-iteration-count
setInterval()
, setTimeout()
, requestAnimationFrame()
@media (min-width: value) { /* styles */ }
display: flex
, flex-direction
, justify-content
, align-items
display: grid
, grid-template-columns
, grid-template-rows
, grid-area
max-width: 100%
and height: auto
for fluid images<picture>
element and srcset
attribute serve different images based on device characteristicsaspect-ratio
and object-fit
properties<img>
element with src
, alt
, width
, height
attributes or as background images using background-image
CSS property
<audio>
element with src
, controls
, autoplay
, loop
attributes
play()
, pause()
, volume
, currentTime
<video>
element with src
, controls
, autoplay
, loop
, width
, height
attributes
play()
, pause()
, volume
, currentTime
<canvas>
element with width
, height
attributesgetContext('2d')
, fillRect()
, strokeRect()
, beginPath()
, moveTo()
, lineTo()
, arc()
getImageData()
, putImageData()
, createImageData()