<p><i>test</i></p>
<i>test</i>
When to use p
with i
tag? As p
is text is must be used? If not? And also with span
sub
sup
etc? What the reason take around a p tag or not?
Thanks
<p><i>test</i></p>
<i>test</i>
When to use p
with i
tag? As p
is text is must be used? If not? And also with span
sub
sup
etc? What the reason take around a p tag or not?
Thanks
Hello
this is a good and rich source to know wich tag you should use and when to use it.
https://www.w3schools.com/tags/tag_i.asp
Like you linked on all tutorial (demo text) have the extra tags like span
sub
sup
tags inside a p
tag. Still what the reason to use it or not :)?
Thanks
All this tags give meaning to the manipulated text inside a p
tag or hx
tag.
The <i>
tag can be used to indicate a technical term, a phrase from another language, a thought, or a ship name, etc.
The <span>
tag is used to group inline-elements in a document.
The <span>
tag provides no visual change by itself.
The <span>
tag provides a way to add a hook to a part of a text or a part of a document.
Tip: When a text is hooked in a <span>
element, you can style it with CSS, or manipulate it with JavaScript.
The <sub>
tag defines subscript text. Subscript text appears half a character below the normal line, and is sometimes rendered in a smaller font. Subscript text can be used for chemical formulas, like H2O