0

How can I make the name output font bigger?

var user= prompt("please enter your name") document.write('<h1>hi</h1> '+ user)

7th Jan 2023, 3:31 PM
Samin Iqbal
Samin Iqbal - avatar
3 Answers
+ 2
Use CSS for styles, but if you want to do it only with JS, then you can do something like this: yourObject.style.fontSize = "150%" ;
7th Jan 2023, 3:39 PM
Edgar Sabido
Edgar Sabido - avatar
0
Thx
7th Jan 2023, 3:40 PM
Samin Iqbal
Samin Iqbal - avatar
0
Hi, personally I prefer to use font Georgia on my site, and I prefer text size 24sp but my site deals with online games, click here to read how it looks like. If I need to change the text size I Open the Python shell. Then, in the menu bar, under "Python" (directly to the right of the Apple icon), you will find "Preferences". Under this, you will find the "Font/Tabs" option, and you can change the font size according to your preference. It helps me to change the text size quickly and easily.
21st Jan 2023, 10:48 AM
FabiĂĄn Kalyani
FabiĂĄn Kalyani - avatar