Notes for Computer Information Technology 160
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

dec5-html.md 867B

December 5 - HTML

Overview

  • DOCTYPE
  • HTML
  • head
  • body
  • div
  • ol / ul
  • li
  • img
  • table
  • tr
  • td
  • th

DOCTYPE

How do you know what type of file a file is?

  1. filename and extension (.txt .doc)
  2. shabang (#!/bin/bash #!/usr/bin/python2)
  3. header information
$ ls -l file.txt
-rw-rw-r-- 1 user user 0 Dec  5 13:10 file.txt

# ls -l shows you permissions, owner, size, and date of a file
  • URI: Identifier
  • URL: Locator
  • URN: Name

HTTP request GET index.html host: www.example.com

can be written as

http://www.example.com/index.html

HTML

<!DOCTYPE html>
<html>
    <head>
      <title>PUT TITLE HERE</title>
    </head>
    <body>
        <h1>PUT HEADER HERE</h1>
        <p>PUT A PARAGRAPH HERE</p>
    </body>
</html>