Expand your HTML skills through an MDN Fellowship - Apply by April 1 http://mzl.la/MDNFellowship

mozilla

Compare Revisions

<base>

Change Revisions

Revision 3970:

Revision 3970 by Victory on

Revision 3971:

Revision 3971 by Victory on

Title:
base
base
Slug:
HTML/Element/base
HTML/Element/base
Tags:
HTML, HTML:Element, "HTML:Element Reference"
HTML, HTML:Element, "HTML:Element Reference"
Content:

Revision 3970
Revision 3971
n36&lt;base href="http://www.yourdomain.com/" /&gt;n36&lt;base href="<span class="plain">http://www.yourdomain.com/</sp
 >an>" /&gt;
37&lt;base target="_blank" href="http://www.yourdomain.com/" /&gt; 37&lt;base target="_blank" href="<span class="plain">http://www.you
> >rdomain.com/</span>" /&gt;  
t42    <p>t42    <ul>
43      This element should only occur within the head element.43      <li>
44        <code>&lt;head&gt;</code> element.
45      </li>
44    </p>46    </ul>
45    <p>47    <ul>
46      HTML 2.0 and 3.2 define only the href attribute.48      <li>HTML 2.0 and 3.2 define only the <code>href</code> attr
 >ibute.
49      </li>
47    </p>50    </ul>
48    <p>51    <ul>
49      XHTML 1.0 requires a trailing slash: <code>&lt;base /&gt;</52      <li>XHTML 1.0 requires a trailing slash: <code>&lt;base /&g
>code>>t;</code>
53      </li>
50    </p>54    </ul>

Back to History