<!DOCTYPE html>
<
html
>
<
head
>
<
link
href
=
rel
=
"stylesheet"
>
<
title
>Typography Classes</
title
>
</
head
>
<
body
>
<
div
class
=
"container mt-5"
>
<
h1
class
=
"text-success text-center"
>
GeeksforGeeks
</
h1
>
<
h3
class
=
"text-primary text-center"
>
Using Typography Classes
</
h3
>
<
div
class
=
"mb-3"
>
<
label
for
=
"fontSizeSelect"
class
=
"form-label"
>
Select Font Size:
</
label
>
<
select
class
=
"form-select"
id
=
"fontSizeSelect"
onchange
=
"changeFontSize()"
>
<
option
value
=
"h1"
>H1</
option
>
<
option
value
=
"h2"
>H2</
option
>
<
option
value
=
"h3"
>H3</
option
>
<
option
value
=
"h4"
>H4</
option
>
<
option
value
=
"h5"
>H5</
option
>
<
option
value
=
"h6"
>H6</
option
>
</
select
>
</
div
>
<
table
class
=
"table"
>
<
thead
>
<
tr
>
<
th
scope
=
"col"
>S.No.</
th
>
<
th
scope
=
"col"
>Topic</
th
>
<
th
scope
=
"col"
>Description</
th
>
</
tr
>
</
thead
>
<
tbody
>
<
tr
>
<
th
scope
=
"row"
>1</
th
>
<
td
id
=
"topic1"
class
=
"h1"
>MERN</
td
>
<
td
id
=
"desc1"
class
=
"h2"
>
MongoDB ExpressJS ReactJS NodeJS
</
td
>
</
tr
>
<
tr
>
<
th
scope
=
"row"
>2</
th
>
<
td
id
=
"topic2"
class
=
"h5"
>HTML</
td
>
<
td
id
=
"desc2"
class
=
"h6"
>Hypertext Markup Language</
td
>
</
tr
>
</
tbody
>
</
table
>
</
div
>
<
script
src
=
</
script
>
<
script
>
function changeFontSize() {
var fontSize = document.getElementById("fontSizeSelect").value;
document.getElementById("topic1").className = fontSize;
document.getElementById("desc1").className = fontSize;
document.getElementById("topic2").className = fontSize;
document.getElementById("desc2").className = fontSize;
}
</
script
>
</
body
>
</
html
>