Fun With Page Source

Discussion in 'Page Source' started by Kirsten Bolda, Sep 17, 2015.

  1. Kirsten Bolda

    Kirsten Bolda Administrator Radio Button Problem - 2nd Demo Parts A and B Founder Not Banned

    A little story about my first encounter with page source ...
    One day, as I was helping Dan with Holly's site, I accidentally right clicked on my mouse and got this little menu.

    What could that be? I wondered. Maybe it was something I can use to help Dan. Besides, I was feeling adventurous that day. So I clicked it.
    (The menu on pcs looks a bit different, but it will say page or doc source, or something similar.)

    Imagine my surprise when my screen was filled with this!

    Umm, Dan, I posted somewhere in our conversations. There's code all over the place. This can't be good. What should we do?!

    Dan must have chuckled, because he replied quite calmly that everything was fine, and hadn't I ever heard of page source?

    Ummm, no. I'd never heard of page source. But it sure was interesting to look at! It was like seeing inside a programmer's head. Sometimes there were even comments in there. After that I couldn't get enough of checking out code for different websites. It was amazing to me that all this information was out there and I didn't even know it.

    So, try it: Right click, select page source, and see what you find. You probably won't recognize any of what you see, but that's okay. Pretty soon you start seeing little bits you understand here and there. Maybe some html, or a link, or a CSS class. All this stuff is what tells the browser how to display the web page. (More on that later.)

    The good news is that we don't have to program anything from scratch. Those tutorials you go through, where you learn to program 'Hello, World' in html are okay, but that's not what's going on here at programming school. One of my first web pages was set up with a template that Dan made, where I had to find some code and change it.

    Now off you go, into the worldwide web. Click some web pages. Check out the page source. Isn't it amazing that all the websites have their code out there for all the world to see? Wouldn't it be really easy to copy all that work and use it for your own page?
    Not quite, but that's for another lesson.

    Questions? Comments? Outbursts of delight--or dismay? :rolleyes::) Hop on board this thread with your thoughts on page source.
    Last edited: Jan 30, 2016
  2. Dan Allen

    Dan Allen Administrator Founder Not Banned Radio Button Problem - Leader

    This made me smile.

Share This Page