Lab 1

HTML Examples

H1

H2

H3

H4

H5
H6

Zhenming Gao

Hi, my name is Zhenming Gao. I'm currently a MSCS student at Northeastern. For something easier to pronounce, you can call me Evan.

Lab notes

Lorem ipsum dolor sit amet, consectetur adipisicing elit. Labore illo accusamus tempore nobis dignissimos veritatis ut incidunt corporis voluptatum consequatur! Rem sunt voluptatum iure aspernatur saepe corrupti necessitatibus, accusamus amet!
What I built
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Labore illo accusamus tempore nobis dignissimos veritatis ut incidunt corporis voluptatum consequatur! Rem sunt voluptatum iure aspernatur saepe corrupti necessitatibus, accusamus amet!
Next step
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Labore illo accusamus tempore nobis dignissimos veritatis ut incidunt corporis voluptatum consequatur! Rem sunt voluptatum iure aspernatur saepe corrupti necessitatibus, accusamus amet!

Paragraph Tag

This is a paragraph. We often separate a long set of sentences with vertical spaces to make the text easier to read. Browsers ignore vertical white spaces and render all the text as one single set of sentences. To force the browser to add vertical spacing, wrap the paragraphs you want to separate with the paragraph tag

This is the first paragraph. The paragraph tag is used to format vertical gaps between long pieces of text like this one.

This is the second paragraph. Even though there is a deliberate white gap between the paragraph above and this paragraph, by default browsers render them as one contiguous piece of text as shown here on the right.

This is the third paragraph. Wrap each paragraph with the paragraph tag to tell browsers to render the gaps.

Hi, my name is Zhenming Gao. I'm currently a MSCS student at Northeastern.

For something easier to pronounce, you can call me Evan.

Browsers collapse runs of whitespace and newlines in the source into a single space, so blank lines in the HTML do nothing on their own. The paragraph tag creates a block-level box that starts on its own line, and the browser's default stylesheet gives it a top and bottom margin of 1em. That margin, not the whitespace in the source, is what produces the vertical gap between paragraphs.

List Tags

Ordered List Tag
How to make pancakes:
  1. Mix dry ingredients.
  2. Add wet ingredients.
  3. Stir to combine.
  4. Heat a skillet or griddle.
  5. Pour batter onto the skillet.
  6. Cook until bubbly on top.
  7. Flip and cook the other side.
  8. Serve and enjoy!
Unordered List Tag
My favorite books (in no particular order)
  • Dune
  • Lord of the Rings
  • Ender's Game
  • Red Mars
  • The Forever War
My actual favorite recipe
How to make scrambled eggs
  1. Gather all ingredients.
  2. Whisk eggs in a small bowl until smooth. Mix in ham, Cheddar cheese, and heavy cream.
  3. Melt butter in a skillet over medium heat. Pour in egg mixture; cook and stir until set but still moist, 3 to 5 minutes.
My actual favorite books
  • Walden
  • A Tale of Two Cities
  • Les Misérables
  • The Three-Body Problem (Series)
Five common HTML tags
  • Heading tags <h1> through <h6> label sections of a page, h1 being the most important:
    <h2>List Tags</h2>
  • The paragraph tag <p> wraps a block of text so the browser renders vertical space around it:
    <p>How to make pancakes.</p>
  • The ordered list tag <ol> numbers its <li> items, so use it when sequence matters:
    <ol><li>Mix dry ingredients.</li><li>Add wet ingredients.</li></ol>
  • The unordered list tag <ul> bullets its <li> items, for collections with no particular order:
    <ul><li>Dune</li><li>Red Mars</li></ul>
  • The table tag <table> lays out rows <tr> of header <th> and data <td> cells for two dimensional data:
    <table><tr><th>Book</th></tr><tr><td>Walden</td></tr></table>

Table Tag

QuizTopicDateGrade
Q1HTML2/3/2185
Q2CSS2/10/2190
Q3JavaScript2/17/2195
Q4HTML2/3/2185
Q5CSS2/10/2190
Q6JavaScript2/13/2193
Q7JavaScript2/14/2185
Q8JavaScript2/15/2175
Q9JavaScript2/16/2165
Q10JavaScript2/18/2199
Average86.2
My course schedule
TimeMonTueWedThuFri
MorningFreeCS5010
Richards-458
FreeCS5010
Richards-458
AfternoonCS5011
Hastings-211
Free
NightCS5610
Shillman-105
Free

Image tag

Loading an image from the internet:
Starship
Loading a local image:
Tesla Bot (Optimus) humanoid robot
Glenda from Plan 9:
Glenda from Plan9
Breaking Bad:
Huell rolling in money

Form Elements

Text Fields



Text boxes

Radio buttons








Sibling label + htmlFor
Wrapping label w/o htmlFor
Checkboxes




Dropdowns

Select one

Select many

Other HTML field types





Buttons

Student Profile

Student Information


Why I'm taking this course
Class standing & Status







Interests

Languages:

Frameworks:

Career Goals:

Major & Topics



Misc. Info




Highlighted Paragraph

Default highlight: light yellow background, orange border.

Custom props: light blue background, navy border, thicker width, more rounding.

Another variation: misty rose background, crimson border, square corners.

Hi my name is Zhenming Gao. I like playing table tennis in my free time.

Highlighted Box

Callout

This box wraps any children — headings, paragraphs, lists, and more.

  • backgroundColor
  • borderColor
  • borderWidth
  • borderRadius

A second box with different style props wrapping different content.

Zhenming Gao: Goals of WebDev Course

  • Learn TypeScript
  • Learn React
  • Getting to know professional web developement

Sample nested content

    This is a nested paragraph


    QuizTopicDateGrade
    Q1HTML2/3/2185

Anchor tag

Please click here to get dummy text
GitHublipsum.com
Back to Labs
Jump to bottom

GitHub (new tab)

My Blog (Also in Next.js + React)
My GitHub
MDN: table element