• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Some doubts on sentence in HF book

 
Lee Kian Giap
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am now on the initial stage of preparing SCWCD exam , when I come across page 6 of HeadFirst book, the statement under the small picture says :

"HTML tells the browser how to display the content to the user"

My question is , doesn't the actual thing that tell the browser how to display a content is actually the HTTP Response and specifically the content-type in the HTTP Response ??
or is just my mistake on english language understanding ??
can anyone help to clear my doubt ??

THANKS A LOT !!!
 
Omar Al Kababji
Ranch Hand
Posts: 357
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTTP is the transfer protocol that makes your browser communicate with other HTTP servers such as Tomcat. and yes it contains a content type that is normaly text/html which is used to display the pages, but this content-type could be an XML or a PDF or something else and this is used by the browser to best choose the required application to open it. for example in case of PDF it will use an acrobat reader. for a video quick time ... etc.

however in the HF book it is saying that in the case that the response content type is HTML then what is written inside this HTML response will tell the browser how to display the result on the screen. for example translating an <h1> tag to a header. a <select> tag to a combo box... etc.

got it ;) ??
 
Lee Kian Giap
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Blink !!

Thanks for your explanation , this make me feel bright !!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic