HTML <p>(Paragraph) Attributes | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

HTML <p>(Paragraph) Attributes

Can you use <p width=50%></p> to adjust the size of the text inside the Paragraph Tag? Does (50%) need quotations?

17th Feb 2018, 1:31 AM
Michael Miller
Michael Miller - avatar
3 Answers
+ 3
Hi Michael, attributes are name="value" pairs. So it should be inside quotation marks. Also, width attribute doesn't work on <p> tags. It's not a global attribute. It will work on a few tags only. Check this out for more info: https://www.w3schools.com/tags/att_width.asp
17th Feb 2018, 2:05 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
0
انا اللغتي العربية ماخراني اني اتقدم بسرعة ولاكن انا احاول ان اتعلم الانجليزية وايضا ان واتعلم البرمجة الويب اذا ممكن نكون اصدقاء من دواعي سروري
23rd Nov 2020, 11:41 PM
Yaseen Kishko
Yaseen Kishko - avatar
0
Iam my mother tongue, the Arabic language. I hope that I master the English language so that I can learn faster. I would like to make friends with people who speak English together. One is my friend and he understands me and shares the thing that I love, which is programming, but I am a beginner. Please help me, thank you, and I hope you communicate with me.
23rd Nov 2020, 11:45 PM
Yaseen Kishko
Yaseen Kishko - avatar