Computer-Science

HTML, CSS, JavaScript

HTML

HTML TAG

<script>
  document.addEventListener("click", function () {
    alert("Clicked!");
  });
</script>
<img src=β€œκ²½λ‘œ/dog.jpg” alt=β€œμ΄λ―Έμ§€κ°€ μ—†μŠ΅λ‹ˆλ‹€.”>

Layout

HTML form

CSS

CSS(Cascading Style Sheets)λŠ” HTML의 각 μš”μ†Œ(Element)의 style(design, layout etc.)을 μ •μ˜ν•˜μ—¬ ν™”λ©΄(Screen) 등에 μ–΄λ–»κ²Œ λ Œλ”λ§ν•˜λ©΄ λ˜λŠ”μ§€ λΈŒλΌμš°μ €μ—κ²Œ μ„€λͺ…ν•˜κΈ° μœ„ν•œ μ–Έμ–΄

μ°Έκ³  : https://www.w3schools.com/css/css_intro.asp

Selector

μ°Έκ³  : https://www.w3schools.com/css/css_syntax.ASP

HTMLκ³Ό CSS 연동

ν‚€μ›Œλ“œ

크기 λ‹¨μœ„

Box model

μ°Έκ³  : https://www.w3schools.com/css/css_boxmodel.asp

Icon μ‚¬μš©

<link
  href="https://fonts.googleapis.com/icon?family=Material+Icons"
  rel="stylesheet"
/>

JavaScript

문법

const pi = 3.14;

let days = 1;
days = 2;
const num = 1;
const str = "1";

if (num === str) {
  console.log("true");
} else {
  console.log("false");
}
const num = 1;
const str2 = 3;

if (num == num2) {
  console.log("true");
} else {
  console.log("false");
}
function hello(name) {
  console.log(`Hello, ${name}!`);
}

hello("World!");
const hello = (name) => console.log(`Hello, ${name}!`);

hello("World!");

μ‹€ν–‰ 방법

$ node practice.js

HTML tag μ ‘κ·Ό 방법