HTML Single Elements

Horizontal Rule <hr />

Horizontal Rules divide blocks of text for easier reading. <hr /> . This is another single element which places a horizontal line from the left to the right margins.

Attributes: Width, Size, Align, Shade

  • size - Vertical Height-Defines the line thickness, in pixels
  • width - Defines width of line, in pixels or percentage
  • align - Options are left, right, and center(default)
  • shade - Defines shade on or off, on (default)
<hr size="5" width="80%" />

<hr size="4" width="60%" />

<hr size="15" width="50%" noshade="noshade" />

Line Break <br />

Line breaks are placed within a block-level element forcing the text to be placed on the next line.

Inline image<img />

The Image tag displays an image on the web page using other image attributes such as src, alt, height, width, id, float.

Meta <meta />

The Meta element is placed in the head to describe information about the page. Search engines use this data to index the site.

 •  •  • head link <link />

Link <link />

The link element is used to connect an external style sheet to the web page.

Web Design with XHTML Part I
Doris Cuffey, Instructor