Intro to coding mat-153-web design 1

Intro to Coding

Core skills

  • html
  • css
  • javascript
  • must know how to write code if you are serious
  • don’t be affraid of code

Learning to Code

  • takes time and effort
  • always changing
  • essential
  • without it you are limited

HTML

  • a markup language- it uses tags to identify how browser will display content
  • using Notepad (PC) or Textedit (Mac)
    • Textedit - be sure preferences are set to:
      • plain text
      • make sure it's not addding any extensions by default
  • can make website using textedit but not efficient
  • save file with .html extension
  • structural tags and parent/child tags
    • html - tells browser it is an html document
    • head - everything that makes the page work that is not displayed by browser
    • title - appears on tab, in google
    • body - what is displayed in browser

CSS

  • used to control visual style of page elements
  • embed in head, better to link to external file
  • CSS, not a markup language, presentation language

JavaScript

  • client-side scripting language
  • controls the functionality/behavior of the page elements
  • embed on page, better to link to external file
  • place scripting at bottom of page to load last