Web Systems & Technologies | Midterm Reviewer

0.0(0)
studied byStudied by 11 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/244

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

245 Terms

1
New cards

HTML

  • stands for HyperText Markup Language

  • It is the standard language used for creating web pages.

  • It is composed of many elements that describe how the website should appear in the browser

  • It marks up the content of a site

  • Its documents are all plain text

2
New cards

Structure

It is added to elements with tags

3
New cards

Tags

It must be nested properly

4
New cards

Attributes

Can add function or meaning to elements.

5
New cards

Paragraph

  • A unit of text presenting a single main idea or related group of ideas.

  • It helps organize and structure written content

  • Tag: <p>

6
New cards

Headlines/Header

  • Short phrases or sentences that introduce or summarize content sections, guiding readers' attention.

  • They're typically larger or bolder than regular text.

  • Tags: <h1>, <h2>, <h3>, <h4>, <h5>, <h6>

7
New cards

Formatting Styles

Used to emphasize or highlight text.

8
New cards

Italics

  • Slant text for emphasis or to denote titles

  • Tags: <i>, <em>

9
New cards

<i>

For visual-only italics

10
New cards

<em>

Used to emphasize something

11
New cards

Bold

  • Makes the text darker or thicker, drawing attention to important information.

  • Tags: <b>, <strong>

12
New cards

<b>

Used for visual-only bolds

13
New cards

<strong>

Used for importance, seriousness, urgency

14
New cards

Lists

Are used to organize and display information in a structured format

15
New cards
  1. Unordered List

  2. Ordered List

  3. Definition List

Three (3) Types of Lists:

16
New cards

Unordered Lists

  • Are used when the order of items is not significant.

  • Each item in this list is preceded by a bullet point or another unordered marker.

  • To create this list, you use the <ul> tag; and

  • Each list item is defined using the <li> tag.

  • Example:

    • Item

    • Item

    • Item

17
New cards

Ordered List

  • Are used when the sequence or order of items matter.

  • Each item in this list is preceded by a number or another ordered marker.

  • To create this list, you use the <ol> tag; and

  • Each list item is defined using the <li> (list item) tag.

  • Example:

    1. Item

    2. Item

    3. Item

18
New cards

Definition List

  • Are used to display terms and their corresponding definitions.

  • Each term in this list is defined using the <dt> (definition term) tag; and

  • Its corresponding definition is defined using the <dd> (definition description) tag.

19
New cards

Quotes

Can be represented using the <blockquote> and <q> tags

20
New cards

Blockquote

  • Is used to indicate that a block of text is a longer quotation from another source.

  • It typically renders with an indentation.

  • Block context

21
New cards

Inline Quote

  • <q> tags

  • Is used for short inline quotations within a paragraph.

  • Browsers typically render content inside <q> tags with quotation marks.

  • Inline phrases

22
New cards

Code

  • <code> tag

  • Is used to define a piece of computer code.

  • It's typically used to display code snippets within a paragraph or block of text without interpreting the code as HTML

  • To prevent creating a tag and showing only that it is a code sample or a simple text, you can use &lt; and &gt; to get < and > sign.

23
New cards

<br>

  • Is used to create a line break within a paragraph.

  • After the <br> tag, the next line starts on a new line.

24
New cards

<pre>

  • is used to enclose a block of preformatted text.

  • Preformatted text within the <pre> tags preserves spaces, line breaks, and formatting displaying exactly as it’s written in the HTML code.

25
New cards

Subscripts

  • Appears smaller and lower than the surrounding text

  • Tag: <sub>

26
New cards

Superscript

  • Appears smaller and higher than the surrounding text

  • Tag: <sup>

27
New cards

Small

  • Used to convey that has very little prominence

  • Tag: <small>

28
New cards

Date and Time

  • Used to represent a specific time or date.

  • It's especially useful for indicating dates and times within content, such as publication dates, event times, or durations.

  • Tag: <time>

29
New cards

datetime

  • An attribute that is used to translate the time into a machine-readable format so that browsers can offer to add date reminders through the user's calendar, and search engines can produce smarter search results.

  • Tag: <time datetime="2025-04-02">

30
New cards

Attributes

  • Provide additional information about elements.

  • Syntax: Placed within the element’s opening tag

31
New cards
  1. Global Attribute

  2. Element-specific

Two (2) Types of Attribute:

32
New cards

Global Attribute

  • Attributes that can be applied to any HTML element.

  • It provides functionalities such as CSS styling, element identification, and custom data storage.

33
New cards
  • class

  • id

  • contenteditable = true

  • lang

  • dir

Some of the most useful global attributes:

34
New cards

Element-specific

  • Attributes that are specific to certain HTML elements and cannot be used with all elements.

  • Example:

    • src

    • href

    • alt

35
New cards

Hyperlink

  • Allows users to navigate between web pages.

  • They connect different parts of a website

36
New cards

<a>

  • The anchor tag

  • Used to create hyperlink

  • Syntax:

<a href = "url">Link Text</a>

37
New cards
  1. Absolute URLs

  2. Relative URLs

Two (2) Types of URLs:

38
New cards

Absolute URLs

  • Full web addresses

  • Example:

    <a href="https://www.youtube.com/">Link Text</a>

39
New cards

Relative URLs

  • Links within the same website

  • Example:

    <a href="about.html">About Us</a>

40
New cards

Target Attribute

  • Specifies where the linked page opens.

  • Common values:

    • _self : opens in the same window/tab

    • _blank ": opens in a new window/tab

41
New cards

mailto:

  • For Email Links

  • Example:

    <a href="mailto:juandelacruz@gmail.com" target="_self">Email Me</a>

42
New cards

Image

  • To put an image on a webpage, we use the image element.

  • Are not technically inserted into a webpage; images are linked to web pages.

  • Tag: <img>

43
New cards
  • src

  • alt

  • width

  • height

Some attributes used in Image <img>:

44
New cards

src

  • Specifies the path of the image (for image)

  • Specifies the url of the audio/video file (for audio & video)

  • Assigned a valid url pointing to the relevant webvtt subtitle file in each case (for subtitles)

45
New cards

alt

Specifies an alternate text for the image

46
New cards

width

  • Defines the width of the image/video in pixels.

  • Describe the intrinsic aspect ratio of the image.

47
New cards

height

  • Defines the height of the image/video in pixels.

  • Describe the intrinsic aspect ratio of the image.

48
New cards
  1. GIF

  2. SVG

  3. JPG or JPEG

  4. PNG

Four (4) Main Image Formats:

49
New cards

GIF

  • Stands for Graphic Interchange Format

  • Does well compressing large areas of single-color

  • Limited color space of 256 colors.

  • Can do transparency, with jagged edges.

  • Can have multiple frames and make a little movie.

  • File Extension: .gif

50
New cards

SVG

  • Stands for Scalable Vector Graphics

  • Logos, icons, illustrations and etc.

  • Vector File

  • File Extension: .svg

51
New cards

JPG

  • Stands for Joint Photographic Export Group

  • You can pick a balance between quality and file size.

  • File Extension: .jpg or .jpeg

52
New cards

PNG

  • Stands for Portable Network Graphics

  • Images that need transparency

  • File Extension: .png

53
New cards

srcset

The descriptors in the ______ attribute specify the available widths of different image versions in pixels, aiding in responsive image loading based on device capabilities.

54
New cards

Viewport Width

User’s visible area of the screen

55
New cards

Physical Width of the Screen

Refers to the actual width of the device’s screen

56
New cards

sizes

An attribute that list which image to use at which media query

57
New cards

<picture>

  • Important for flexibility in specifying image resources

  • Contains two tags:

    1. one or more <source> tags

    2. one <img> tag; required as the last child

  • Indicates files or browsers to choose from

58
New cards

Figures and Figcaption

For the search engines and AI to know that two pieces of content are related to each other we will be using figures.

59
New cards

<figure>

For anything that appears as a figure like images and tables, illustrating something.

60
New cards

<figcaption>

For demonstration of a concept that needs a caption

61
New cards

<audio>

  • Used to place audio

  • Syntax:

<audio></audio>

62
New cards
  • src

  • controls

  • autoplay

  • muted

  • loop

Attributes of <audio>:

63
New cards

controls

Specifies that audio/video controls should be displayed, such as a play/pause button, etc.

64
New cards

autoplay

Specifies that the audio/video will start playing as soon as it is ready

65
New cards

muted

Specifies that the audio/video output should be muted

66
New cards

loop

Specifies that the audio/video will start over again, every time it is finished

67
New cards

poster

Specifies an image to be shown while the video is downloading, or until the user hits the play button.

68
New cards

<video>

Tag used to play video files

69
New cards
  • src

  • controls

  • autoplay

  • muted

  • loop

  • poster

  • width/height

Attributes of <video>:

70
New cards

Captions

  • Assume the viewer can’t hear anything; and

  • Include non-speech elements, like speaker identifications and sound effects

  • Are considered an accessibility aide

71
New cards

Subtitles

  • Assume that the viewer can hear everything but can’t understand language, and translate spoken dialogue.

  • Are more associated with foreign language translation.

72
New cards

<track>

  • Used to create subtitles for an audio or video

  • This tag is used to specify subtitles, caption files or other files containing text, that should be visible when the media is playing.

  • Tracks are formatted in WebVTT format (.vtt files) or in Subtitles format (.sub files)

