Class 4 notes

My reading journal for Code Fellows

Class 4 notes

Wireframe

Mozilla HTML Basics

  1. The opening tag: This consists of the name of the element (in this case, p), wrapped in opening and closing angle brackets. This states where the element begins or starts to take effect — in this case where the paragraph begins.

  2. The closing tag: This is the same as the opening tag, except that it includes a forward slash before the element name. This states where the element ends — in this case where the paragraph ends. Failing to add a closing tag is one of the standard beginner errors and can lead to strange results.
  3. The content: This is the content of the element, which in this case, is just text.
  4. The element: The opening tag, the closing tag, and the content together comprise the element.
  1. <img> element it embeds an image into our page in the position it appears. It does this via the src (source) attribute, which contains the path to our image file.

-Note: Anything in HTML between is an HTML comment. The browser ignores comments as it renders the code. In other words, they are not visible on the page - just in the code. HTML comments are a way for you to write helpful notes about your code or logic.

  1. As explained above, <p> elements are for containing paragraphs of text; you’ll use these frequently when marking up regular text content
  1. Links are very important — they are what makes the web a web! To add a link, we need to use a simple element — <a> — “a” being the short form for “anchor”. To make text within your paragraph into a link, follow these steps:

  2. Choose some text. We chose the text “Mozilla Manifesto”. Wrap the text in an <a> element