HTML and CSS Lessson 4

Create and style the header

Lesson 3 Lesson 5


HTML Notes:

<header> tag:

  • The <header> element represents a container for introductory content or a set of navigational links.

<a> tag:

  • The <a> tag defines a hyperlink, which is used to link from one page to another.
  • The most important attribute of the <a> element is the href attribute, which indicates the link's destination.

<img/> tag:

  • The <img/> tag defines an image in an HTML page.
  • Its has two required attributes: src and alt.

CSS Notes:

height property:

  • The height property sets the height of an element.
    Syntax height: auto | value;

width property:

  • The width property sets the width of an element.
    Syntax width: auto | value;

position property:

  • The position property specifies the type of positioning method used for an element.
    Syntax position: auto | value;