Hyper Text Markup Language
Element/tag
Element close
Attribute
Element text
Cascading Style Sheets
Applying CSS to element
Classname
Input with type="text" attriubute
<div id="container"> Content </div>
#container { background: blue; width: 100px; height: 100px; display: flex; justify-content: center; align-items: center; }
const container = document.getElementById('container'); // on click of container bg color changes container.addEventListener('click', ()) => { container.style.background = 'red'; );
Codepen: https://codepen.io/pankajparkar-the-styleful/pen/qBdzjjK
We will take a look at it in next video.
By Pankaj Parkar
Indian | 30 | Ex MVP | Angular GDE