Class prep · TJ Mobile and Web App Development

Build the page,then connect the data.

An independent course in mobile and web app development. Practice HTML, CSS, JavaScript, HTTP, SQL, and Android screens, and check each result. Every problem has a full worked solution. Built by Neil Kothari, a TJ alumnus.

$395 covers the full school year. The first lesson is free.

Try one. This is a test-level question from the course.

Problem 1

  • Test level
  • Multiple choice
  • No calculator
  • 4 pts

How many nodes does the club page contain if elements and text nodes are both counted?

Choose one answer

original problems, each with a worked answer
624
original problems, each with a worked answer
at test level or beyond
432
at test level or beyond
short lessons, one for every topic
48
short lessons, one for every topic
units, all open now
8
units, all open now

Free lesson

Lesson 1.1: Documents, Elements and the Tree

Name parents, children, and text before you style or script a page.

Start with the document tree. Name the parent, the children, and the text before you write a selector or a script.

How to read this lesson

An HTML document is a tree, not a list of lines. The browser reads tags and builds parent and child relationships. When a style or a script looks at the wrong node, the usual cause is a parent you assumed from indentation and a parent the parser actually created. This lesson uses one small club page so every later count has a fixed document. The page has a heading, one paragraph, and an emphasis element inside that paragraph.

Write the tree before you write a selector. Name the element, its parent, and the text it owns. Text is not an element. The word Tuesday can sit inside em, while em sits inside p, and p sits inside body. Those are three different questions, and a correct answer names which one was asked.

The tree for this page

The document used here is a body whose children are an h1 and a p, in that order. The h1 contains only the text Robotics. The p contains the text Meet, then an em element, then the text at 4. The em contains the text Tuesday. There is no div, no link, and no image in this first tree. A preorder walk lists a parent before its children and keeps siblings in source order. The element names in preorder are body, h1, p, em. The h1 comes before the p because it is the earlier child of body. The em comes after the p has been entered, not after the paragraph has been finished.

The visible text of the paragraph, reading element text in order, is Meet Tuesday at 4. The spaces are part of the text nodes. If you drop them, you invent MeetTuesday. The heading text Robotics is not part of the paragraph. A function that concatenates every text node under body produces RoboticsMeet Tuesday at 4 unless it inserts separators the document does not have.

The parent of em is p. The parent of p is body. The parent of h1 is body. The h1 and the em are not siblings. A sibling check asks whether two nodes have the same parent. h1 and p are siblings. em and the text Meet are siblings inside p, and one of those siblings is text rather than an element. Count element nodes separately from text nodes. This tree has four elements: body, h1, p, and em. It has four text nodes: Robotics, Meet, Tuesday, and at 4. A student who counts every node and reports 4 has counted only the elements. A student who reports 8 has counted both kinds. The question has to say which count it wants.

Problem 2

  • Core
  • True or false
  • No calculator
  • 2 pts

Club page: body has two children, an h1 whose only text is Robotics, and a p whose children are the text Meet with a trailing space, an em whose text is Tuesday, and the text at 4 with a leading space. Claim: the parent of em is p.

Is the statement true or false?

Problem 3

  • Core
  • Multiple choice
  • No calculator
  • 4 pts

On the club page, which statement matches the parent map?

Choose one answer

Open the rest of this lesson, free

The full lesson and all 13 of its problems, with every worked answer.

I am aI am a

Your free lesson opens right here, on this device for 30 days. We'll email you occasional TJ class prep updates. Unsubscribe anytime.

How it works

Class prep that works alongside class

A complete course for students taking mobile or web app development. Work alongside your school course or study the material in sequence. Each lesson starts with a concrete interface, develops one rule, and shows a check before you try the practice.

  • Original problems in several formats: true or false, multiple choice, multi-part and free response.
  • Each one is marked core, test level or beyond.
  • HTML trees, CSS layout, JavaScript events, HTTP, SQL, and Android screens you can recompute.
  • A worked answer for every problem, ending with the mistake that most often costs points.
  • Documents, layout, client behavior, server routes, stored data, and a small Android feature.

What is inside

  1. 1HTML documents and meaning6 lessons · 78 problems
  2. 2CSS for layout and contrast6 lessons · 78 problems
  3. 3JavaScript in the page6 lessons · 78 problems
  4. 4Client data6 lessons · 78 problems
  5. 5HTTP and a small router6 lessons · 78 problems
  6. 6SQL with sqlite6 lessons · 78 problems
  7. 7Android activities in Java6 lessons · 78 problems
  8. 8A connected feature6 lessons · 78 problems
The front entrance of Thomas Jefferson High School for Science and Technology
Neil Kothari, co-founder of EduAvenues

Who built it

Neil Kothari

TJHSST alumnus · Co-founder, EduAvenues · 10+ years in TJ preparation

Neil is a TJ alumnus and has spent more than a decade working with TJ students and their families. He built this course so students can trace a page from the document to the data behind it. Every problem is written for the course and every answer is checked before it goes in.

Tuition

$395for the full school year

One tuition covers every unit of the course. All 8 units are open now. The Documents, Elements and the Tree lesson stays free for everyone.

  • All 8 units: 48 lessons and 624 original problems
  • A worked answer for every problem
  • Access through the end of the school year
Enroll
TJ Mobile and Web App Development | EduAvenues