HTML

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/71

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.

72 Terms

1
New cards

HTML

HyperText Markup Language is the standard language for creating web pages; it's a markup language used to define the structure of content.

2
New cards

HTML 5

The latest and most widely used version of HTML, which introduced new semantic elements (like

) and multimedia support (

3
New cards

Declaration that defines this document to be an HTML5 document. This is not an HTML tag.

4
New cards

The root element of the page. All other elements are nested inside this.

5
New cards

A container for metadata (data about the HTML document), such as the page title, character set, and styles. This content is not displayed on the page.

6
New cards

Contains all the visible contents of the web page, such as text, images, and links.

7
New cards

HTML Element

Defined by a start tag, some content, and an end tag.

8
New cards

Start Tag

Also called the opening tag (e.g.,

).

9
New cards

End Tag

Also called the closing tag, which has a forward slash (/) before the tag name (e.g.,

).

10
New cards

Empty / Self-Closing Elements

Elements that do not have content and do not require a closing tag (e.g.,
, ).

11
New cards

Attribute

Provides additional information about an HTML element. Attributes are always specified in the start tag as name="value" pairs.

12
New cards

Location

Attributes are always specified in the start tag.

13
New cards

Format

They are written as name="value" pairs.

14
New cards

Common Attributes

href, src, width, height, alt, class, id, style.

15
New cards

to

Define headings of different levels.

is the most important, and they should be used in hierarchical order to describe document structure.

16
New cards

Defines a paragraph of text. Browsers automatically add space (margin) before and after it.

17
New cards


Inserts a single line break.

18
New cards

style

A global attribute used to specify CSS styles for an element in the format: property: value.

19
New cards

Defines bold text (visual importance).

20
New cards

Defines important text (semantic importance).

21
New cards

Defines italic text (visual difference).

22
New cards

Defines emphasized text (semantic emphasis).

23
New cards

Defines marked or highlighted text.

24
New cards

Defines subscript text

25
New cards

Defines superscript text.

26
New cards

Color Names

Use a predefined name (e.g., red, blue, tomato).

27
New cards

HEX Codes

A 6-digit hexadecimal number prefixed with # (e.g., #FF0000 for red).

28
New cards

RGB Values

A way to specify colors by defining the intensity of Red, Green, and Blue (e.g., rgb(255, 0, 0)).

29
New cards

Inline CSS

Applies CSS to a single element using the style attribute.

30
New cards

Internal CSS

Defines CSS rules within the

31
New cards

External CSS

Links the HTML document to an external .css file using the element. This is the preferred method.

32
New cards

Defines a hyperlink.

33
New cards

href

Hypertext Reference: An attribute that specifies the URL (destination) the link goes to.

34
New cards

target="_blank"

An attribute that instructs the browser to open the linked document in a new window or tab.

35
New cards

Internal Link

Link to another page within the same website (using a relative path).

36
New cards

Link to an ID

Link to a specific element on the same page using its id.

37
New cards

The empty element used to embed images.

38
New cards

src

Source: An attribute that specifies the path (URL) to the image file.

39
New cards

alt

Alternative text: A required attribute that provides a description of the image for accessibility and SEO.

40
New cards

Defines the entire table. Used for displaying tabular data, not page layout.

41
New cards

Table Row: Defines a row in the table.

42
New cards

Table Header: Defines a header cell (usually bold and centered).

43
New cards

Table Data: Defines a standard data cell.

44
New cards

    Unordered List: Items are marked with bullets.

    45
    New cards

      Ordered List: Items are marked with numbers or letters.

      46
      New cards

    1. List Item: Defines an item within both

        or
          .

      47
      New cards

      A container for all input elements. It defines where the data should be sent (action attribute) and how (method attribute).

      48
      New cards

      The most used form element; its type attribute defines the input type (e.g., text, password, submit).

      49
      New cards

      Defines a label for an element, which is essential for accessibility.

      50
      New cards

      Defines a clickable button, often used to submit a form.

      51
      New cards

      Division: A generic, block-level container with no semantic meaning. It is used to group elements for styling or scripting.

      52
      New cards

      class

      A global attribute used to specify one or more class names. Classes are reusable and commonly used to apply CSS styles.

      53
      New cards

      id

      A global attribute used to specify a unique identifier for an element. It must be unique within the entire page.

      54
      New cards

      Defines the title shown on the browser tab. Essential for SEO.

      55
      New cards

      Used to define metadata like the character set (charset), viewport settings, and description for search engines.

      56
      New cards

      Used to link to external resources, most commonly CSS files.

      57
      New cards

      Used to define client-side JavaScript code or link to an external script file.

      58
      New cards

      defines the introductory content, often containing the logo, site title, and navigation.

      59
      New cards

      set of navigation links.

      60
      New cards

      contains the dominant content of the document. Only one

      tag is allowed per page.

      61
      New cards

      <section>

      for a thematic grouping of content, which usually includes a heading.

      62
      New cards

      for independent, self-contained content, like a blog post or news story.

      63
      New cards

      for content tangentially related to the content around it (e.g., a sidebar).

      64
      New cards

      contains authorship, copyright, or contact information.

      65
      New cards

      RWD

      Responsive Web Design: The practice of making web pages look good on all devices (desktops, tablets, and phones).

      66
      New cards

      Viewport

      The user's visible area of a web page.

      67
      New cards

      Viewport Meta Tag

      This is the crucial first step for RWD. It sets the width of the viewport to the device's width and sets the initial zoom level.

      68
      New cards

      width=device-width

      A crucial viewport meta tag setting that sets the page width to follow the screen width of the device.

      69
      New cards

      initial-scale=1.0

      Sets the initial zoom level when the page is first loaded by the browser.

      70
      New cards

      Semantics

      Using HTML tags that clearly describe the meaning of the content they contain (e.g., using

      71
      New cards

      Semantic Tags

      Tags like

      ,

      72
      New cards

      Non-Semantic Tags

      and that are containers with no inherent meaning.