aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2016-01-22 11:09:39 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2016-01-22 11:09:39 +0100
commit191dbe68d5aab45bb93e3d839dbc025c3f5b6f3c (patch)
tree12e486808405e49e3927f2f2356ec60c7b7d18db /README.md
parentd0bb69d4273cc7ea8f12ea73661e97e3c99c9497 (diff)
parentc93fbf1ddcb0db76d34e558cab2e35cb8823702d (diff)
downloadfosdem-2018-presentation-191dbe68d5aab45bb93e3d839dbc025c3f5b6f3c.tar
fosdem-2018-presentation-191dbe68d5aab45bb93e3d839dbc025c3f5b6f3c.tar.gz
Merge branch 'master' of github.com:hakimel/reveal.js into dev
Diffstat (limited to 'README.md')
-rw-r--r--README.md24
1 files changed, 23 insertions, 1 deletions
diff --git a/README.md b/README.md
index 5a27335..f926976 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,29 @@ Presentations are written using HTML or Markdown but there's also an online edit
### Markup
-Markup hierarchy needs to be ``<div class="reveal"> <div class="slides"> <section>`` where the ``<section>`` represents one slide and can be repeated indefinitely. If you place multiple ``<section>``'s inside of another ``<section>`` they will be shown as vertical slides. The first of the vertical slides is the "root" of the others (at the top), and it will be included in the horizontal sequence. For example:
+Here's a barebones example of a fully working reveal.js presentation:
+```html
+<html>
+ <head>
+ <link rel="stylesheet" href="css/reveal.css">
+ <link rel="stylesheet" href="css/theme/white.css">
+ </head>
+ <body>
+ <div class="reveal">
+ <div class="slides">
+ <section>Slide 1</section>
+ <section>Slide 2</section>
+ </div>
+ </div>
+ <script src="js/reveal.js"></script>
+ <script>
+ Reveal.initialize();
+ </script>
+ </body>
+</html>
+```
+
+The presentation markup hierarchy needs to be `.reveal > .slides > section` where the `section` represents one slide and can be repeated indefinitely. If you place multiple `section` elements inside of another `section` they will be shown as vertical slides. The first of the vertical slides is the "root" of the others (at the top), and will be included in the horizontal sequence. For example:
```html
<div class="reveal">