HTML BASICS

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

1/32

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.

33 Terms

1
New cards

HYPERTEXT MARKUP LANGUAGE AND EXTENSIBLE HYPERTEXT MARKUP LANGUAGE

are the foundation of all web development.

2
New cards

HTML

is used as the graphical user interface in client-side programs written in JavaScript.

3
New cards

.html

All are essentially plain text files, with the .html extension.

4
New cards

code editor

HTML files should not be created with a word processor, but in some type of editor that creates plain text.

5
New cards

<head>

contains information useful behind the scenes, such as CSS formatting instructions and JavaScript code.

6
New cards

<body>

contains the part of the page that is visible to the user

7
New cards

tag

is a piece of text inside angle brackets (<>).

typically have a beginning and an end, and usually contain some sort of text inside them

8
New cards

attribute

describes where the image file can be found,

and the alt attribute describes alternate text

that is displayed if the image is unavailable.

9
New cards

<html>

Surrounds the entire page

10
New cards

<head>

Contains header information (metadata, CSS styles, JavaScript code)

11
New cards

<title></title>

Holds the page title normally displayed in the title bar and used in search results

12
New cards

<body>

Contains the main body text. All parts of the page normally visible are in the bod

13
New cards

h1 (Heading 1)

Reserved for strongest emphasis

14
New cards

h2 (Heading 2)

Secondary level Heading

15
New cards

p (paragraph)

Most of the body of a page should be enclosed in paragraphs

16
New cards

div(s)

usually contain paragraphs

17
New cards

<ul></ul> Unordered list

Normally these lists feature bullets (but that can be changed with CSS)

18
New cards

<ol></ol> Ordered list

These usually are numbered, but this can be changed with CSS

19
New cards

<li></li> List item

Used to describe a list item in an unordered list or an ordered list

20
New cards

<dl></dl> Definition list

Used for lists with name-value pairs

21
New cards

<dt></dt> Definition term

The name in a name-value pair. Used in definition lists

22
New cards

<dd></dd> Definition description

The value (or definition) of a name, value pair

23
New cards

<table></table>

Defines beginning and end of a table

24
New cards

<tr></tr> Table row

Defines a table row. A table normally consists of several <tr> pairs (one per row)

25
New cards

<td></td> Table data

Indicates data in a table cell. <td> tags occur within <tr> (which occur within <table>)

26
New cards

<th></th> Table heading

Indicates a table cell to be treated as a heading with special formatting

27
New cards

<a href></a>

The anchor tag is used to provide the basic web link

28
New cards

<link rel = />

is used primarily to pull in external CSS files

29
New cards

<img src = />

is used in to attach an image. Valid formats are .jpg, .png, and .gif.

30
New cards

Cascading Style Sheet (CSS)

• Describes the appearance, layout, and presentation of information on a web page.

• Describes how information is to be displayed, not what is being displayed

• Can be embedded in HTML document or placed into separate .css file

31
New cards

External Style Sheet

• Used when applied to many pages.

• You can change the look of an entire website by changing one file.

• Each page must link to the style sheet using the <link> tag. The <link> tag goes inside the head section.

32
New cards

Internal Style Sheet

• Should be used when a single document has a unique style.

• You define internal styles in the head section of an HTML page, by using the <style> tag.

33
New cards

Inline Style

• To use inline styles you use the style attribute in the relevant tag.

• The style attribute can contain any CSS property.