HTML5, CSS3, and JavaScript Fourth Edition

(Ben Green) #1

Chapter 6


Using External Resources


Contents


6.1 Besides Images.................... 60
6.2 URL.......................... 61
6.3 Links.......................... 61
6.3.1 a: Anchor....................... 61
6.3.2 Fragment in Same Page............... 62
6.3.3 Fragment in Different Page............. 62
6.3.4 target=blank..................... 62
6.3.5 Docroot and Path.................. 62
6.4 URLs.......................... 63
6.5 Why Not Absolute?................. 64
6.6 Relative To Our Base................ 64
6.7 Sibling, Cousin, Second Cousin.......... 65
6.8 DocRoot: Current Domain, Absolute Path... 66
6.9 img src=......................... 67
6.10 a href=.......................... 67
6.11 We Can Change Our Base............. 68
6.12 Connecting With External Resources...... 68
6.12.1 img src=....................... 69
6.12.2 a href=........................ 69
6.12.3 script src=...................... 70
6.12.4 link.......................... 70

59

Free download pdf