> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt ## Resource: type ## Article: type ## Article Link: https://dev.wix.com/docs/sdk/host-modules/editor/elements/element/type.md ## Article Content: # type Gets the element’s type. Possible values include: * `“text”` * `“image”` ## Syntax ```ts readonly type: string ``` ## Example ```javascript import { editor, elements } from '@wix/editor'; import { createClient } from '@wix/sdk'; const client = createClient({ host: editor.host(), modules: { elements } }); async function getSelectedElementProp(propName) { const [myElement] = await client.elements.getSelection(); const elementType = myElement.type; } ```