TIL004_210323

JIYOONยท2021๋…„ 3์›” 23์ผ
0

TIL

๋ชฉ๋ก ๋ณด๊ธฐ
4/42
post-thumbnail

TIL

๐Ÿช“ ๊ฐ์ƒ

๐Ÿ“™ ์—ดํ’ˆํƒ€ 8hour
๐Ÿ‘๐Ÿผ ๋Šฆ๊ฒŒ ์ผ์–ด๋‚œ ๊ฒƒ ๋งŒํšŒ ์œ„ํ•ด ์—ด์‹ฌํžˆ ๊ณต๋ถ€
๐Ÿ‘Ž๐Ÿผ ๋Šฆ๊ฒŒ ์ผ์–ด๋‚จ

๐Ÿš€ ๋ชฉํ‘œ

  • ๋…ธ๋งˆ๋“œ ์ฝ”๋” React ๋ณต์Šต
  • Udemy์—์„œ Javascript ๊ฐ•์ขŒ ์ˆ˜๊ฐ•ํ•˜๊ธฐ (50/682)
  • ๋งค์ผ ์ปค๋ฐ‹ ์—ฐ์† 30์ผ ๋‹ฌ์„ฑํ•˜๊ธฐ (3/30)

[๋งํฌ ๋ชฉ๋ก]

โญ๏ธ MDN Web Docs
The Web Developer Bootcamp 2021
HTML ํŽ˜์ด์ง€ ์†Œ์Šค ๋ณด๊ธฐ ์ข‹์€ ์‚ฌ์ดํŠธ

๐Ÿ“ฃ The Web Developer Bootcamp 2021: 3.20-5.45

HTML 3: The Essentials

๊ฒ€์ƒ‰๋ฒ•
html form MDN

๐Ÿ”ธ vsc์—์„œ ์˜ค๋ฅธ์ชฝ ๋์œผ๋กœ ๊ฐ€๋Š” ๋ฒ•
cmd+โžก๏ธŽ

Elements (Paragraph & Heading)

h1์€ ํ•œ ํŽ˜์ด์ง€ ๋‹น ํ•˜๋‚˜์”ฉ๋งŒ!

<p>lorem + tab->Lorem ipsum text</p>

lorem3 +tab: Lorem ipsum text3

h1, h2 ์•ˆ ์“ฐ๊ณ  h3 ์“ฐ์ง€ ๋ง ๊ฒƒ (์‚ฌ์ด์ฆˆ ๋งž์ถฐ์„œ ์“ฐ์ง€ ๋ง๊ณ  ์ •์„๋Œ€๋กœ)

โœ… Pangolin Practice (Done)

HTML: Boilerplate

HTMl element=Root element

<!DOCTYPE html>
<Head> meata infromation
<Title> Doensn't show up in the page itself,
shows up in the browser.</Title></Head>
<Body> all of the content of the document</Body>

๐Ÿ”ธ !+tab: !DOCTYPE html ์ƒ์„ฑ

HTML: List elements

<ol>orderd elements (numbered list)</ol> 
<ul>unorderd elements (bullet point)</ul> 
<li>list item(single itme in list) </li>

parent & childern ๊ด€๊ณ„ - ul ์•ˆ์— li, li ์•ˆ์— ul, ul ์•ˆ ol, ๋ชจ๋‘ ๊ฐ€๋Šฅ

๐Ÿ”ธ shift+option+โ†‘ or โ†“ : duplicate the line

โœ… Favorit movies Excercies(Done)

HTML: Anchor elements

a tag: create a hyperlink
-> attribute(์†์„ฑ):
href: hyper text reference
http protocol: ๋ฌธ์„œ, ์ •๋ณด๋ฅผ ์ฃผ๊ณ ๋ฐ›์„ ์ˆ˜ ์žˆ๋Š” protocol
www: to say this is on the world wide web, not a file that I have(relative to where I am right now).

<a href="image address"></a>

HTML: Image

<Tag attribute="">
<img src="image address" alt="text description of the image">

HTML: Comment

<!--adding notes or text, not rendered, ignored by browser,
used for feedback, reminder, or notes.-->

