+ 3
What's the difference between âelementâ and âtagâ?
6 Respostas
+ 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
+ 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
+ 3
<b></b> this is tag
<b>khadda<\b> this is element
+ 1
<h1> this can be call tag
And <h1>.......</h1> this is element.
+ 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>
0
HTML JavaScript?