Book Image

Learning Raspberry Pi

By : Samarth Shah, Serge Schneider
Book Image

Learning Raspberry Pi

By: Samarth Shah, Serge Schneider

Overview of this book

Table of Contents (14 chapters)
Learning Raspberry Pi
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Getting started with HTML, JavaScript, and jQuery


In the previous chapter, you were introduced to Raspberry Pi and installed LAMP server on your Raspberry Pi. You also installed WordPress to host your personal website/blogs. So, how do you create your blog/website? This section will give a high-level overview of HTML, CSS, JavaScript, and jQuery.

Tip

If you are familiar with HTML, CSS, JavaScript, and jQuery, you might want to jump directly to the An introduction to Python section. You can get the source code from the book website.

Adding page content with HTML

HTML is used by the web browser to display content. To get started, replace /srv/www/index.php with the index.html file, which contains the following code:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Hello world</title>
</head>

<body>
  <h1>Hello World!</h1>
  <p>This is a <em>simple</em><abbr title=
  "HyperTextMarkup Language...