HTML5, CSS3, and JavaScript Fourth Edition

(Ben Green) #1

CHAPTER 21. WORKING OFFLINE 225


21.7 Reloading Your Webpage


On your browser find the reload
button. For Chrome, Firefox,
Opera, and Safari, they (cur-
rently) look like this.


After saving your changes, reload your webpage.


Click on the “circle arrow.” It will instruct your browser to get the webpage
content from whatever source it used before.


When you reload your page, you should see a heading, some normal text,
somebold text, some normal text, someitalic text, and some normal text.


Instead of seeing six lines, you probably only see two lines, one heading,
and one with all the rest. HTML ignores your line breaks. If you want line
breaks, you have to ask for them explicitly. The markup for line break is

.


The<>things are called tags. We write for thestart tag, and


for theend tag.

The tags in this example are h1, b, and i.


More about Reloading


Normally when you view a page, it will show the most recent copy it re-
members. The recent copy is stored in the browser’scacheto avoid using
your Internet connection. (Downloading can be slow, and might use up your
data cap for the month.)


The browser’s cache is stored right on your local computer. Usually it is in
a hidden part of your file system. It is hidden to prevent you from messing
with it directly.


When you do a reload, the browser ignores its cache and goes back to the
original source.


If the original source has changed, you may need to do a reload so you can
see those changes.


Exam Question 345(p.357):Where does your browser store files it might
need later?
Required Answer:cache


Exam Question 346(p.357):If you change a webpage, but when you visit

Free download pdf