Join James Williamson for an in-depth discussion in this video Controlling whitespace, part of HTML Essential Training.
…As you first start authoring HTML you're probably going to notice what seems to…be a really curious behavior among browsers regarding your use of whitespace.…You see, no matter how much whitespace you put in your content,…your browser is going to, for…the most part, ignore everything after that first space of character.…So I've got the whitespace.htm from 0307 I'll put up in my browser and…you can see I have the sentence that says by default browsers will ignore any…white space after the first space.…
To add additional white space you must use the non breaking space entities.…So you can see I've got the HTML character entity there for that, so…to kind of experiment around with that a little bit, I've got the same file opened…up in my code editor, and I am going to do just what I suggest,…I'm going to try it right here inside this paragraph between these two sentences.…I'm going to add a lot of white space.…All right.…So you can see there's a lot of white space between the first sentence and…the second sentence, even though they're in the same paragraph.…
- Why is HTML important?
- Exploring an HTML document
- Formatting content
- Displaying images
- Using nav, article, and div elements
- Linking to pages and downloadable content
- Creating lists
- Controlling styling (fonts, colors, and more)
- Writing basic scripts
Skill Level Beginner
Creating a Responsive HTML Emailwith Chris Converse1h 43m Beginner
1. Introducing HTML
2. Basic Page Structure
3. Formatting Page Content
4. Structuring Content
5. Creating Links
6. Creating Lists
7. Controlling Styling
8. Basic Scripting
Next steps2m 16s
- 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.