You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Represents the root (top-level element) of an HTML document, so it is also referred to as the root element. All other elements must be descendants of this element.
head
contains machine-readable information (metadata) about the document, like its title, scripts, and style sheets.
meta
represents metadata that cannot be represented by other HTML meta-related elements, like base, link, script, style or title.
<style>
style
contains style information for a document, or part of a document.
<title>
title
defines the document's title that is shown in a browser's title bar or a page's tab
body
represents the content of an HTML document. There can be only one element in a document.
-
h1-h6
represent six levels of section headings.
is the highest section level and
is the lowest.
nav
represents a section of a page whose purpose is to provide navigation links, either within the current document or to other documents. Common examples of navigation sections are menus, tables of contents, and indexes.
content division
the generic container for flow content. It has no effect on the content or layout until styled in some way using CSS (e.g. styling is directly applied to it, or some kind of layout model like Flexbox is applied to its parent element).
horizontal rule
represents a thematic break between paragraph-level elements: for example, a change of scene in a story, or a shift of topic within a section.
list item
used to represent an item in a list
ordered list
represents an ordered list of items — typically rendered as a numbered list.
unordered list
represents an unordered list of items, typically rendered as a bulleted list.
paragraph
represents a paragraph
preformatted text
represents preformatted text which is to be presented exactly as written in the HTML file
anchor
with its href attribute, creates a hyperlink to web pages, files, email addresses, locations in the same page, or anything else a URL can address
Bring attention to
used to draw the reader's attention to the element's contents, which are not otherwise granted special importance
line break
produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the division of lines is significant.
code
displays its contents styled in a fashion intended to indicate that the text is a short fragment of computer code
idiomatic
represents a range of text that is set off from the normal text for some reason, such as idiomatic text, technical terms, taxonomical designations, among others
keyboard input
represents a span of inline text denoting textual user input from a keyboard, voice input, or any other text entry device
strikethrough
renders text with a strikethrough, or a line through it. Use the element to represent things that are no longer relevant or no longer accurate. However, is not appropriate when indicating document edits; for that, use the del and ins elements, as appropriate.
audio
used to embed sound content in documents. It may contain one or more audio sources, represented using the src attribute or the source element: the browser will choose the most suitable one. It can also be the destination for streamed media, using a MediaStream.
image
embeds an image into the document
video
embeds a media player which supports video playback into the document. You can use
<iframe>
inline frame
represents a nested browsing context, embedding another HTML page into the current one
<script>
script
used to embed executable code or data; this is typically used to embed or refer to JavaScript code.
table
represents tabular data — that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data.
th
defines a cell as header of a group of table cells. The exact nature of this group is defined by the scope and headers attributes.
table row
defines a row of cells in a table. The row's cells can then be established using a mix of td (data cell) and th (header cell) elements.
table data cell
defines a cell of a table that contains data. It participates in the table model.
form
represents a document section containing interactive controls for submitting information
<textarea>
text area
represents a multi-line plain-text editing control, useful when you want to allow users to enter a sizeable amount of free-form text, for example a comment on a review or feedback form.
blink
Deprecated. Causes the enclosed text to flash slowly.
Background sound
Deprecated, IE only. Sets up a sound file to play in the background while the page is used; use audio instead.
frameset
Deprecated. Used to hold frames
frame
an HTML element which defines a particular area in which another HTML document can be displayed. A frame should be used within a frameset
scrolling text
Deprecated. Used to insert a scrolling area of text. You can control what happens when the text reaches the edges of its content area using its attributes.
<noframes>
No frames / Frame fallback
Provides content to be presented in browsers that don't support (or have disabled support for) the frame element
<a href="tel:+14035555555">403-555-5555</a>
<!-- To handle an extension -->
<a href="tel:+14035555555p23">403-555-5555 ext. 23</a>
<!-- To use a fax line -->
<a href="fax:+14035555555">403-555-5555</a>
Doctype (HTML 5)
<!doctype html>
Semantic tags (HTML 5)
- <section>
- <nav>
- <article>
- <hgroup> (for article tag)
- <p> (In HTML 5, don't use the p tag for paragraph breaks - it *must* be used for paragraphs)
- <figure> (for article tag)
- <figcaption> (for figure tag)
- <aside> (for p tags)
-# This is a comment line, !!! 5 does the HTML 5 doctype
!!! 5
%html
%head
%meta{charset: "utf-8"}
-# You can pass variables to attributes
%meta{variable: attribute_variable}
%title Demo HAML page
%body
-# you can use . or # instead of %div if you're using a div tag
#shorthand
%div#content
= haml :footer
Markdown
<!-- Comments are HTML comments, which can show up in the rendered output -->
[//]: # Non-standard way of commenting (avoiding rendering) is using using link to # (a valid URI) and blank line separation
[You can comment in the title box, and rely on :: to not find a reference elsewhere on the page (multiline support not guaranteed)]::
<!-- atx headers -->
# Heading 1
## Heading 2
###### Heading 6
<!-- Emphasis -->
*This text will be italic*
_This will also be italic_
**This text will be bold**
__This will also be bold__
_You **can** combine them_
~~This line is using a strikethrough~~
\*Use backslash for literals\*
<!-- Links -->
<http://example.com> - automatic link
[Example](<http://example.com>)
[DefineLink][]
[DefineLink]: http://example.com/later
<!-- Images -->
![Alt text](/path/to/img.jpg)
<!-- Lists -->
- unordered
- list
1. ordered
2. list
1. Multiparagraph list
Requires 4 spaces/tab
2. Blockquoted items
> Need to have the > indented as well
% Add to the preamble:
% Load biblatex package
\usepackage{biblatex}
% Load bibTeX file
\addbibresource{file.bib}
% Add a citation somewhere in your file
Blah blah \autocite{<key>}
% In the backmatter,
\printbibliography
Characters escaped with standard double Mustache syntax: & \ " < > '
{% raw %}
| tag | desc |
|---------------+-------------------------------------------------------------|
| {{name}} | search a label in current context (HTML-escaped by default) |
| {{{name}}} | unescaped variable |
| {{#names}} | begin section for names (1 or more) |
| {{^names}} | begin section for names (false or empty array) |
| {{/names}} | end of a section |
| {{! comment}} | comment |
| {{> partial}} | partial (rendered at runtime) |
| {{=<% %>=}} | set delimiters to something else (here erb delimiters) |
{% endraw %}
If value is callable (ie function or lambda), text block is passed to callable unrendered and unexpanded.
#thing {
display: flex;
justify-content: flex-start; /* horizontal alignment */
align-items: flex-end; /* horizontal alignment */
align-content: flex-end; /* determine spacing between the lines */
order: 1; /* adjust the order */
flex-wrap: wrap;
flex-direction: row; /* direction of items - this flips justify-content and align-items */
/* you can also use flex-flow instead of -wrap and -direction */
flex-flow: row wrap;
}
.item {
align-self: flex-end; /* move an item */
}
<div class="mermaid">
journey
title My working day
section Go to work
Make tea: 5: Me
Go upstairs: 3: Me
Do work: 1: Me, Cat
section Go home
Go downstairs: 5: Me
Sit down: 5: Me
</div>
gantt
title A Gantt Diagram
dateFormat YYYY-MM-DD
section Section
A task :a1, 2014-01-01, 30d
Another task :after a1 , 20d
section Another
Task in sec :2014-01-12 , 12d
another task : 24d