National 5 Web Course
HTML is used to create the structure and content of a webpage.
You should know how to use:
- <html> — contains the whole webpage
- <head> — contains information about the webpage
- <title> — sets the title shown in the browser tab
- <body> — contains the content shown on the page
- headings — add titles and headings
- <p> — adds a paragraph
- <div> — groups content together
- <a> — creates a link
- <img> — displays an image
- <audio> — adds sound
- <video> — adds a video
- <ol> — creates a numbered list
- <ul> — creates a bulleted list
- <li> — creates a list item
You also need to understand:
- Internal links — links to another page in the same website
- External links — links to another website
- Relative addressing — gives the location of a file compared with the current webpage
- Absolute addressing — gives the full web address
CSS is used to control the appearance of a webpage.
You should know how to use:
- Selectors — choose which HTML elements to change
- Classes — apply the same style to several elements
- IDs — apply a style to one particular element
You should be able to change:
- Font family
- Font size
- Text colour
- Text alignment
- Background colour
CSS can be:
- Internal CSS — written inside the HTML page
- External CSS — stored in a separate CSS file
JavaScript is used to make webpages interactive.
At National 5, you need to understand two mouse events:
- onmouseover — something happens when the mouse moves over an item
- onmouseout — something happens when the mouse moves away from an item