\n\n\n\n
As usual, I included a basic HTML boilerplate with links to necessary scripts and styles, along with navigation to main pages. I am using a container div, aside element with the id table-of-contents, which will be populated using javascript, and finally the main tag.<\/p>\n\n
Next, I added the content, formatted with heading tags and some paragraph tags for the main body. For formulas and symbols I used the LaTeX syntax, LaTeX is used because it is the go-to standard:
\n<\/p>\n\n
\n\n\n\n
This contains a lot of content, which is formatted using headings and sub-headings, some lists and tables. I also added an \"About the Author\" tag for authenticity.<\/p>\n\n
I needed to style this page so that the text can be readable, and it doesn't look too bad. I will add an additional css file into this page, keeping style.css and style-main.css for common elements.<\/p>\n\n
\n \n \n Hour 20: Styling the content page and adding JS for dynamic Table of Contents\n<\/h2>\n\n
I created an style tag inside the head element, and added basic style to it:
\n<\/p>\n\n
| |
|