100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary - Unit 2 (WIT12)

Rating
-
Sold
-
Pages
105
Uploaded on
30-09-2024
Written in
2023/2024

course notes and links to resources for AS IT unit 2, html, css, javascript, web development












Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
September 30, 2024
Number of pages
105
Written in
2023/2024
Type
Summary

Content preview

UNIT TWO
https://drive.google.com/file/d/1B4QfGJ6LkWcE2h22r2zaD08c1fiYpOe9/view

Past papers | Past exam papers | Pearson qualifications



BY ZAINAB
2024

,Topic 7: Understanding the functionality of
HTML
7.1 Document structure
7.1.1 Understand how HTML is used to
structure web pages
a. doctypes
The doctype declaration is not an HTML tag; it is an instruction to the web browser about what
version of the markup language the page is written in. It should be the first thing in a HTML
document.

In HTML 5, the declaration is simple: <!DOCTYPE html>. In older documents (HTML 4 or
XHTML), the declaration is more complicated because the declaration must refer to a DTD
(Document Type Definition).

The <!DOCTYPE> declaration is not case sensitive.

b. elements
An element is an individual component of an HTML document. Elements provide semantic structure
and meaning to objects within a webpage.

Elements can contain attributes that define additional properties of a component.

An HTML element is defined by a start tag, some content, and an end tag. Empty elements have no
content (like the <br> element). Empty elements do not have an end tag.

HTML elements can also be nested i.e. elements can contain other elements. All HTML documents
consist of nested HTML elements. Property values of a parent element are inherited by the child
element.

c. tags
HTML tags are like keywords that define how the web browser will format and display the content.

d. attributes
HTML attributes are a piece of markup language used to adjust the behaviour or display of an HTML
element.

,7.1.2 Understand how to declare the
language of a html document
The lang attribute specifies the language of the element's content.

Syntax: <element lang="language_code">

e.g. <html lang=”en”>

- It allows search engines to return language specific results.
- It helps screen readers use the most appropriate pronunciation or accent.

, 7.1.3 Understand how the head element is
used to supply information about the
document
a. metadata
Metadata is information about data. It supplies information about the document.

The <meta> tag defines metadata about an HTML document.

<meta> tags always go inside the <head> element, and are typically used to specify character set,
page description, keywords, author of the document, and viewport settings. The metadata will not be
displayed on the page, but is used by browsers (how to display content or reload page), by search
engines (keywords), and other web services.

Elements belonging to the metadata content category modify the presentation or the behaviour of the
rest of the document, set up links to other documents, or convey other out-of-band information.

Elements belonging to this category are <base>, <command>, <link>, <meta>,
<noscript>, <script>, <style> and <title>.

examples of metadata
Define keywords for search engines:

<meta name="keywords" content="HTML, CSS, JavaScript">

Define a description of your web page:

<meta name="description" content="Free Web tutorials for HTML and
CSS">

Define the character set used:

<meta charset="UTF-8">

Define the author of a page:

<meta name="author" content="John Doe">

Refresh document every 30 seconds:

<meta http-equiv="refresh" content="30">

Setting the viewport to make your website look good on all devices:

<meta name="viewport" content="width=device-width,
initial-scale=1.0">
£6.44
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
zainabatif

Also available in package deal

Thumbnail
Package deal
AS INFORMATION TECHNOLOGY NOTES
-
1 2 2024
£ 12.48 More info

Get to know the seller

Seller avatar
zainabatif University of the West of England Bristol
View profile
Follow You need to be logged in order to follow users or courses
Sold
1
Member since
1 year
Number of followers
0
Documents
2
Last sold
1 year ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these revision notes.

Didn't get what you expected? Choose another document

No problem! You can straightaway pick a different document that better suits what you're after.

Pay as you like, start learning straight away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and smashed it. It really can be that simple.”

Alisha Student

Frequently asked questions