Section 1

Preview this deck

What is the <div> element?

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

1

All-time users

1

Favorites

0

Last updated

1 year ago

Date created

Mar 1, 2020

Cards (49)

Section 1

(49 cards)

What is the <div> element?

Front

Short for division, it is a container that divides the page into sections. They can contain any text or other HTML elements.

Back

What is an attribute made of?

Front

Attributes have two parts: the name and the value.

Back

What is the <span> tag used for?

Front

span contains short pieces of text or other HTML elements. They are used to separate small pieces of content that are on the same line as other content.

Back

What is the <ul> tag used for?

Front

It is used to create and unordered list, ie one that is in no particular order. The individual list items are outlined with a bullet point.

Back

What does HTML do?

Front

It provides a structure for the content appearing on a website, such as images, videos or text.

Back

How does one start an html document?

Front

With the declation of the document type: <!DOCTYPE html> This tells the browser what type of document to expect, writing html will default to the newest version of html.

Back

What is the target attribute used for?

Front

The target attribute is used to specify how a link is opened. for a link in a new window the value should be "_blank".

Back

How is HTML organized?

Front

As a collection of family tree relationships. When an element is contained inside another element, it is considered the child of that element. Child elements are said to be nested inside of the parent element.

Back

What is the <head> element?

Front

Part of the HTML metaphor, it contains metadata for the web page.

Back

What is the <thead> tag used for?

Front

It allows for the sectioning of the headings in a table. It should include all <th> data.

Back

What does HTML stand for?

Front

Hyperlink Text Markup Language

Back

What is the rowspan attribute used for?

Front

It allows for table data to span more than one row. <td rowspan="2"> will make the data span two rows (vertical)

Back

Why is understanding HTML hierarchy important?

Front

Child elements can inherit behaviour and styling from their parent element/s.

Back

Is it possible to link to the same page?

Front

To link to a target on the same page, the href must point to an id. <a href="#top">

Back

What is the <title> element?

Front

Placed in the <head> secton, it contains the title of your page and is displayed in the title bar of the web browser.

Back

How do you link to an internal page with an anchor?

Front

The href should link to "./nameofpage.html" the ./ is important.

Back

What is the <table> tag used for?

Front

It is used to create tables.

Back

What is the <tr> tag used for?

Front

It stands for table row and creates a table row.

Back

What do <ul> elements require to effectively work?

Front

As they won't format raw text automatically, individual list items must be added to the unordered list using the <li> tag.

Back

What is hypertext?

Front

Text displayed on a device that provides access to other texts through links, aka HYPERLINKS.

Back

What is the <img> tag used for?

Front

It allows you to add an image to a web page. This tag is self closing and has a forward slash ( / ) before the closing angle bracket. <img> tag require a src attribute that must be set to the image's source, should it be a URL address or a local address.

Back

How can one add comments to their HTML files?

Front

Comments in HTML are added by using <!-- and -->

Back

What is a closing tag?

Front

The second HTML tag used to end an HTML element.

Back

What is HTML composed of?

Front

HTML elements which are a unit of content in an HTML document formed by HTML tags.

Back

What is the <em> tag used for?

Front

It generally render as italic emphasis.

Back

What is the <li> tag used for?

Front

Standing for list item tag, it is used to describe an item in a list.

Back

How many headings are there in HTML?

Front

There are six different headings of heading elements. from <h1> </h1> (bigger font) down to <h6> </6> (smaller subheadings)

Back

What is content in HTML?

Front

The information contained between the opening and closing tags of an HTML element.

Back

What is the <tbody> tag used for?

Front

It allows for sectioning of long tables. <tbody> should contain all of the table data excluding the heading.

Back

What is <p> tag? used for?

Front

p for paragraph, is contains a block of plain text.

Back

What is the <th> tag used for?

Front

It stands for table heading and gives a title to the data table. table headings must be placed inside a table row.

Back

What is the <strong> tag used for?

Front

It generally render as bold emphasis.

Back

How do closing tags differ from opening tags?

Front

They posses a forward slash ( / ) inside them, after the left angle bracket.

Back

Except for the doctype, what else do you need to provide a web page to display a html file?

Front

The <html> </html> tags to provide structure or content.

Back

What is href?

Front

An attribute used to link websites in anchors, it can link URLs or internal paths.

Back

What elements can be anchors?

Front

Every elements can become anchors when wrapped with <a> tags.

Back

What is an HTML tag?

Front

The element name, it is surrounded by an opening < angle bracket and a closing > angle bracket.

Back

What is the colspan attribute used for?

Front

It allows for table data to span more than one column. <td colspan="2"> this will make the table data span two columns (horizontal).

Back

What is the <a> element used for?

Front

<a> for anchor, it allows for the adding of links by wrapping pieces of text between its tags. It requires an href attribute which stands for hyperlink reference. It provides a path for the link. <a href="www.hello.com">Hello</a>

Back

What is the <br> tag used for? and how is it unique?

Front

It is used as a line break element. It is unique in how it is only composed of a starting tag.

Back

What is the <td> tag used for?

Front

It stands for table data and is placed between <tr> and </tr>. It defines the data for the table cell.

Back

What is hierarchy in HTML?

Front

The relationship between elements and their ancestor and descendent elements.

Back

What is the <ol> tag used for?

Front

It is used to created a list of numbered items. Similar to the <ul> element, <ol> lists require <li> tags.

Back

What is an opening tag?

Front

The first HTML tag used to start an HTML elements. The tag type is surrounded by opening and closing angle brackets.

Back

What is a markup language?

Front

A computer language that defines the structure and presentation of raw text. In the case of HTML, it can interpret raw text wrapped in HTML elements.

Back

What is the body element?

Front

Contains the body of the website, only content inside the opening and closing body tags can be displayed to the device. <body> </body>

Back

<body> <div> <h1>xxx</h1> <p>yyy</p> </div> </body> How would you characterize the relationship between each elements amongst them?

Front

<h1> and <p> elements are siblings and grandchildren to <body> and children to <div>. <div> is children to <body> and parent to both <h1> and <p> and <body> is both a parent to <div> and a grandparent to both <h1> and <p>.

Back

What is <id>?

Front

An attribute that can specify different content, similar to <div>.

Back

What are attributes?

Front

Content added to the opening tag of an element and can be used for providing information to changing styling.

Back