Question:

What are HTML character entities? Why do we use it?

by  |  earlier

0 LIKES UnLike

what are HTML character entities? Why do we use it?

Give its meaning

 Tags:

   Report

2 ANSWERS


  1. Here is a nice tutorial to help you with your query

    http://www.gateway2internet.com/tutorial...


  2. "htmlentities" are these characters that made the HTML markup language, like "<body>", or "<br>".

    The reason we have to pay attention to them is that browsers DO use them!

    On the line above, I used <rb> (the other way): YA editor takes it as "next line", and will bot show " < B R / > " correctly.

    If you try to send a piece of code (HTML) to a friend, he will not see the code, but the HTML page, decripted.

    To prevent this we use the "entities" and replace special characters with their value: "<" becomes "& L T ;"

    and "è" becomes "& e grave ;" (with no spaces, otherwise this editor will convert them!)

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.