I want to show only the first 3 lines of the paragraph below using HTML formatting. I am searching on W3Schools but it doesn\'t show how to do it.
You can give the container a height and line-height and set its overflow property to hidden:
height
line-height
overflow
hidden
HTML
loremloremlorem...
CSS
p { height:60px; line-height:20px; /* Height / no. of lines to display */ overflow:hidden; }
JSFiddle example.