diff --git a/book/features/adding_basic_HTML_elements.md b/book/features/adding_basic_HTML_elements.md index 113e19a..4a4fa30 100644 --- a/book/features/adding_basic_HTML_elements.md +++ b/book/features/adding_basic_HTML_elements.md @@ -3,23 +3,23 @@ ## Embedding HTML files A straightforward way to create interactive web-based elements is to code them directly using HTML with JavaScript. This allows us to build elements such as the one below, which shows the connection between a probability density function (pdf) and the associated cumulative density function (cdf): - + -If we want to embed such figures in the teachbook, you can do so via an iframe which reference a html file in the _static folder: +If we want to embed such figures in the teachbook, you can do so via an iframe which references a html file in the _static folder: ```html - + ``` -Here, the src path moves up one subdirectory, then enters the _static folder, and loads the element_pdf_and_cdf.html file. So how do we create this figure? +Here, the src path moves up one subdirectory, then enters the `_static` folder, and loads the `element_pdf_and_cdf.html` file. So how do we create this figure? ## Creating a basic interactive HTML/JavaScript element -At the bottom of this page, I will provide the full code for the interactive element above. In this section, let us go through the code piece by piece. Let us begin by looking at the start of the code. +At the bottom of this page, I will provide the full code for the interactive element above. In this section, let us go through the code one piece at a time. Let us begin from the top. -We begin by specifying that this file is a HTML file. In the header, we can load packages we need later on. Within the `