Organizing Text with HTML Flashcards

(26 cards)

1
Q

Internet and Web

A

– Organizing text refers to the proper placement of all the
HTML elements and their content in a Web page.
– If the content of a page is not separated by any line or
paragraph breaks, it becomes very tedious for the readers to
understand the given information.
– Consider an example of a news website in which news is
segregated under different categories and headlines, such as
weather reports, movie reviews, and sports updates.
– If all this news was to be displayed as a continuous running
text, i.e. without any line or paragraph breaks, it will be very
difficult for readers to locate and understand the desired
information.
– To overcome this problem, we can arrange text in different
ways, such as paragraphs, lines, and tables.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

P

A

The texts are displayed in paragraphs.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Pre

A

Instructs the browser that the enclosed text is a formatted text and
should not be formatted again.By default, HTML disregards the
space and tabs to display a formatting free text. In such cases, we
can preserve the intended formatting using Pre element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

DIV

A

Used to divide a Web page into different divisions or sections. The
DIV element basically works as a containerfor other HTML
elements. Using the DIV element, you can group the HTML
elements in sections and apply Cascading Style Sheet (CSS) on
them. The DIV element is a block level element and cannot be used
inside the P element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

SPAN

A

Used to change the style of the text enclosed within the element using the
style attribute. The SPAN element provides additional formatting
capabilities to HTML elements and is used with style sheets to set
presentational attributes that define the style of the content.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

TABLE

A

Arranges text in a tabular format. It is used along with the TH, TR, and TD
elements. The TH element defines the header of a table column. The TR
element specifies the content of the table rows and the TD element
specifies the content of a table cell. We can set the width and height of the
table columns and rows using the style attribute. Using the style attribute,
we can also define the borders for the table, font style for the table content,
and the font size for the table. We can also specify the table caption, which
indicates the content of the table, by using the CAPTION element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

List

A

Displays the information in form of lists. The OL element is used to display
the list of information in an order of sequence; whereas, you need to use
the UL element to display the information in an unordered list.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Exploring hyperlinks

A

– A hyperlink interconnects the current web page
with the other web pages available on the
Internet using <a> element
– This <a> element uses the href (hypertext
reference) attribute to specify the target
resource of document
– <a> element uses two attributes: target and id</a></a></a>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The target attribute

A

This attribute is used to specify a window where we
want to open a document when a hyperlink is clicked

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The id attribute

A

– Used to create a fragment identifier which specifies
a particular location within a document
– We can navigate different locations within a
document using id
– It takes a string as a value and it should be unique in
the same document

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Exploring the URL

A

A URL refers to a unique address which identifies
each Web page on WWW

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

A URL consists of three parts:

A
  • Protocol- transfers a resource over the web
  • Domain name- refers to the machine hosting the resource
  • Path name- specifies the path of the resource
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The general URL syntax is as follows:

A

scheme://host.domain:port/path/file_name?query_stri
ng#anchor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Scheme: file

A

Access point: Refers to a file on the local PC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Scheme: http

A

Access point: Refers to a file on the WWW server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Scheme: mailto

A

Access point: Refers to an electronic mail address

17
Q

b

A

Added visual attention, such as keywords (bold)

18
Q

br

19
Q

em

A

Emphasized text

20
Q

i

21
Q

strong

A

Content of strong importance

22
Q

sub

23
Q

sup

24
Q

u

25
s
Incorrect text (strike-through)
26
code
Computer code sample