# AF Enhanced HTML Node - Complete Usage Guide
A ComfyUI Note node with HTML capabilities. Create notes, UI's and ReadMe's directly inside the workflow using rich HTML formatting.
---
## ⨠Key Features
- **Rich HTML Support** - Full HTML formatting with colored sections, lists, tables, code blocks, and more
- **Non-Intrusive Design** - Doesn't interfere with normal ComfyUI workflow interactions
- **Easy Editing** - Double-click anywhere on the content to edit HTML
- **Smart Links** - Ctrl+click to open external links (JavaScript disabled for security)
- **Beautiful Styling** - Predefined color schemes that match ComfyUI's theme
- **Custom HTML Support** - Write your own HTML with inline styles or customize the external CSS file
---
## đ ī¸ Installation
### Via ComfyUI Manager (Recommended)
1. Open ComfyUI Manager
2. Search for "AF - Enhanced HTML Note"
3. Install
### Manual Installation
1. Clone this repository into your `ComfyUI/custom_nodes/` directory:
```bash
git clone https://github.com/alFrame/ComfyUI-AF-Enhanced-HTML-Note.git
```
---
## đŽ Interaction Guide
### Editing Content
- **Double-click** anywhere on the HTML content to enter edit mode
- **Escape key** or click outside to exit edit mode and save changes
- Changes are automatically saved when exiting edit mode
### Using Links
- **Hold Control key + Click** on any link to activate it
- External links open in new tabs
- JavaScript execution is disabled for security
### Node Management
- **Click and drag** the node title bar to move
- **Drag edges/corners** to resize
- **Middle mouse button** works for canvas panning (like other nodes)
---
## đ¨ Custom CSS Styling
The node uses an external CSS file (`AF-Enhanced-HTML-Note.css`) that you can customize to match your preferences or create your own styling themes.
### Editing the CSS
The CSS file is located at:
```
ComfyUI/custom_nodes/ComfyUI-AF-Enhanced-HTML-Note/web/AF-Enhanced-HTML-Note.css
```
You can edit this file directly to:
- Change colors of predefined sections (`.af-positive`, `.af-negative`, etc.)
- Modify spacing and padding
- Adjust font sizes and typography
- Create new custom section classes
- Change scrollbar styling
- Customize the edit button appearance
### Example: Creating a Custom Section Color
Add this to the CSS file to create a new teal section style:
```css
.af-html-note-content .af-section.af-teal {
background: rgba(64, 224, 208, 0.1);
border-left-color: #40E0D0;
}
```
Then use it in your HTML:
```html
đĸ Teal Section
Your custom styled content...
```
**Note:** After editing the CSS file, refresh your browser (Ctrl+F5 or Cmd+Shift+R) to see the changes.
---
## đ¨ Predefined Section Colors
The node comes with several predefined colored section styles. Click each section below to see the code and rendered example.
đĸ Positive Section (Green)
### Code:
```html
đĸ Positive Prompts
masterpiece, best quality, highly detailed
- Professional lighting
- Sharp focus
- 8K resolution
```
### Rendered Result:

đ´ Negative Section (Red)
### Code:
```html
đ´ Negative Prompts
low quality, blurry, distorted
nsfw, watermark, signature, bad anatomy
```
### Rendered Result:

đ Neutral Section (Gray)
### Code:
```html
đ Notes
General notes and information...
```
### Rendered Result:

âšī¸ Info Section (Light Blue)
### Code:
```html
âšī¸ Information
Using: SDXL 1.0
Steps: 25 | CFG: 7.5 | Sampler: DPM++ 2M Karras
```
### Rendered Result:

â ī¸ Warning Section (Yellow)
### Code:
```html
â ī¸ Warning
This workflow requires:
- High VRAM (8GB+)
- Latest ComfyUI version
- SDXL compatible models
```
### Rendered Result:

đ Yellow Section (Alternative)
### Code:
```html
đ Yellow Section
Alternative yellow styled content with different shade...
```
### Rendered Result:

đĩ Blue Section (Deep Blue)
### Code:
```html
đĩ Blue Section
Deep blue styled content for technical information...
```
### Rendered Result:

đ¨ Custom Section (Purple)
### Code:
```html
đ¨ Custom
Purple custom styled content for special cases...
```
### Rendered Result:

---
## đ Predefined Spacers
Use these spacer classes to control vertical spacing between elements.
All Spacer Sizes - Click to see examples
### Code:
```html
Content Block 1
Content Block 2
Content Block 3
Content Block 4
Content Block 5
Content Block 6
Content Block 7
```
### Rendered Result:

### Size Reference:
- `af-spacer-top` â 2px
- `af-spacer-mini` â 4px
- `af-spacer-small` â 8px
- `af-spacer` â 16px (default)
- `af-spacer-large` â 32px
- `af-spacer-xl` â 48px
---
## đ Column Layouts
Create two-column layouts using the predefined column classes.
Two-Column Layout Example
### Code:
```html
đ¨ Style Settings
- Style: Photorealistic
- Aspect: 16:9
- Quality: Ultra High
âī¸ Technical
Resolution: 1920x1080
Batch: 4
đĢ Exclusions
- No text in image
- Avoid oversaturation
- No watermarks
đĄ Tips
Use lower CFG for more creative results
```
### Rendered Result:

**Note:** The `row` class ensures proper column wrapping, and each column is 49% width with 1% margin.
---
## đ Clickable Links & Actions
All links require **Ctrl+Click** to activate for safety and to prevent accidental navigation. JavaScript actions work on links when Ctrl+Click is used.
Link Examples
### Code:
```html
```
**Remember:** Hold **Ctrl** while clicking any link to activate it!
### Rendered Result:

### Supported Link Types:
- â
**External URLs** (`https://`, `http://`) - Open in new tab
- â
**Anchor links** (`#section`) - Page navigation
- â
**Mailto links** (`mailto:`) - Open email client
- â
**Tel links** (`tel:`) - Open phone app
- â
**Relative URLs** - Open in new tab
### Not Supported Link Types:
- â **JavaScript links** (`javascript:`) - Blocked for security
- â **onclick handlers** - Ignored for security
### Security Restrictions:
- **No JavaScript execution** - All JavaScript is blocked for security
- **No `