<!DOCTYPE html>
<!-- Semantic elements -->
<html>
<head>
<meta charset="utf-8">
<title>Semantics</title>
</head>
<body>
<article>
<h1>Lorem Ipsum</h1>
<figure>
<img src="https://goo.gl/zF9eky" alt="Lorem Ipsum">
<figcaption>Lorem Ipsum</figcaption>
</figure>
<details>
<summary>Lorem ipsum dolor sit amet, consectetur adipiscing elit...</summary>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Curabitur vitae hendrerit mauris. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Mauris lacinia scelerisque nibh nec gravida.
Duis malesuada nec nibh sit amet pulvinar.
Phasellus congue porttitor arcu, ut suscipit nibh aliquam vel.
Nunc arcu lectus, egestas ut sem ac, euismod porttitor eros.
Phasellus tincidunt consequat pharetra. Maecenas sodales purus at nulla finibus dapibus.
Nullam varius at nisl vel euismod. Fusce aliquet ligula non tempor fermentum.
Nam fermentum posuere mauris, quis aliquam nibh dictum sed.
</p>
</details>
</article>
</body>
</html>
1. <div> 태그 바꾸기
2. image, caption 바꾸기
3. "Lorem ipsum dolor sit amet, consectetur adipiscing elit..."를 눌렀을 때, 하위의 <p> 태그 내 텍스트들이 보이고, 보이지 않도록(toggled) 하기
[JavaScript] JavaScript #5: 실행 컨텍스트 (0) | 2021.02.01 |
---|---|
[JavaScript] this (0) | 2021.02.01 |
[TestDome] HTML/CSS and JavaScript with jQuery: fix the bugs (ECMAScript 6, jQuery v3.4.1) (0) | 2021.01.31 |
[TestDome] HTML/CSS and JavaScript: Image Gallery (ECMAScript 7) (0) | 2021.01.31 |
[TestDome] HTML/CSS and JavaScript: check digit (ECMAScript 7) (0) | 2021.01.31 |