# A basic mermaid User-Guide for Beginners Creating diagrams and charts using mermaid code is simple. mermaid allows you to dynamically code and modify diagrams. when called, mermaid renders code definitions into a diagram in SVG format. >The live editor is enough for most general uses of mermaid ## Absolute beginners are recommended to view the Video [Tutorials](./Tutorials.md) on the Live Editor, to gain a better understanding of mermaid. ## For beginners, there are Four ways you can use mermaid: 1. Using the mermaid [Live Editor](https://mermaid-js.github.io/mermaid-live-editor/). - Learning the [Syntax](./n00b-syntaxReference) would be helpful. 2. Using one of the many [mermaid plugins](./integrations.md). 3. Hosting mermaid on a webpage, with an absolute link. 4. Downloading mermaid and hosting it on your Web Page. **Note: It is our recommendation that you review all approaches, and choose the one that is best for your project.** >More in depth information can be found on [Usage](./usage.md). # Following any of these examples, you can get started with creating your own diagrams using mermaid code. ## 1. The mermaid live editor: A great way to get started with mermaid is to visit [The mermaid live editor](https://mermaidjs.github.io/mermaid-live-editor). In the `Code` section one can write or edit raw mermaid code, and instantly `Preview` the rendered result on the panel beside it. **This is a great way to learn how to define a mermaid diagram.** The Live Editor opens on a [Flowchart](./flowchart.md). ![Flowchart](./img/DiagramDefinition.png) **Saving a Diagram:** Downloading the image may be a ideal for a majority uses. The Links and the markdown code can be referenced to display the diagram. ![Flowchart](./img/Live-Editor-Choices.png) **Configuration** *The Mermaid configuration* is for configuring the appearance and behavior of mermaid diagrams. An easy introduction to mermaid configuration is found in the [Advanced usage](./n00b-advanced.md) section. A complete configuration reference cataloguing default values is found on the [mermaidAPI](Setup.md) page. ![Flowchart](./img/Configuration.png) ## 2. Using mermaid plugins: Thanks to the growing popularity of mermaid, many plugins already allow the generation of mermaid diagrams from within popular applications. An extensive list of applications the support mermaid plugins can be found [here](./integrations.md). **This is covered in greater detail in the [Usage section](usage.md)** ## 3. Deploying mermaid with Inline JavaScript This method can be used with any common web server. Apache, IIS, nginx, node express [...], you pick your favourite. You will need a text editting tool like Notepad++, t can generate an html file. It is then deployed by a web browser (such as Firefox, Chrome, Safari, but not Internet Explorer). Just create an HTML file locally and open it using a desired browser. ### Written in the html `
` section of the web page. When writing the html file, we give the web browser three instructions inside the html code: a. A reference for fetching the online mermaid renderer, which is written in Javascript. b. The mermaid code for the diagram we want to create. c. The `mermaid.initialize()` call to start the rendering process. ## Three requirements for the mermaidAPI to render a diagram: ### a. A reference to the external CDN in a ` ``` ### b. The embedded mermaid diagram definition inside a `