73
New cards
  • kind

  • label

  • src

  • srclang

  • default

<track> attributes:

74
New cards

kind

Indicates the type of content the files contain

75
New cards

label

Indicates which language that subtitle is set for

76
New cards

srclang

Indicates what language each subtitle files contents are in

77
New cards

default

Indicates the default subtitle file definition to use

78
New cards

After the timecode

Where to put layout attributes?

79
New cards

line:0%

Positions the text at the top of the screen

80
New cards

vertical:lr

Makes the text display vertically from left to right.

81
New cards

alignment: start, center, end

Used to control the horizontal alignment of the text

82
New cards

align:start

Aligns the text to the start of the line, which is the left side in left-to-right (LTR) languages.

83
New cards

align:end

Aligns the text to the end of the line, which is the right side in left-to-right (LTR) languages.

84
New cards

ARIA Roles

  • Stands for Accessible Rich Internet Applications

  • Attributes used in HTML to enhance the accessibility of web content, especially for users who rely on assistive technologies like screen readers.

  • Provide additional information about the purpose and behavior of elements on a webpage.

85
New cards

aria-label

  • Used in HTML to provide an accessible name for an element.

  • This label is read by assistive technologies, such as screen readers, to help users understand the purpose or function of the element.

  • Example Syntax:

<button aria-label="Close">X</button>
<button aria-label="Logout">1</button>
<button aria-label="Login">2</button>
<button aria-label="Next">3</button>

86
New cards

aria-level

  • Defines the hierarchical level of an element within a structure.

  • Example Syntax:

    <h1 aria-level="1">Main Heading</h1>
    <h2 aria-level="2">Subheading</h2>

87
New cards

aria-pressed

  • Indicates the current state of a toggle button

  • Either true or false

  • Example Syntax:

    <button aria-pressed="true">Button1</button>

88
New cards

aria-hidden

  • Indicates whether the element is visible or hidden

  • Either true or false

89
New cards

aria-checked

  • Indicates the current state of a checkbox or radio button

  • Either true or false

  • Example Syntax:

    <input type="checkbox" aria-checked="true"/>

90
New cards

aria-valuemin

  • Defines the minimum value of an element

  • Example Syntax:

    <input type="checkbox" aria-valuemin="0"/>

91
New cards

aria-valuemax

  • Defines the maximum value of an element

  • Example Syntax:

    <input type="checkbox" aria-valuemax="0"/>

92
New cards

aria-valuenow

  • Defines the current value of an element

  • Screen reader will just read the define value even if you choose from the slider

  • Example Syntax:

    <input type="range" aria-valuenow="50"/>

93
New cards

aria-required

  • Indicates that user input is required on the element

  • Either true or false

  • Example Syntax:

    <input type="text" aria-required="true" placeholder="Name" />

94
New cards

aria-readonly

  • Indicates that the element is read-only

  • Either true or false

  • Example Syntax:

    <p aria-readonly="true">Welcome Everyone!</p>

95
New cards

aria-disabled

  • Indicates that the element is disabled and not interactive

  • Either true or false

  • Example Syntax:

    <button aria-disabled="true">Next</button>

96
New cards

div

  • Block-level element

  • Defines a section or a division in an HTML document

  • It is used as a container for HTML elements to give style using CSS and modify using JavaScript.

  • One of the fundamental building blocks in HTML used to group

    and style content.

  • Can be used anytime

  • Generic elements that have no semantic meaning on their own.

  • They only become meaningful using CSS and JavaScript.

97
New cards

span

  • Inline element

  • Does not inherently force new lines or consume any more space than necessary beyond what its contained content requires.

  • Used to group a small chunk of HTML elements or text for styling purposes, without disrupting the surrounding content's layout

  • One of the fundamental building blocks in HTML used to group

    and style content.

  • Can be used anytime

  • Generic elements that have no semantic meaning on their own.

  • They only become meaningful using CSS and JavaScript.

98
New cards
  • class

  • id

  • lang

  • aria roles

  • Styles — for inline CSS

Global Attributes of div and span:

99
New cards

<form>

  • Used to create a form for user input.

  • It has an opening and closing tag.

  • Are essential for collecting data from users, such as:

    • Login credentials,

    • Search queries; or

    • Feedback.

  • It is a container for different types of input elements, such as:

    • Text fields,

    • Checkboxes,

    • Radio buttons,

    • Submit buttons, etc.

  • Syntax:

<body>
	<form action="" method="">
		<!--
			form elements
		-->
	</form>
</body>

100
New cards

  • action

  • method

Attributes of <form>: