π Memory hyerarchy
πΈ 2-tier architecture : client - server
πΈ 3-tier architecture : client - server - database
πΈ web FE : HTML(structure, markup), CSS(style sheet), JS(interaction)
this is responsible for overall structure of source code
π² <div> : div tag occupies one line
π² <span> : span tag occupies size of itself
π² <p> : p tag express a paragraph
π² <a> : a tag makes the text have link
<a href="https://naver.com" target="_blank">λ€μ΄λ²μνμ΄κΈ°</a>
<!-- target creat a new tab -->
π² <ul, li> : this makes the list
π² <input> : this makes variout input form
π² <textarea> : this makes textbox which can move next line
π² <button> : this makes button
this applies design to the structure of source code
π semantic tag : same with <div> in HTML, but it contains a meaning of what is responsible for
π CSS systax
π styling with id
h4 {
color: red;
}
this result in all of "h4" elements affected
<h4 id="navigation-title">This is the navigation section.</h4>
#navigation-title {
color: red;
}
this result in only navigation-title affected. Id matches only one element so below code block is wrong
/* wrong example */
<ul>
<li id="menu-item">Home</li>
<li id="menu-item">Mac</li>
<li id="menu-item">iPhone</li>
<li id="menu-item">iPad</li>
</ul>
<<!-- correct example -->
<ul>
<li class="menu-item">Home</li>
<li class="menu-item">Mac</li>
<li class="menu-item">iPhone</li>
<li class="menu-item">iPad</li>
</ul>
.menu-item {
text-decoration: underline;
}