Web Development 2.1 - 2.16

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/45

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

46 Terms

1
New cards

HTML (HyperText Markup Language)

defines over 130 elements.

2
New cards

HyperText

is a textual language for creating webpages.

3
New cards

Markup

are instructions to a browser about the rest of the document.

4
New cards

Language

A valid HTML document must follow the HTML language rules.

5
New cards
<p>Element</p>

Element

is a single HTML structure.

Elements are represented with HTML tags.

  • Opening tag: <p>

  • Content: Hello, world!

  • Closing tag: </p>

6
New cards
<p>Tag</p>

Tag

is a markup instruction identified by <, the tag name, and >.

  • An opening tag indicates the element's starting point in the document.

  • A closing tag has a forward slash (/) before the tag name and indicates the element's ending point in the document.

7
New cards
<p><span style="font-size: medium;"><strong><em>Content</em></strong></span></p>

Content

The opening and closing tags surround the element's content, which can be text or other elements.

8
New cards
<p><span style="font-size: medium;">element <strong><em>ATTRIBUTE</em></strong></span></p>

element ATTRIBUTE

provides additional information about the element and is included only in the opening tag.

An attribute has a name and a value, specified using the form: name="value".

9
New cards
<p>HTML Document</p>

HTML Document

Living Standard, produced by WHATWG, defines the minimal parts of an HTML document.

<p><span style="font-size: medium;">Living Standard, produced by WHATWG, defines the minimal parts of an HTML document.</span></p>
10
New cards

Deprecated feature

is part of a language that is officially discouraged because newer or better features exist, or because the deprecated feature is no longer considered safe.

Ex: The <center> element is an officially deprecated element that should no longer be used.

11
New cards

HTML validator

checks that an HTML document conforms to the standard. Good practice is to use tools like the W3C Markup Validator to check document conformance.

12
New cards

2.3 Basic HTML elements

<p> element creates a paragraph in an HTML document.

A paragraph is enclosed in HTML by the <p> opening and </p> closing tags.

Browsers visually separate paragraphs from other text with spacing above and below.

13
New cards

Paragraph

is enclosed in HTML by the <p> opening and </p> closing tags. Browsers visually separate paragraphs from other text with spacing above and below.

14
New cards

whitespace

an unprinted character such as the spaces between words and lines of text.

Whitespace characters include spaces, tabs, and newlines.

15
New cards

<br> element creates a line break

creates a line break in a paragraph, such that the content after the line break appears on a new line.

is a void element, so only the opening tag is needed.

16
New cards

Section

  • is a collection of related content created with a <section> element.

  • used to group related content together within a document. It helps organize your page into meaningful blocks

17
New cards

Heading

provides a title for each section. Headings are bold by default and are visually separated from the other text by extra spacing.

Text Heading elements exist for six levels of sections: <h1>, <h2>, <h3>, <h4>, <h5>, and <h6>.

18
New cards
<p>Text formatting</p>

Text formatting

elements cause the enclosed text to render in a different font in the browser:

<em> element indicates emphasized

<strong> element indicates text that has strong importance

<cite> element denotes a title

<mark> element denotes important content that should be highlighted

<b> element indicates text that needs attention, text in bold.

<i> element indicates text in an alternative voice, italics

 <u> element denotes text that should appear differently

Ex: Misspelled is often misspelled as mispelled.

<p><span style="font-size: medium;">elements cause the enclosed text to render in a different font in the browser:</span></p><p><span style="font-size: medium;"><strong><em>&lt;em&gt;</em></strong> element indicates <strong><em>emphasized</em></strong></span></p><p><span style="font-size: medium;"><strong><em>&lt;strong&gt;</em></strong> element indicates text that has <strong><em>strong importance</em></strong></span></p><p><span style="font-size: medium;"><strong><em>&lt;cite&gt;</em></strong> element denotes a title</span></p><p><span style="font-size: medium;"><strong><em>&lt;mark&gt;</em></strong> element denotes important content that should be highlighted</span></p><p><span style="font-size: medium;"><strong><em>&lt;b&gt;</em></strong> element indicates text that needs attention, text in <strong><em>bold</em></strong>.</span></p><p><span style="font-size: medium;"><strong><em>&lt;i&gt;</em></strong> element indicates text in an alternative voice, italics</span></p><p><span style="font-size: medium;">&nbsp;<strong>&lt;u&gt;</strong> element denotes text that should appear differently</span></p><p><span style="font-size: medium;">Ex: Misspelled is often misspelled as <u>mispelled</u>.</span></p>
19
New cards

