Lab 1

HTML Examples

Heading Tags

Paragraph Tag

Text documents are often broken up into several sections and subsections. Each section is usually prefaced with a short title or heading that attempts to summarize the topic of the section it precedes. For instance this paragraph is preceded by the heading Heading Tags. The font of the section headings are usually larger and bolder than their subsection headings. This document uses headings to introduce topics such as HTML Documents, HTML Tags, Heading Tags, etc. HTML heading tags can be used to format plain text so that it renders in a browser as large headings. There are 6 heading tags for different sizes: h1, h2, h3, h4, h5, and h6. Tag h1 is the largest heading and h6 is the smallest heading.

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.

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!
My favorite recipe:
  1. Boil the appropriate amount of water.
  2. Add 1/4 tbsp of butter to the water as it boils.
  3. Cook your ground beef.
  4. When the water is boiling, add your rice and (rinsed) beans.
  5. Add taco seasoning to both the beef and the rice/beans.
  6. Add cooked beef to the rice and beans when they absorb all of the water.
  7. Add cheese, salt, and pepper, and mix thoroughly.
Unordered List Tag
My favorite books (in no particular order)
  • Dune
  • Lord of the Rings
  • Ender's Game
  • Red Mars
  • The Forever War
Your favorite books (in no particular order)
  • The Let Them Theory
  • Too Big to Fail
  • Heated Rivalry
  • What Happened

Table Tag

QuizTopicDateGrade
Q1HTML1/10/2685
Q2CSS1/14/2690
Q3CSS1/21/2685
Q4JS1/28/2621
Q5JS2/3/2689
Q6State2/10/2656
Q7Redux2/19/2699
Q8Node3/10/2622
Q9Node3/24/2668
Q10Mongo3/31/2685
Average90

Image tag

Loading an image from the internet:

Loading a local image:

Form Elements

Text Fields



Text boxes

Radio buttons




Checkboxes




Dropdowns

Select one

Select many

Other HTML field types





Anchor tag

Please click here to get dummy text
GitHub Link is also available.