The Two Sections within a Web Page
The Head
At the very least, the head section should contain: Page title, page description, cascading style sheet links, and a canonical link.
The Body
Within the body at the top, there should be a header section, which should contain the navigation menu, logo, phone numbers, etc.
Beneath the header section is the area for the main text content, photos, videos, and anything else needed.
The footer section should be positioned below the main content and would typically contain links not related to products or services, such as a sitemap, terms and conditions, and policies.
JavaScript should be positioned at the end of the body.
The Three Main Components Used
- HTML: Hyper Text Markup Language
- CSS: Cascading Style Sheet
- JavaScript: A Scripting Language
Knowledge of these is necessary for web developers to do their work properly.
The English language is used throughout with American spelling.
HTML
This is used for making the structure of a web page.
Example
<!DOCTYPE html> <html lang="en"> <head> <title>Page Title</title> </head> <body> <h1>First Heading</h1> <p>First paragraph.</p> </body> </html>
CSS
This is used for formatting a web page.
Example
body { background: white; } h1 { color: blue; } p { color: red; }
JavaScript
This has many uses; one would be to power dynamic features on a web page.
Example
function myFunction(x) { x.classList.toggle("change"); }
Posted by Mary
Blog Post No. 1 - 11/11/2024