| Tag | Description |
|---|---|
| <!DOCTYPE> | Defines document type |
| <html> | Root element |
| <head> | Metadata container |
| <title> | Document title |
| <body> | Main content |
| <h1> | Heading |
| <p> | Paragraph |
| <b> | Bold text |
| <i> | Italic text |
| <a> | Hyperlink |
| <img> | Image |
| <ul> <ol> <li> | Lists |
| <table> <tr> <td> | Table layout |
| <form> <input> <button> | Form inputs |
| <br> | Line break |
| <div> | Generic container |
| <span> | Inline container |
| <iframe> | Embed another page |
| Property | Description |
|---|---|
| color | Text color |
| background | Background styling |
| font-size | Text size |
| margin | Outside spacing |
| padding | Inside spacing |
| border | Border styling |
| display | Element display type |
| text-align | Text alignment |
| flex | Flexible box layout |
| Function | Description |
|---|---|
| alert() | Shows a popup |
| prompt() | User input popup |
| console.log() | Prints to browser console |
| getElementById() | Access elements |
| onclick | Click event trigger |
| addEventListener() | Event listener for user actions |
| innerHTML | Change HTML content |
| setTimeout() | Delay code execution |