refactor(topics): 멀티 에이전트용 지식 재편 — _Common(공통 기본기) + Domain_* 구조
에이전트 8종(대화형/프로그래머 C·S/디자이너/설계자/기획자/QA/PD/PM)에게 [공통 기본 능력 + 롤별 Specialty] 2층으로 지식을 주입하기 위한 재분류. 문서 내용·포맷은 무수정, 폴더 이동만 (6,372개 문서 수 보존 확인). - Topic_Programming → Domain_Programming (내부 구조 보존) - Topic_Graphic → Domain_Design - Topic_Business → Domain_Product - Topic_General → Domain_General - _Common 신설: Math(구 Topic_Math_Specialty), Reasoning(구 General/From_Thinking & Reasoning), Reasoning_Creativity(구 General/From_창의성), Communication(Poetic_Blog_Writing + From_writing) - 타 도메인의 From_* 폴더는 유지 (출처 표기일 뿐, 이미 도메인에 맞게 분류된 문서) - 빈 폴더 정리 (memory/procedures) - 에이전트→폴더 매핑은 workspace의 .astra/agent-knowledge-map.json (9개 에이전트) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,137 @@
|
||||
---
|
||||
id: html-buttons
|
||||
title: "HTML Buttons"
|
||||
category: "Frontend"
|
||||
status: "draft"
|
||||
verification_status: "conceptual"
|
||||
canonical_id: ""
|
||||
aliases: ["button element", "HTML button", "button type", "submit button", "reset button"]
|
||||
duplicate_of: ""
|
||||
source_trust_level: "B"
|
||||
confidence_score: 0.88
|
||||
created_at: 2026-06-23
|
||||
updated_at: 2026-06-23
|
||||
review_reason: ""
|
||||
merge_history: []
|
||||
tags: ["html", "web", "frontend", "w3schools", "buttons", "forms"]
|
||||
raw_sources: ["https://www.w3schools.com/html/html_buttons.asp"]
|
||||
applied_in: []
|
||||
github_commit: ""
|
||||
---
|
||||
|
||||
# [[HTML Buttons]]
|
||||
|
||||
## 🎯 한 줄 통찰 (One-line insight)
|
||||
The HTML `<button>` element defines a clickable button whose behavior is set by its `type` attribute (`button`, `submit`, or `reset`); you should always specify `type` because the in-form default differs and browsers behave inconsistently when it is omitted. [S1]
|
||||
|
||||
## 🧠 핵심 개념 (Core concepts)
|
||||
- **`<button>` element** — defines a clickable button; by itself it does nothing until you add an action. [S1]
|
||||
- **`type` attribute** — defines what the button does when clicked; three types: `button`, `submit`, `reset`. [S1]
|
||||
- **Always set `type`** — inside a form the default type is `submit`, and browsers may behave differently if the type is omitted. [S1]
|
||||
- **`disabled` attribute** — makes a button unclickable; disabled buttons usually appear faded. [S1]
|
||||
- **Add behavior** — actions can be attached, e.g. with `onclick`. [S1]
|
||||
|
||||
## 🧩 추출된 패턴 (Extracted patterns)
|
||||
- **Type-driven behavior** — `type="button"` (does nothing by default), `type="submit"` (submits a form), `type="reset"` (resets all form fields). [S1]
|
||||
- **Form button pair** — a submit button plus a reset button inside a `<form>`. [S1]
|
||||
- **Inline action** — `<button onclick="...">`. [S1]
|
||||
- **Styling via class** — buttons are commonly styled with CSS through a class. [S1]
|
||||
|
||||
## 📖 세부 내용 (Details)
|
||||
**The button element**
|
||||
The HTML `<button>` element defines a clickable button. By itself, the button does nothing until you add an action to it. [S1]
|
||||
```html
|
||||
<button>Click Me</button>
|
||||
```
|
||||
|
||||
**Button types**
|
||||
The `type` attribute defines what a button does when clicked. There are three button types: [S1]
|
||||
- `type="button"` — a normal clickable button (does nothing by default)
|
||||
- `type="submit"` — submits a form
|
||||
- `type="reset"` — resets all form fields
|
||||
|
||||
```html
|
||||
<button type="button">Normal Button</button>
|
||||
<button type="submit">Submit</button>
|
||||
<button type="reset">Reset</button>
|
||||
```
|
||||
|
||||
Example within a form: [S1]
|
||||
```html
|
||||
<form action="/action_page.php">
|
||||
First name: <input type="text" name="fname">
|
||||
<button type="submit">Submit</button>
|
||||
<button type="reset">Reset Form</button>
|
||||
</form>
|
||||
```
|
||||
|
||||
**Note:** You should always specify the type attribute. Inside a form, the default type is submit, and browsers may behave differently if the type is omitted. [S1]
|
||||
|
||||
**Styling buttons**
|
||||
Buttons are often styled with CSS: [S1]
|
||||
```html
|
||||
<button class="mytestbtn">Green Button</button>
|
||||
```
|
||||
|
||||
**Disabled buttons**
|
||||
Use the `disabled` attribute to make a button unclickable: [S1]
|
||||
```html
|
||||
<button disabled>Disabled Button</button>
|
||||
```
|
||||
**Tip:** Disabled buttons cannot be clicked and usually appear faded. [S1]
|
||||
|
||||
**Button with JavaScript**
|
||||
```html
|
||||
<button onclick="alert('Hello!')">Click Me</button>
|
||||
```
|
||||
|
||||
## 🛠️ 적용 사례 (Applied in summary)
|
||||
The applied cases are a plain clickable button, the three typed buttons, a submit/reset pair inside a form, a CSS-styled button, a disabled button, and a button that runs JavaScript via `onclick`. No external project/commit applications found in the source.
|
||||
|
||||
## 💻 코드 패턴 (Code patterns)
|
||||
Typed buttons (HTML):
|
||||
```html
|
||||
<button type="button">Normal Button</button>
|
||||
<button type="submit">Submit</button>
|
||||
<button type="reset">Reset</button>
|
||||
```
|
||||
Button running JavaScript (HTML):
|
||||
```html
|
||||
<button onclick="alert('Hello!')">Click Me</button>
|
||||
```
|
||||
Disabled button (HTML):
|
||||
```html
|
||||
<button disabled>Disabled Button</button>
|
||||
```
|
||||
|
||||
## ⚖️ 비교 및 선택 기준 (Comparison & decision criteria)
|
||||
The page presents three button types; choosing the right `type` is essential because the in-form default is `submit`: [S1]
|
||||
|
||||
| `type` value | Behavior when clicked | Use when |
|
||||
|---|---|---|
|
||||
| `button` | A normal clickable button; does nothing by default | You want a button with custom (e.g. JavaScript) behavior only |
|
||||
| `submit` | Submits the form (the in-form default) | The button should send the form |
|
||||
| `reset` | Resets all form fields | The button should clear the form |
|
||||
|
||||
Always specify the `type` to avoid inconsistent browser behavior when it is omitted. [S1]
|
||||
|
||||
## ⚖️ 모순 및 업데이트 (Contradictions & updates)
|
||||
No contradictions found in the source. Important caveat: omitting `type` inside a form defaults to `submit` and can cause divergent browser behavior, so it should always be set explicitly. [S1]
|
||||
|
||||
## ✅ 검증 상태 및 신뢰도
|
||||
- **상태:** draft
|
||||
- **검증 단계:** conceptual (실제 적용 사례 발견 시 applied/validated로 승격 가능)
|
||||
- **출처 신뢰도:** B (W3Schools — widely used educational reference, not a primary standards body)
|
||||
- **신뢰 점수:** 0.88
|
||||
- **중복 검사 결과:** 신규 생성 (New discovery)
|
||||
|
||||
## 🔗 지식 그래프 (Knowledge Graph)
|
||||
- **상위/루트:** [[HTML Tutorial]]
|
||||
- **관련 개념:** [[HTML Forms]], [[HTML Form Elements]], [[HTML Input Types]], [[HTML Accessibility]]
|
||||
- **참조 맥락:** Referenced whenever adding clickable controls or form submit/reset actions to a page.
|
||||
|
||||
## 📚 출처 (Sources)
|
||||
- [S1] W3Schools — HTML Buttons — https://www.w3schools.com/html/html_buttons.asp
|
||||
|
||||
## 📝 변경 이력 (Change history)
|
||||
- 2026-06-23: Initial draft synthesized from the W3Schools "HTML Buttons" page (Astra wiki-curation, P-Reinforce v3.1 format).
|
||||
Reference in New Issue
Block a user