Wednesday, 26 November 2014

CSS


  • CSS stands for Cascading Style Sheet
  • CSS is used for changing the look and/or the layout of a HTML document
  • CSS was adding in HTML 4.0
  • CSS can be done in the HTML document or in an external file

 CSS Example

Body
{
  background-colour: #FFFFFF;
h1
{
   color: orange;
   text-align: center;
}

HTML


  • HTML stands for Hyper Text Markup Language.
  • HTML is written using HTML elements known as tags.
  • Tags are enclosed in angled brackets. For example; <html>
  • Almost all tags come in pairs. The pairs are known as the opening and closing tags. Closing tags have a forward slash after the first angled bracket and before the name of the element. For example <h3> </h3>
  • HTML allows for objects to be embedded on a web page. This includes things like images and videos.
  • You can also create interactive forms in HTML.

Example of HTML Document

<!DOCTYPE html>
<html>
   <head>
      <title>This is a title</title>
   </head>
   <body>
      <p>Hello World!</p>
   <body>
</html>

HTML Versions

  • November 24, 1995 - HTML 2.0
  • January 1997 - HTML 3.2
  • December 1997 - HTML 4.0
  • October 2014 - HTML 5.0

  • Web browsers can refer to Cascading Style Sheets (CSS) to change the look of the web page.