julianna kunstler logo
html basics

how to read a code
Instagram icon

by JuliannaKunstler.com

Intro to HTML coding. Lesson plan.

HTML (HyperText Markup Language) is the code that is used to structure a web page and its content.

HTML consists of a series of elements, which you use to enclose, or wrap, different parts of the content to make it appear a certain way, or act a certain way.

html basics
Tag Description
<!DOCTYPE>  Defines the document type
<html> Defines an HTML document
<head> Defines information about the document
<meta> Provides information about the document (including site description, keywords, character set, etc)
<title> Defines a title for the document
<body> Defines the document's body
<!--...--> Defines a comment
html basics

<HTML>

Opening tag. Specifies page as an HTML document

</HTML>

Closing tag. Specifies the end of the document.

HTML document has two basic parts:

  • The <HEAD> section
    stores the <title>, keywords, tags, description of a page, styles links, scripts, etc.
    </HEAD>
  • The <BODY> section
    is the viewable section of a page (text, images, media elements, etc)
    </BODY>

Each element has an opening tag and a closing tag.

Elements can be nested.

html basics
html basics
html basics
html basics

<h3>Text formatting</h3>

<p>Plain paragraph text</p>

<p><b>This text is bold</b></p>

<p><i>This text is italic</i></p>

<p>This is<sub> subscript</sub> and <sup>superscript</sup></p>

Formatting elements were designed to display special types of text:

inline elements

  • <b> - Bold text
  • <strong> - Important text
  • <i> - Italic text
  • <em> - Emphasized text
  • <mark> - Marked text
  • <small> - Small text
  • <del> - Deleted text
  • <ins> - Inserted text
  • <code> - Computer code
  • <sub> - Subscript text
  • <q> - A quote
  • <sup> - Superscript text

block elements

  • <p> -

    A paragraph

  • <blockquote> -
    A quoted paragraph
  • <br> - a line break (within a paragraph)

For more text attributes (like font, color, decoration, size - use CSS (Cascading Style Sheets). Use CSS for most of your design needs.

Links

<a> is a link tag.

And, yes, it needs a closing tag too: </a>

This tag needs to have a value - destination.

Here is an example of external link:

<a href="http://w3schools.com/html/html_basic.asp">This is an external link</a>

Internal links (links between pages within you website):

<a href="acgr_web_intro.html">This is a link to another page</a>

... and if you organize your pages in folders:

<a href="folder1/acgr_web_intro.html">This is a link to another page</a>

Let's practice!

html basics

Open a text editor.

Start typing.

html basics
html basics
html basics
html basics
html basics
html basics
html basics
html basics
html basics
html basics
html basics
html basics
html basics
html basics
...