๐Ÿ”ธ cmd+/: comment ๋‹จ์ถ•ํ‚ค
๐Ÿ”ธ cmd+2,3...: ์ž‘์—…์ฐฝ 2,3๊ฐœ๋กœ ๋งŒ๋“ค๊ธฐ
๐Ÿ”ธ cmd+shift+p: commands ์ž…๋ ฅ ์ฐฝ, ๋‹จ์ถ•ํ‚ค ๋ณผ ์ˆ˜ ์žˆ์Œ

HTML 4: Next steps & Semantics

HTML5

HTML5: latest evolution of the standard that defines HTML.
html spec

Div: the content division element

generic cotainer to hold things or to group elements together

Span: generic container, but inline element

hr: a line across the screen horizontally, like divider (can get by adding a border to the bottom)

br: makes a break

sup: squared, citations, elevated off the baseline

sub: baseline

<p><sup>1</sup>/<sub>2</sub> + <sup>1</sup>/<sub>2</sub> = 1</p>

Entitiy Codes

<h1> 1 < 6 </h1>

-> ์ด๋Ÿฐ ์‹์œผ๋กœ ์“ฐ๋ฉด ๋ธŒ๋ผ์šฐ์ €์—์„œ๋Š” ์ •์ƒ์ ์œผ๋กœ ๋ณด์—ฌ๋„ ์ฝ”๋“œ ๋‚ด์—์„œ๋Š” ํ—ท๊ฐˆ๋ คํ•จ
'์–ด ๋ญ์ง€? tag์ธ๊ฐ€? bracket์„ ๊นœ๋ฐ•ํ•œ ๊ฑด๊ฐ€?'

๋‚˜์ค‘์— ๋ฌธ์ œ๋  ์ˆ˜ ์žˆ์œผ๋‹ˆ entitiy code๋ฅผ ์จ์•ผ ํ•จ
๊ตฌ๊ธ€ ๊ฒ€์ƒ‰: html entity less than

<h1> 1 &lt; 6 </h1>

&๋ฅผ ์“ฐ๋Š” ๊ฒƒ๋„ ์ฃผ์˜ํ•  ๊ฒƒ->browser๊ฐ€ entity code๋กœ ์ฐฉ๊ฐ

โœ… Snowman Logo Exercise(Done)

Senmantic Markup: add meaning to the markup

footer, navigation, div, header, section, article, main => all behave just like divs. ๊ทผ๋ฐ ์™œ ๋‹ค๋ฅด๊ฒŒ ์“ฐ๋ƒ-> ๋‹ค๋ฅธ ๋ธŒ๋ผ์šฐ์ €๋‚˜ google๊ฐ™์€ ๊ณณ์—์„œ ์ฝ”๋“œ๋ฅผ ํ•ด์„ํ•˜๊ธฐ ๋•Œ๋ฌธ, to make the code more tolerable and friendly to other applications or other code, and more accessible to screen readers and other developers. And essential for SEO

  • time, figure

Screen reader (Voice Over: cmd+f5)

Emet: extention that can use shortened syntax

vscode์— ๊ธฐ๋ณธ์ ์œผ๋กœ ์žˆ์œผ๋ฏ€๋กœ ์“ธ ์ˆ˜ ์žˆ์Œ
*, $, {}, >, +

HTML 5: HTML: Forms & Tables

HTML Table

์˜ˆ์ „์—๋Š” ๊พธ๋ฏธ๋Š” ๋ฐ ์ž์ฃผ ์ผ์ง€๋งŒ ์š”์ƒˆ๋Š” ์•ˆ ๊ทธ๋Ÿผ.

<table> ํ‘œ ์ƒ์„ฑ </table>
<td> ์…€(table data) </td>
<tr> ๊ฐ€๋กœ์ค„(table row) </tr>
<tr><th> table header </th></tr>
<thead><tr> headers </tr></thead>
<tbody><tr> body </tr></tbody>
<tfoot><tr> foot </tr></tfoot>

<!-- ๋ณ‘ํ•ฉ๋œ ์…€ ๋งŒ๋“œ๋Š” ๋ฒ• -->
<tr>
    <th rowspan="2">Animal</th>
    <th colspan="2">Average Mass</th>
    <th rowspan="2">Flighted</th>
</tr>
<tr>
    <th>KG</th>
    <th>LB</th>
</tr>

โœ… Table Practice Exerciese(Done)

0๊ฐœ์˜ ๋Œ“๊ธ€