<!DOCTYPE html>
<
html
lang
=
"en"
>
<
head
>
<
meta
charset
=
"UTF-8"
/>
<
meta
name
=
"viewport"
content
=
"width=device-width, initial-scale=1.0"
/>
<
link
rel
=
"stylesheet"
href
=
"style.css"
/>
<
title
>
Toggleable Sidebar using
HTML CSS & JavaScript
</
title
>
</
head
>
<
body
>
<
div
id
=
"sideMenu"
class
=
"sideMenu"
>
<
a
href
=
"javascript:void(0)"
class
=
"closeBtn"
onclick
=
"closeNav()"
>×</
a
>
<
div
class
=
"mainMenu"
>
<
h2
>SideMenu</
h2
>
<
a
href
=
"javascript:void(0)"
onclick
=
"showContent('Home')"
>Home</
a
>
<
a
href
=
"javascript:void(0)"
onclick
=
"showContent('About')"
>About</
a
>
<
a
href
=
"javascript:void(0)"
onclick
=
"showContent('Portfolio')"
>Portfolio</
a
>
<
a
href
=
"javascript:void(0)"
onclick
=
"showContent('Services')"
>Services</
a
>
<
a
href
=
"javascript:void(0)"
onclick
=
"showContent('Contact')"
>Contact</
a
>
</
div
>
</
div
>
<
div
id
=
"contentArea"
>
<
span
style
=
"font-size: 30px; cursor: pointer"
onclick
=
"openNav()"
>☰</
span
>
<
div
class
=
"contentText"
>
<
h2
id
=
"contentTitle"
>
Toggle Sidebar Navigation</
h2
>
<
h3
>HTML CSS JS</
h3
>
</
div
>
</
div
>
<
script
src
=
"script.js"
></
script
>
</
body
>
</
html
>