Yes. In PHP also we can't use html tags directly. We may use it with echo statement. Eg: Second way: In the second case once u close the php tag it will consider the next as html in that case u may directly write html. In both cases output will be same.
At the time of Invention , First it is named as live script, But due to huge popularity of Java at that time, The developers have changed the name from "livescript" to "JavaScript" to attract people...But Java and JavaScript Doesn't have any similarity, They are Entirely different...