티스토리 뷰
https://www.w3schools.com/html/html5_semantic_elements.asp
HTML Semantic Elements
HTML Semantic Elements Semantic elements = elements with a meaning. What are Semantic Elements? A semantic element clearly describes its meaning to both the browser and the developer. Examples of non-semantic elements: and - Tells nothing about its content
www.w3schools.com
내가 이해한 바로는 semantic html이란 semantic elements로 구성된 html 이다.
semantic elements란 html 코드를 보는 개발자와 웹브라우저 양쪽이 그 요소만 보고도 어떤 역활을 하는지 알수있는 element이다.
non-semantic elements의 예: <div>, <span>
semantic elements의 예: <form>, <table>, <article>
non-semantic elements 만으로도 웹사이트를 구성할수 있다.
하지만 모든 html 코드가 <div> <span> 으로 이루어진다면 이 요소가 어떤 역활을 하는지, 이 페이지에서 중요한 요소인지 판단할수가 없다.
예를들어 검색엔진은 웹사이트의 html 코드를 탐색하는데 코드가 non-semantic elements만으로 되어있다면
검색엔진이 이 코드에서 어느 부분이 중요한 부분인지 판단할수 없다.
'html & css' 카테고리의 다른 글
div 사이의 의도하지 않은 white space (0) | 2022.11.21 |
---|---|
css) margin-collapsing (0) | 2022.11.19 |
css) text-shadow, box-shadow (0) | 2021.08.19 |
css) icon (font awsome) (0) | 2021.08.17 |
css) variable (0) | 2021.08.17 |
- Total
- Today
- Yesterday
- dfs
- Kruskal
- permutation
- binary search
- Spring
- Brute Force
- MVC
- CSS
- Stack
- greedy
- db
- BFS
- Dijkstra
- 이분탐색
- C
- C++
- 재귀
- graph
- Unity
- back tracking
- Implementation
- priority queue
- Python
- DP
- floyd warshall
- Tree
- two pointer
- recursion
- 조합
- 자료구조
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |