0
Clarity
So I was on a site for coding and to write a code, ā<h1> is used as an opening tag to write but here ā<p> is used. I just want to know what they both represent. Thank you
4 Answers
+ 2
Welcome to sololearn learner! You are new to the language, and you are facing issues, try to complete the lessons, and if you have any doubt , then in each lesson section we have comments where majority of related questions to that specific lesson you can visit to.
And even if your doubt is not clear, then sure you can use this Discussion Section.
Now, as per your question, h1, p ,span ,div, i, b, header, nav, and many more.... to go..
These are known as tags, each have there own meaning, u can write text in <p> tag and <h1> tag, you may see the difference in the output as there size and thickness varies.. but that's just for look and feel..
In actual these tags have meaning which the browser understands it, and treats each differently, so every tag aa I said has different meaning,
h1, h2, h3 ,h4,h5,h6 are heading tags and when they are rendered on browser, the browser treats them differently.
And p tag stands for paragraph. you can use it write paragraphs.
and like them there are many more with purpose.
0
<h1> simply means heading 1, it is the largest </h1> is the closing tag while <p> is paragraph, the closing tag is </p>
0
Emebo Prosper <h1>Thank you</h1>