'How to set font size and font family at the same p
Can you give me a sample code on how to make a paragraph/text with text size and font, I only know the code that uses different sizes without font, and the code with the font but without resizing, here is my code: <p style="font-family:arcade classic", "font-size:40px">Use the arrow keys (on your keyboard) to move your frog, avoid cars, jump on logs (flowing on the water), and jump on turtles (note that every few seconds, they swim underwater, then go back on the water's surface again, if you are on top of that turtle and it sinks, you die)</p>
Solution 1:[1]
use CSS like
p{font-family:"poppins", sans-serif; font-size:2em;}
/* do not forget to import Poppins from google font */
Solution 2:[2]
You must use one single string in your style attribute
<p style="font-family:arcade classic; font-size:40px"></p>
Solution 3:[3]
You had a syntax problem. You should have used a semicolon where you used a comma as @farshid-mousavi said.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Harsh Manvar |
| Solution 2 | General Grievance |
| Solution 3 |
