HTML

0.0(0)
studied byStudied by 0 people
GameKnowt Play
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

What is HTML?

A markup language used to structure and display web pages.

2
New cards

What are HTML tags?

Keywords in angle brackets (e.g., <p>) that define elements.

3
New cards

What is the basic structure of an HTML document?

It starts with <!DOCTYPE html>, then <html>, <head>, and <body>.

4
New cards

What is the difference between a tag and an element?

Tag = syntax (<p>),

Element = tag + content (<p>text</p>).

5
New cards

What are attributes in HTML?

Extra info for elements, written as name=“value” (e.g., href in <a>).

6
New cards

How do you create a hyperlink?

Using <a href="url">Text</a>.

7
New cards

What is the purpose of <img>?

To display images with src and alt attributes.

8
New cards

What is the difference between block-level and inline elements?

Block = new line (<div>),

Inline = within text (<span>).

9
New cards

How do you create a list?

Ordered = <ol>,

Unordered = <ul>.

10
New cards

What is the <form> tag used for?

To collect user input.

11
New cards

What is the <br> tag used for?

Line break.

12
New cards

How do you open a hyperlink in a new tab?

<a href="url" target="_blank">.

13
New cards

What is the <title> tag used for?

Sets the page title shown in the browser tab.

14
New cards

How do you add a comment in HTML?

<!-- Comment -->.

15
New cards

What is the <meta> tag used for?

Metadata like charset, description, author.

16
New cards

How do you create a table?

Using <table>, <tr>, <td>, <th>.

17
New cards

Difference between <head> and <body>?

<head> = info/settings, <body> = page content.

18
New cards

How do you specify character encoding?

<meta charset="UTF-8">.

19
New cards

What is <strong> used for?

Strong importance (usually bold).

20
New cards

How do you create an email link?

21
New cards

What is <em> used for?

Emphasized text (usually italic).

22
New cards

How do you create a checkbox?

<input type="checkbox">.

23
New cards

What is the <label> tag used for?

Defines labels for inputs (improves accessibility).

24
New cards

How do you create a dropdown?

<select><option>Item</option></select>.

25
New cards

What is <blockquote> used for?

To display quoted text.

26
New cards

What are semantic elements?

Elements with meaning (<header>, <nav>, <article>).

27
New cards

How do you embed a video?

Using <video controls><source src="file.mp4"></video>.

28
New cards

What is the alt attribute?

Alternative text for images, improves accessibility.

29
New cards

What is <fieldset> used for?

To group form elements with a <legend> title.

30
New cards

What is <noscript> used for?

Fallback content if JavaScript is disabled.

31
New cards

How do you include JavaScript in HTML?

<script src="file.js"></script>.

32
New cards

Difference between <b> and <strong>?

Both bold, but <strong> adds meaning.

33
New cards

How do you create multi-line text input?

Using <textarea>.

34
New cards

What is the action attribute in forms?

Specifies where form data is sent.

35
New cards

How do you create a numbered list?

<ol><li>Item</li></ol>.

36
New cards

What is <base> used for?

Sets a base URL for relative links.

37
New cards

How do you create a definition list?

Using <dl>, <dt>, <dd>.

38
New cards

What is enctype in forms?

Defines encoding for submitted data (multipart/form-data for files).

39
New cards

How do you create a hidden field?

<input type="hidden" value="data">.

40
New cards

What is <address> used for?

Contact information.

41
New cards

What is <canvas> used for?

To draw graphics with JavaScript.

42
New cards

Difference between <b>/<i> and <strong>/<em>?

First = styling only,

Second = styling + meaning.

43
New cards

How do you include SVG in HTML?

Using <svg> directly inside HTML.

44
New cards

What are data- attributes?*

Custom attributes to store extra data (data-id="123").

45
New cards

What is <template> used for?

Reusable HTML fragments that aren’t rendered until used by JavaScript.

46
New cards

What is the rel attribute in <link>?

Defines the relationship (e.g., rel="stylesheet").

47
New cards

How do you provide multiple language versions of a page?

Using <link rel="alternate" hreflang="fr" href="page-fr.html">.

48
New cards

What is <output> used for?

Displays calculation results in forms.

49
New cards

How do you make an element editable?

contenteditable="true".

50
New cards

What is <datalist> used for?

Provides autocomplete options for an <input>.

51
New cards