What Is a Link Tag/Element


What Is a Link Tag/Element? - XHTML 1.0 Tutorials - Document Structure and Head Level Tags

✍: FYIcenter.com


A "link" element is an optional sub-element of the "head" element. A "link" element is used to specify Cascading Style Sheet (CSS) file. Here is good example of a link element:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  <title>My First CSS Example</title>
  <link rel="stylesheet" type="text/css" href="/_fyi.css" />
  <p>Hello world!</p>

If you view the above the XHTML document, the browser will fetch _fyi.css and use its contents as CSS entries.

2007-05-12, 4579👍, 0💬