what is the use of </span> and </div> in Html. | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 5

what is the use of </span> and </div> in Html.

16th Oct 2018, 8:41 AM
raza naqvi
raza naqvi - avatar
20 ответов
+ 4
There are some link in that page that point to futher info like https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements Anyway, try to think about semantic of tags... In styling context, every content tag can be treated in different way from default (at example you can set <p> be like inline element) BUT one difference keep.. Though bad presented, its alway a paragraph. Why have to take cure of it if , at end, presentation is how we set? Well, i think that an external source explain better than me https://www.lifewire.com/why-use-semantic-html-3468271 than READ IT After readed that, you can understand better why exist div and span.. They are NO semantic elements treated like, by default, block and inline respectively. Thats. This is a more comprensive list of elements with semantic info https://developer.mozilla.org/en-US/docs/Web/HTML/Element
16th Oct 2018, 10:42 AM
KrOW
KrOW - avatar
+ 5
KrOW thanks!!
16th Oct 2018, 11:06 AM
raza naqvi
raza naqvi - avatar
+ 5
btw awesome coding KrOW
16th Oct 2018, 11:07 AM
raza naqvi
raza naqvi - avatar
+ 5
what's your real name??
16th Oct 2018, 11:11 AM
raza naqvi
raza naqvi - avatar
+ 5
no problem KrOW just askin , hope you don't mind .😅😅
16th Oct 2018, 11:16 AM
raza naqvi
raza naqvi - avatar
+ 4
sorry KrOW i did that by mistake,corrected that and your help appreciated😅😅 thanks for your help!!!
16th Oct 2018, 10:53 AM
raza naqvi
raza naqvi - avatar
+ 3
Satnam Singh elaborate
16th Oct 2018, 9:57 AM
raza naqvi
raza naqvi - avatar
+ 3
KrOW the link was very helpful,Now i know what </Span> is but what's div can't is use <p> for that.explain the use of <div>
16th Oct 2018, 10:02 AM
raza naqvi
raza naqvi - avatar
+ 3
KrOW upvote Q pls😁😁
16th Oct 2018, 10:56 AM
raza naqvi
raza naqvi - avatar
+ 2
https://www.sololearn.com/discuss/1390253/?ref=app P.S. I suggest you to read link that i posted in that question because there much differences often forgetted
16th Oct 2018, 8:56 AM
KrOW
KrOW - avatar
+ 2
raza naqvi I almost forgotten... Because you are learning, see this code https://code.sololearn.com/WaVusr8J1KvK/?ref=app It contain useful links for learning programming (and some other it fields) and dont worry, i dont want upvotes but i hate when someone downvote without a why (except when its clear) P.S. I upvote your question only because contain useful info to everyone that learning basic of html 😝
16th Oct 2018, 10:59 AM
KrOW
KrOW - avatar
+ 2
raza naqvi Thank you 😊... You will find that its not awesome like you think when you learn more deep web development 😉
16th Oct 2018, 11:08 AM
KrOW
KrOW - avatar
+ 2
raza naqvi Just for inform you: on SL its not allowed share personal information, then you can call me simply KrOW 😁
16th Oct 2018, 11:13 AM
KrOW
KrOW - avatar
+ 2
Both of these are dhtml( dynamic html) tags. Used to make the content dynamic. With div tag you can make content accessible for every device(like mobile, desktop and iPad) with the help of bootstrap or css.
16th Oct 2018, 3:24 PM
Vishvesh Jain
Vishvesh Jain - avatar
+ 2
KrOW , a good feast for learners. Thank you. It should reach all who loves learning.
19th Oct 2018, 5:11 PM
Brahmeswara Rao
Brahmeswara Rao - avatar
+ 2