Reputation: 677
When I inspect the element in Chrome dev tools I see the following
Why do I see this element?  
and how can I remove it?
<div>Word1 </div>
Upvotes: 0
Views: 826
Reputation: 827
 
represents the non-breaking space entity.
Here's an excerpt from the MDN docs on entities:
Entities are frequently used to display reserved characters (which would otherwise be interpreted as HTML code), and invisible characters (like non-breaking spaces). You can also use them in place of other characters that are difficult to type with a standard keyboard.
Upvotes: 1
Reputation: 21
means 'Non-Breaking Space'. In a WYSIWYG (What you see is what you get) text editor you can just press space a bunch of times to get a larger space. But in HTML it would just read multiple spaces as one. So that code you pasted should show as "Word1 ".
Upvotes: 2