Join Bill Weinman for an in-depth discussion in this video Specifying a base URL, part of XHTML and HTML Essential Training.
So, in our last lesson, we learned about relative URLs and in this lesson we're…going to talk about how you can change the base of the relative URL.…In other words, we learned that relative URLs are relative to the location of…the document that has a link in it.…But you can actually change that by using the base tag.…The base tag goes in the head section and here is the base tag here and all this…does is it specifies a location that all the URLs in this document are going to…be relative to and again this file is available on my web server.…
I'm actually using a local copy of it, because it can illustrate the same point.…You'll notice in the browser here that this file is on my local machine at a file URL.…Yet when I hover my mouse over this link, you'll see at that bottom.…It's a link on the server and yet if you look at it in the text editor that…this link, it doesn't have that whole http part of it.…That's in the base and so it takes this and it uses this as the base for…the relative URL and so this relative URL will start with the…
- Understanding the structure of an HTML or XHTML document
- Creating and using templates
- Controlling white space and line breaks
- Making effective use of tables and frames
- Flowing text around an image
- Formatting tables with CSS
- Creating web pages that work properly across platforms and devices
- Reviewing a case study of a complete web site
Skill Level Beginner
Q: In this title, the instructor uses tables to create a website design. Is there a way to create this same layout with CSS?<br />
A: This course will be updated to include CSS-based layout techniques within<br /> the next few months. In the meantime, please see Bill's <a href="<br /> http://www.lynda.com/home/DisplayCourse.aspx?lpk2=52341">CSS for<br /> Developers</a> title for more information on coding with CSS.<br />
Q: In the "Understanding the structure of an XHTML document" movie in Chapter 1, where does the "Roses are red," etc, text come from? I don't see it in the code.
<div>A: Notice the <frame src="??"> tags. These reference other .html files that contain the content of the various frames. Details about how frames work can be found in Chapter 6 of the course.</div>
Q: In this title, the instructor uses tables to create a website design. Is there a way to create this same layout with CSS?
A: This course will be updated to include CSS-based layout techniques later in 2012. In the meantime, please see Bill's <a href="http://www.lynda.com/home/DisplayCourse.aspx?lpk2=52341">CSS for Developers</a> title for more information on coding with CSS.
1. Introducing XHTML and HTML
2. Text Tags
3. Image Tags
Using inline images3m 17s
4. Link Tags
9. Creating a Simple Web Page from Scratch
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.