HTML <div> tag and <span> tag | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

HTML <div> tag and <span> tag

I saw the following code while learning HTML and don't know it's meaning. It was not shown in any topic I am currently doing. Please help: <div class="section"> </div> https://code.sololearn.com/1146/#html Also, what is <span> tag?

9th Aug 2020, 2:26 PM
Rakshit
Rakshit - avatar
6 Answers
+ 4
Rakshit firstly you are editing html code in other language section
9th Aug 2020, 2:31 PM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
+ 2
The div tag has an attribute "class" with a value "section". This means that a class section is defined in the css code style the div elements. For the span tag, it is used as a general inline element for styling.... Nothing special in particular
9th Aug 2020, 2:30 PM
Fatunmbi Teniola
+ 2
Rakshit I don't mean that. You should start with html then css then js
10th Aug 2020, 6:12 AM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
+ 2
Rakshit see this your code should be in html editor/window but its in something other. See this https://code.sololearn.com/WrZcsqw7G98z/?ref=app
10th Aug 2020, 6:14 AM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
+ 1
AKSHAY Okay... Thanks a lot
10th Aug 2020, 1:12 PM
Rakshit
Rakshit - avatar
0
AKSHAY I have only started HTML, so should I consider it after learning other like CSS or Java?
9th Aug 2020, 5:27 PM
Rakshit
Rakshit - avatar