Comment

is a portion of the document that is not displayed by the browser.

A comment begins with the <!-- character sequence and ends with the --> character sequence.

Everything between <!-- and --> is ignored by the browser.

<!-- This is an HTML comment -->

20
New cards
<p>&lt;img&gt; element</p>

<img> element

is a void element that displays an image in a webpage.

The <img> element has two required attributes:

  • The src attribute specifies the URL of the image file to display.

  • The alt attribute provides a text description to use as an alternative to displaying the image.

Ex: <img src="https://example.com/family.jpg" alt="Smith family reunion"> displays the image family.jpg, but the text "Smith family reunion" displays if the image cannot be displayed.

21
New cards

width attribute and height attribute

are optional <img> attributes that tell the browser how many pixels the image should occupy.

Ex: <img src="logo.png" alt="Logo" width="200" height="100"> makes the logo.png image display in a rectangle that is 200 × 100 pixels.

22
New cards
<p>Image formats</p>

Image formats

support three popular image formats:

JPEG (Joint Photographic Experts Group)

PNG (Portable Network Graphics)

GIF (Graphics Interchange Format)

23
New cards

JPEG (Joint Photographic Experts Group)

image format is commonly used for digital photographs.

24
New cards

PNG (Portable Network Graphics)

image format is commonly used for line art, screenshots, or images requiring transparency.

25
New cards

GIF (Graphics Interchange Format)

image format is commonly used for simple animated images.

26
New cards

lossy compression

meaning that some of the original picture information is lost when compressed.

A photograph is best saved as a JPEG image because humans cannot easily perceive the quality loss in a photograph.

27
New cards

True color

which is approximately 16 million different colors.

28
New cards

Favicon

is a small icon that identifies a website and typically displays in a browser tab. A representation of a website.

29
New cards

anchor element <a>

defines a hyperlink in a webpage.

30
New cards

href attribute

specifies the hyperlink's URL. Ex:

<a href="https://wikipedia.org/">Wikipedia</a> displays the hyperlink Wikipedia and causes the browser to request the URL https://wikipedia.org/ when the hyperlink is clicked.

31
New cards

Commom URL schemes

  • file

  • ftp

  • http

  • https

  • mailto

32
New cards

Fragment

URL can point to a section of a document by adding hashtag.

33
New cards

ID attribute

<div id="about">This is the About section</div>

is like a label on a part of the page.

The href="#label" is like a button that takes you to that label.

34
New cards

graphical hyperlink

image link uses an image inside a hyperlink instead of text.

35
New cards

Target attribute

indicates how the browser should display the link when clicked.

36
New cards

Section 5

37
New cards
<p><span style="font-size: medium;"><strong><em>Unordered list / List item / Ordered list</em></strong></span></p>

Unordered list / List item / Ordered list

  • is a collection of items, usually indented and shown using bullets.

  • created with the <ul> element.

  • is created with the <li> element.

  • is a sequenced collection of items, usually indented and shown using numbers or letters,

  • created with the <ol> element.

38
New cards

Section 2.8 Tables

39
New cards

Table / Cell

is an HTML structure created with the <table> element that organizes data into rows and columns.

A Cell is a location in the table at a specific row and column.

<tr> element creates a table row, which contains all the row's cells.

<th> element creates a table cell containing table header information about the data.

<td> element creates a table cell containing table data.

Table caption defines a short descriptive text for a table and is created with the <caption> element.

40
New cards
<p>Header, body, and footer</p>

Header, body, and footer

  • The <thead> element specifies the table header.

  • The <tbody> element specifies the table body.

  • The <tfoot> element specifies the table footer.

The <thead>, <tbody>, and <tfoot> elements do not affect the layout of the table.

41
New cards
<p><span style="font-size: medium;"><strong><em>Entity</em></strong></span></p>

Entity

is a mechanism for writing special characters or symbols in HTML, such as mathematical symbols, characters in most languages, and many other symbols.

42
New cards

Section 2.10 Example: Band webpage

43
New cards

Wireframe

is a blueprint, showing where the future content will be arranged.

44
New cards
45
New cards
46
New cards