💻
Albert's Til
GitHub
  • 매일매일 조금씩 성장하기
    • README
    • CS
      • Network
      • HTTP
        • NO-CACHE
      • 오류 코드
      • ORM 도구
      • Design Pattern
        • CQRS Pattern
          • Event Sourcing and CQRS pattern
        • Builder Pattern
    • DB
      • MySQL
        • Timeline
        • Pagination
        • Index
        • Database Performance Optimization Strategies
        • B+ tree
        • MySQL Connectors VS MySQL Shell(Scripting) VS MySQL Workbench
        • MySQL Storage Engine Architecture
      • Normalization & Denormalization
      • JPA
        • @Transactional
        • Why JPA?
        • About JPA
        • N+1 Issue
        • Index
        • ElementCollection&CollectionTable
        • orphanRemoval
        • CascadeType
        • Use Subselect
        • Dynamic Instance Creation
        • Paging
        • Order
        • Spefication
        • mappedBy
      • MongoDB
        • ObjectId
      • Why MySQL?
      • ACID properties of transactions
      • Between JPA and JDBC
      • Identifiers in Hibernate/JPA
    • Java
      • Jackson de/serialize
      • Collections.singletonList() vs List.of()
      • Manage dependencies in Gradle
      • Logging Level
      • Bean Validation
      • JVM Internals
        • Threads
          • Frame
        • Shared Between Threads
          • Classloader
            • Class Loader Hierarchy
            • Loading Linking Initialization
      • Java Collection Framework
      • Annotation
      • Generic
      • 디미터 법칙
    • Spring
      • Caching
      • Spring Integration Overview
        • ThreadPollTaskExecutor
        • Messaging Bridge
        • Channel Adapter
        • Poller
        • Configuration and @EnableIntegration
        • Message Endpoints
        • Message Channels
      • HATEOAS
      • @Autowired vs Constructor Dependency Injection
      • Spring Security
        • JWT 토큰 사용한 인가
        • OAuth 2 Login
        • OAuth 2 인증
        • 인가
        • 인증
        • PasswordEncoder
      • IoC Container
      • Filter,Interceptor,AOP,Argument Resolver
      • Spring Annotation
      • About Spring
    • Kafka
      • Error Channel
    • Infra
      • Scale Up || Scale Out
      • Docker
        • Dockerfile
        • Docker Hub Deploy
        • Command
      • Cloud 유형
        • Infrastructure as a Service
        • Platform as a Service
        • Software as a Service
      • 무중단 배포
        • 엔진엑스(Nginx)
      • 코드 자동 배포
        • Technical
      • AWS EC2
        • PEM(Privacy Enhanced Mail) 키
      • AWS RDS
      • AWS S3
    • CodeSquad
      • Spring Boot Project 1주차 회고
      • Spring Boot Project 2주차 회고
      • Spirng Boot Project 3주차 회고
      • Spring Boot Project 4주차 회고
    • Foody Moody 프로젝트
      • Query Performance Comparison
      • HeartCount Asynchronous Issue
      • DeferredResult
      • ResponseBodyEmitter
      • SseEmitter (Spring)
      • Server-Sent Events (SSE)
      • 기술 스택 적용 이유
      • NO-CACHE(HTTP)
      • Transactional
    • DDD
      • AggregateId
    • Test
      • RestAssured
    • Coding and Algorithmic Problems
      • 819. Most Common Word
      • 344. Reverse String
      • 125. Valid Palindrome
      • 937. Reorder Data in Log Files
    • Node
      • Async... Await...
      • Custom Transactional Decorator Challenger
    • Python
      • Python Basic Grammar
        • Comments and Input/Output
        • Variable
        • Data type
        • Operations and syntax
        • List,Tuple,Dictionary,Set
        • Function
        • Conditional statement
        • Loop
    • HTML
      • HTML Basic
      • HTML Basic Tags
      • HTML Form Tags
      • HTML Table Tags
    • CSS
      • CSS Basic
      • CSS Practice
Powered by GitBook
On this page
  • Element
  • 기본 구조
  • Block vs Inline
  • 마무리
  • 참조

Was this helpful?

  1. 매일매일 조금씩 성장하기
  2. HTML

HTML Basic

기본

Last updated 11 months ago

Was this helpful?

Element

기본 구조

<!-- doctype은 모든 문서의 최상단에서 필수 요소로 사용되어야 한다. -->
<!-- html은 HTML Living Standard를 표현한다. -->
<!-- living Standard는 WHATWG에서 관리하는 웹표준이다. -->
<!-- HTML5 이지만 또 아니다. HTML5에서 W3C에서 관리했던 버전이다.  -->
<!DOCTYPE html>
<!-- html 태그는 HTMl 문서의 루트, 최상단 요소이며 주요하게 lang 속성을 통해 해당 페이지의 주 언어가 무엇인지 알려준다 -->
<html lang="en">
  <!-- head 태그는 기계가 읽을 수 있는 정보가 담고 있는 요소이다. -->
  <head>
    <!-- meta 태그는 다른 메타 관련 요소가 표현할 수 없는 다양한 정보를 담고 있는 요소이다. -->
    <!-- charset은 해당 문서의 문자 인코딩 방식을 나타낸다. -->
    <meta charset="UTF-8" />
    <!-- viewport는 뷰포트의 크기를 조절하는 속성이다. -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <!-- title은 브라우저의 제목 표시줄이나 페이지의 탭에 표시되는 문서 제목을 정의한다. -->
    <!-- 검색엔진과 관련 있다 -->
    <title>Document</title>
  </head>
  <!-- body 태그는 HTML 문서의 내용을 나타내는 요소이다. -->
  <body></body>
</html>

Block vs Inline

HTML에서 블록, 인라인, 인라인 블록 요소의 차이점을 정리한 표를 작성해드리겠습니다.

특성
Block Elements
Inline Elements
Inline-Block Elements

전체 가로폭

✅

❌

❌

크기 지정

✅

❌

✅

여백과 패딩

all

좌, 우

all

중첩

다른 블록 요소 ✅

인라인 요소 ✅

주로 텍스트 ✅

다른 인라인 요소 ✅

인라인 블록 요소 ✅

인라인 요소 ✅

예시 요소

<div>, <h1>, <p>, <section>, <header>, <footer>

<span>, <a>, <img>, <strong>, <em>

<img>, <button>, <input>, <label>, <iframe>

마무리

기본 구조와 브록 및 인라인을 정리하면서 그 개념을 다시 확인하게 되고 그 의미에 대해 더 깊게 이해됐어요.

참조

ChatGPT

https://en.wikipedia.org/wiki/HTML5
오름캠프 백엔드
https://developer.mozilla.org/