Docsity

HTML Forms and JavaScript, Summaries of Commercial Law

Partial preview of the text

Download HTML Forms and JavaScript and more Summaries Commercial Law in PDF only on Docsity!

C1. HTML, CSS and JavaScript

Bùi Quang Trường

1.1 HTML (Hyper Text Markup Language)

What is HTML?

  • Stands for Hyper Text Markup Language
  • Computer language used to create web pages
  • HTML file = text file containing markup tags such

  • Tags tell Web browser how to display a page
  • Can have either *.htm or *.html file extension

## XHTML
  • Lower case for tags = new standard
  • Preparing for next generation of HTML called XHTML

Your created HTML document

…document title…

…your page content…

Basic Tags

  • Headings
  • … to …
  • Like in Word • See example
  • Paragraph
  • -

    …

    - Inserts a line space before and after a paragraph - See example http://library.manoa.hawaii.edu/about/exhibits/index.html

Paragraph example

Link Tag

  • Link
  • Anchor tag …
  • 3 kinds
  • Link to page in same folder
  • Link to page in different folder
  • Link to outside webpage on the Internet.

Image Source Tag

  • Empty tag – no closing tag
  • Components of Img tag

  • Look for image in same folder
  • Different folder named images: “/images/pic.gif”

Division Tag

  • …

  • Division or section of document

  • Use to group elements to apply formatting or style

  • Example: all text within div tag will be fuchsia

     Title of section <p> bla bla bla bla </p> 

Examples of use of Links

Exercise

  • Add a paragraph
  • Add some links
  • Add an image
  • Create 3 divisions

Your session1 HTML document

  • Courses
  • Personal
  • -

    Hello my name is Caitlin Nelson and I am writing about myself. Contact info: - My WEB - -

    - - - - -

Next Mission

  • Choose colors for your page
  • Text color
  • Link color
  • Background color
  • Choose font size
  • Type of font
  • Font size