Tags and Attributes & Selectors and Properties

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

1/50

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.

51 Terms

1
New cards

<p></p>

Defines a paragraph in a webpage.

2
New cards

<h1></h1>

Formats text into headers (h1 largest, h6 smallest).

3
New cards

<em></em>

Emphasize, indicates also semantical emphasis on text in italics (so screen-readers can see the emphasis too). It is not the same as <i></i>, which only puts the text into italics visually.

4
New cards

<strong></strong>

Strong, makes text semantically extra emphasized (for screen-readers too). However, it is not the same as <b></b>, which makes text visually bold.

5
New cards

<button></button>

Defines a clickable button that can be used to submit forms or trigger actions in web applications.

6
New cards

<br>

Inserts a line break, creating a new line in the document.

7
New cards

<a></a>

Anchor: Defines a hyperlink that links to another webpage or resource.

Example: <a href=”URL”></a>

8
New cards

href=”“

Hypertext Reference: Attribute, that specifies the URL of the page the link goes to.

Example: <a href=”URL”></a>

9
New cards

URL

Uniform Resource Locator, a reference or address used to access resources on the internet.

10
New cards

Attribute

A specification that defines a property for an HTML element in the opening tag, providing additional information or functionality.

11
New cards

Hypertext

The underlying technology that allows documents to be connected via references (hyperlinks), enabling navigation between them on the internet.

12
New cards

Empty Tag

An HTML element that does not have any content or a closing tag, such as <br>
or <img>.

13
New cards

<img>

An HTML tag used to embed images on a webpage, specified with the attributes src=”” and alt=””.

14
New cards

src=””

Source, an attribute that references to a source for an <img>

Example: <img src=”URL.jpg”>

15
New cards

width=”” ; height=””

Attribute, die die Länge und Höhe eines Bildes <img> verändern nach der Standardeinheit von Pixel.

16
New cards

style=””

Erlaubt vereinzelt CSS-Style in HTML

17
New cards
<p>&lt;style&gt;&lt;/style&gt;</p>

<style></style>

Usable in the <head> tag to add CSS to a document without needing a CSS file:

18
New cards

<title></title>

Defines the title of a website in the browser and tabs. It is written in the <head>-tag and is readable for screen readers.

19
New cards

<head></head>

A container for metadata (data about data). The element is placed between the <html>-tag and the <body>-tag. Metadata is data about the document, that is not displayed in it. Metadata typically define the document title, character set, styles, scripts, and other meta information.

20
New cards

<body></body>

Defines the document's body. The element contains all the contents of an HTML document, such as headings, paragraphs, images, hyperlinks, tables, lists, etc. Note: There can only be one such element in an HTML document.

21
New cards

<!doctype html>

<!DOCTYPE html> is a declaration, not a tag, that tells the browser that the document is written in HTML5. The exclamation mark indicates that the text in the brackets is a type of document and not a tag or element.

22
New cards

<!>

An exclamation mark in the Standard Generalized Markup Language (SGML), of which, is used to denote markup declarations.

These declarations specify the structure and rules of the document, rather than being part of the document's content. For example, <!DOCTYPE> is used to specify the document type and the DTD to be used, and <! -- ... --> introduces a comment.

23
New cards

SGML

Standard Generalized Markup Language: a language for defining markup languages. HTML is one such "application" of SGML.

24
New cards

<link>

Empty tag, that Defines the relationship between one document and an external resource.

25
New cards

<script>

26
New cards

rel=””

Specifies the relationship between the current document and the linked document. It's used with the <link> and <a> tags to define how the two documents are related, influencing how browsers and search engines interpret the link

27
New cards

class=””

Allows you to group HTML elements together and apply CSS styles or JavaScript behavior to them collectively. It's a way to assign a name or label to a set of elements on a webpage.

28
New cards

<li></li>

List: Is used to represent an item in a list. It must be contained in a parent element: an ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>). In menus and unordered lists, list items are usually displayed using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter.

29
New cards

. (CSS)

Class selector: In CSS, this allows you to set a new rule for a class=”” attribute.

Example:

HTML - class=”gray”

CSS - .gray

30
New cards

id=””

A global attribute that provides a unique identifier for an HTML element within a document. This identifier allows for targeted selection and manipulation of the element through CSS and JavaScript

31
New cards

# (CSS)

ID selector: Match an element that has the specified ID (identification).

32
New cards

font-size: ;

Schriftgröße in Pixel.

33
New cards

px

Pixel

34
New cards

font-family: ;

Sets font family: Can hold several font names as a "fallback" system. If the browser does not support the first font, it tries the next font, font-families and generic-families (arial; serif, sans-serif, cursive, fantasy, monospace).

35
New cards

font-style: ;

Textstil (z. B. normal, italics, oblique, initial (back to default value), inherit (inherits from parent element))

36
New cards

font: ;

A shorthand property for:

font-style, font-variant, font-weight, font-size/line-height, font-family

Needs min. size and family values:

font: italic small-caps bold 12px/30px Georgia, serif;

37
New cards

line-height: ;

Specifies the height of a line. Negative values are not allowed. Decimals (1.5), percentage (150%) and “normal” are values.

38
New cards

font-variant: ;

Specifies whether or not a text should be displayed in a small-caps font.

font-variant: small-caps;

39
New cards

sets how thick or thin characters in text should be displayed.

40
New cards

font-weight: ;

Sets how thick or thin characters in text should be displayed.

Values: “lighter”, “bold” or number

41
New cards

color: ; & background-color: ;

Use with terms, HTML hex color codes or a RGB-value.

Example: “red”, #rrggbb, rgb(0,0,255)

42
New cards

border: ;

solid 10px red

43
New cards

border-radius: ;

10px abrunden (10px von der Ecke krümmen), kann Bilder rund machen (Hälfte der Höhe/Breite und nur bei Quadraten)

44
New cards

text-align: ;

45
New cards

padding: ;

46
New cards

padding-left/right/top/bottom: ;

47
New cards

margin: ;

48
New cards

margin-left/right/top/bottom: ;

49
New cards

display: ;

block

50
New cards

text-dexoration

51
New cards

target=””