Programming in HTML and Visual Basic
Jon Jacky
Saturday April 1, 15, 29, May 13, 27, 10 am - 6pm, ACC lab
Back to course page.
Goals:
- Understand and use fundamental, widely-used programming and web design concepts
(not just features of particular products)
- Remove the mystery
(gain understanding and confidence, critical judgment)
- Create something (projects chosen/defined by student)
(exercise design judgment, proceed in stages, learn more VB & HTML,
gain experience)
Topics:
Textbook:
HTML 4 for the World Wide Web, by Elizabeth Castro,
ISBN 0201-69696-7, Peachpit Press of Addison Wesley (1998), 336 pages.
The main concepts are:
- Markup, tags
- Content/structure vs. Appearance/presentation/physical style
- Stylesheets
- Links
- Distributed applications
Topic list (page numbers refer to the textbook):
- Background 11-19
- Markup
- tags, attributes, nesting 21-23, 323-326
- deprecated tags 44
- Document structure
- html, head, body, headers 35-38
- horizontal rules 95
- Text
- spacing 24
- comment 56
- content: paragraph 39
- appearance: linebreak 102
- content: emphasized, strong 46
- appearance: italic, bold 46
- content: sample, keyboard, code, variable 54
- appearance: typewriter text 54
- preformatted text 113
- character entities 25, 355-356
- the dread font tag 45, 48-51
- Lists
- Unordered, ordered, and definition lists 135-141
- Links
- links within a page 120-121
- URL's, absolute and relative 26-29
- links to other pages 32, 118-121
- Stylesheets
- stylesheet basics 239-242
- deprecated tags 44
- external stylesheets 246-247
- class attribute 249
- Tables
- table, row, data 143-145 etc.
- Images
- image basics 82,84,85,327
- alt tags 83
- Distributed applications
- server side: CGI 187-189
- client side: Javascript (etc.) 291-295, 301-302
Textbook:
Teach Yourself Visual Basic 6 in 21 Days, by Greg M. Perry,
ISBN: 0672313103, Sams (1998) Paperback, 851 pages.
The main concepts are:
- Programming language (general principles)
vs. development environment (a particular product)
- Data and variables
- Statements and control structure
- Functions and subroutines
- Modular structure
- Data structures and algorithms
- Applications
Topic list (page numbers refer to textbook):
- Visual Basic Interactive Development Environment (IDE) I
- Introduction to the VB IDE 34-46
- Elements of VB programming
- Event-driven programming 25-29
- Forms 50-53
- Controls 53-57, 57-60, 63-76
- Events 77-80
- Code 80-83, 117-118
- IDE II: Project Matters
- Start new project: 34-35
- Project Window: 38-39
- Open Project: 47
- Save Project: 53
- Project Name (Project Properties): 116
- programming language I: variables, expressions, statements
- Types 118-124
- Declarations and variables 124-128
- Statements: assignment 128-130
- Operators and expressions, arithmetic: 130-132
- IDE III: Interpreting statements
- Immediate (Debug) window 658-659
- Programming language II: control stucture
- Operators and expressions, conditional and logical: 142-148
- If-Then-Else 148-153
- Case 153-156
- IDE IV: Executing programs
- Debug.Print 658-659
- Print 341-345
(Print is a method; a method is a statement with a particular object as its target)
- Break and single-step 654-658
- Assert
- Programming language III: data structures and algorithms
- For loops 160-163
- Arrays 305-314
(example: search)
- Do loops 156-160
(example: successive approximation)
- Programming language IV: functions and subroutines
- Functions 168-179, 226-228, 230-231
- Subroutines 216-226
- Program structure 216-217
- Global and local (scope) 219-223
- Passing parameters 223-226
- Functions again 226-229
- Internal functions, math 230-232
- More IDE: Help
- what functions are available? 43-45
- Programming language IV: modular structure
- Program structure 216-217
- Form modules and code modules 116, 218
- Private and public 218-219
- Applications I: String processing and Text files
- Declaring strings 128
- String concatenation 131
- String comparison 145
- String functions 240-246
- Format 254-258
- Sequential files, Open, Close: 369-375
- Sequential files, Read, Write: 375-382
(example: copy, filter, line count)
- Applications II: Graphics
- Shape control 431-435
- PSet, Line, Circle methods 435-440
- Print with coordinates 345-346
- Animation with timers
- Other topics as time permits
Back to top
Jon Jacky, jackyj@evergreen.edu