Thursday, 29 May 2014

Web Protocols

HTML: HTML stand for Hyper Text Markup Language is NOT programming, it is a mark up language which is made up of a set of markup tags. HTML tags are keywords surrounded by angled brackets like <html> for example. Usually, the tags come in pairs to show that it is opening and then closing again, for example <b> and </b> (first tag opening and second tag closing). When using HTML, it is NOT case sensitive and therefore it doesn’t matter whether it is in upper case, lower case or even a mixture. Here are some examples of markup tags and what they mean:

·         <p> - Paragraph

·         <b> - Bold

·         <html> and <body> - Normally used at the start of HTML

·         <br> - Break

·         <src> - Source

·         <img> - Image

·         <color><#1234> - Colour

 Here are some examples of markup tags and the order they go in:

·          <html>

·         <body>

·         <p> This is my first paragraph </p>

·         <p> This is my <b> second </b> paragraph </p>

·         </body>

·         </html>

XHTML: XHTML stands for Extensible Hyper Text Markup Language and is a stricter and cleaner version of HTML. It issues the same principles as HTML but helps to create a more dynamic website.

·         XML describes data

·         HTML displays data

·         XHTML does both

Using XHTML, it allows the designers to create and customise their own tags to their own preference. XHTML elements must be properly nested and must always be closed. XHTML is slightly different to HTML in the way that only lowercase can be used otherwise it will not work.

No comments:

Post a Comment