Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

difference between tag and element

HTML tag is just opening or closing entity. For example:

<p> and </p> are called HTML tags

HTML element encompasses opening tag, closing tag, content (optional for content-less tags) Eg:

<p>This is the content</p> : This complete thing is called a HTML element
 
PREVIOUS NEXT
Tagged: #difference #tag #element
ADD COMMENT
Topic
Name
1+2 =