Introduction to HTML - Reading Notes

Introduction to HTML - Reading Notes

Read the full blogs:

Wireframe and Design

Mozilla HTML Basics

Semantics

Wireframe and Design

What is a wireframe? A wireframe is basically an architectural blueprint for you website or app. A two-dimensional skeletal outline that lays out how you want the information to be processed by the user.

There are many ways to go from design to implementation - it all depends on the project and the user.

Tools for wireframing include pen and paper or free online tools such as UXPin, InVision, or Wireframe.cc

Six Steps to Make a Wireframe

  1. Research - who is your audience, detail requirements, creating user personas, defining use cases, competitor and industry competition
  2. Prepare your research for quick reference - make a cheatsheet with your business goals and user goals, your personas, use cases, and cool features found along the way
  3. Map out your user flow - provide good information architecture to make moving through the site less frustrating for the user
  4. Draft, don’t draw. Sketch, don’t illustrate - don’t get fancy, just create the bare bones for now.
  5. Add some detail and get testing - you have the skeleton, now start adding the tendons and ligaments. Consider usability conventions, simple-instructional wording, trust building elements, and tool tips to indicate functionality
  6. Start turning your wireframe into a prototype - tools like Pronto.io, Adobe XD, Framer, Sketch (very popular), or Figma to start developing your high-fidelity prototype. Use InVision to interlink screens for the second round of testing

Three Key Principles

  1. Clarity - answer the questions and achieve the goals
  2. Confidence - easy to navigate and clear calls-to-action = confidence
  3. Simplicity - Don’t over do it, too many distractions = the inability to achieve goals

Mozilla HTML Basics

HTML stands for HyperText Markup Language - it is the coe that is used to structure a webpage and its content.

Wrap content in tags to change the way they appear and behave on the website

An HTML element is composed of an opening tag, a closing tag, and the content.

Attributes add extra information to the element but do not appear in the content. They can have a name and a value. The attribute ‘class=”editor-note”’ gives the element a label so that you can easily find it later. Attritbutes should have:

Nesting elements means you have an element inside an element. Be sure to close the elements from the inside out, do not overlap tags.

Empty elements have no content and no closing tag. An empty element doesnt wrap content to affect it. Placing an image into your website requires an empty image element with attributes of information about the image.

Anatomy of an HTML Document

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>My test page</title>
  </head>
  <body>
    <img src="images/firefox-icon.png" alt="My test image">
  </body>
</html>

Above is an example of the beginning of a basic website. Let’s break it down:

Images

<img src="" alt="">

This empty element will place and image in the position it appears. It has a src (source) attritbute that has the path to the file and an alt (alternative) attribute that describes the image. Alternative text provides the information for screen readers as well as explains what should be there if the photo doesnt display properly.

Headings

HTML has 6 levels of headings with the most important being number 1.

<h1>My Main Title</h1>
<h2>My Top Level Heading</h2>
<h3>My Subheading</h3>
<h4>My Sub-subheading</h4>

NOTE you can add a comment in your HTML code that wont appear on the page by writing text between

<!-- and -->

Paragraphs

Create paragraphs by wrapping each individual paragraph in this element:

<p>This is a single paragraph</p>

Lists

  1. Unordered lists are for lists where the order doesnt matter
  2. Ordered lists are for lists where the order matters
  3. Add items in the list by wrapping each one in this element:

Links are very very important when creating a website! You can make any text a link to another page by following these steps:

<a href="">click here</a>
  1. Choose text to make a link - ex: ‘click here’
  2. Wrap it in an ‘a’ element
  3. Add an href attribute
  4. Make the value of the href the web address that you want the link to lead to

Semantics

The meaning of the code. A level one heading holds weight of importance in HTML, you can make a font size as big as you want but the most important heading on your page will always be between h1 tags.

What are the benefits of semantic markup?

Examples of semantic elements:

<article>
<aside>
<details>
<figcaption>
<footer>
<header>
<main>

Return home