+ 3

What's the difference between “element” and “tag”?

16th Nov 2020, 2:50 PM
Otudero Temiloluwa
6 Respuestas
+ 7
The tag is either the opening or the closing and represents where the element starts and end for example <body> is an opening tag and </body> is the ending tag. The element includes the start tag, end tag, attribute, and what the tag contains. Hope this helps
16th Nov 2020, 2:58 PM
pNK
pNK - avatar
+ 5
<p> this is tag <p>...</p> this is element Element refers to opening tag (which may also be self-closing tag), its content (where supported), an optional ending tag, plus some attributes that may or may not be set to define the element's properties / behaviours. https://www.tutorialrepublic.com/html-tutorial/html-elements.php
16th Nov 2020, 3:07 PM
Ipang
+ 3
<b></b> this is tag <b>khadda<\b> this is element
17th Nov 2020, 7:53 PM
HAMYD KHADDA
HAMYD KHADDA - avatar
+ 1
<h1> this can be call tag And <h1>.......</h1> this is element.
17th Nov 2020, 6:31 PM
Michael Victor
Michael Victor - avatar
+ 1
<h1>HELLO</h1> <title>mywebsite</title> <b>myblodtext</b> Tag: Tag has two parts 1)starting tag<h1> 2)ending tag</h1> And just - not every tag needs an end-tag Element: On the above example HELLO is our element The tag in HTML reperesents something to be done on an element On the above example we are representing our element:HELLO as h1(heading 1)by using heading tag:<h1></h1> We are representing our element :mywebsite as title for our web page by using of an title tag:<title></title> And also The <title> should best be located within the <head> tag We are making our element:myboldtext as bold by using of bold tag:<b></b>
18th Nov 2020, 11:22 AM
VAMSI
VAMSI - avatar
0
HTML JavaScript?
17th Nov 2020, 9:18 PM
Sodar
Sodar - avatar