What Is a Link Tag/Element

Q

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

✍: FYIcenter.com

A

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"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
 <head>
  <title>My First CSS Example</title>
  <link rel="stylesheet" type="text/css" href="/_fyi.css" />
 </head>
 <body>
  <p>Hello world!</p>
 </body>
</html>

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

2007-05-12, 4523👍, 0💬