0

Is it necessary to add the tag <p> or can we use any other tag

Can we use tags like <c>, <h>, etc.

23rd Mar 2019, 5:01 PM
Jack
3 Answers
+ 4
No you cannot make tags of your own. You have to use tags that are available in html. Instead of <p></p> tag you can use <div></ div> tag. Tags that you have mentioned are not valid.
23rd Mar 2019, 5:38 PM
Gurpreet Jhamat
Gurpreet Jhamat - avatar
+ 1
://You can use them but they are not valid html tag, As <p> tag is block level element instead if you use <c> or <h> they will be inline elements
23rd Mar 2019, 6:29 PM
Sudarshan Rai
Sudarshan Rai - avatar
0
HTML5 has predefined elements that fullfil one goal. For example <p> is for paragraph, <a> for links or <h1> for level 1 headings.
23rd Mar 2019, 10:07 PM
Jorge
Jorge - avatar