HTLM Flashcards

1
Q

strong or <strong></strong>

A

<strong>: The Strong Importance element. The <strong> HTML element indicates that its contents have strong importance, seriousness, or urgency. Browsers typically render the contents in bold type.</strong></strong>

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

em or <em></em>

A

The <em> tag is used to define emphasized text. The content inside is typically displayed in italic. A screen reader will pronounce the words in <em> with an emphasis, using verbal stress.</em></em>

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

<br></br>

A

<br></br>: The Line Break element. The <br></br> HTML element produces a line break in text (carriage-return).

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

What is the correct HTML for creating a hyperlink?

A

<a href=http://www.example.com>Example</a

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

How can you open a link in a new tab/browser window?

A

<a></a>

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

What are table elements?

A

An HTML table consists of one <table> element and one or more <tr>, <th>, and <td> elements.

The <tr> element defines a table row
the <th> element defines a table header
and the <td> element defines a table cell

An HTML table may also include <caption>, <colgroup>, <thead>, <tfoot>, and <tbody> elements.

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

What is the correct HTML for making a checkbox?

A

<input></input>

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

What is the correct HTML for making a text input field?

A

<input></input>

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

What is the correct HTML for making a drop-down list?

A

<select></select>

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

What is the correct HTML for making a text area?

A

<textarea>
</textarea>

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

What is the correct HTML for inserting an image?

A

<img></img>

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

What is the correct HTML for inserting a background image?

A

<body>
</body>

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

Which HTML element defines the title of a document?

A

<title>
</title>

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

Which doctype is correct for HTML5?

A

<!DOCTYPE html>

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

The HTML global attribute, “contenteditable” is used to:

A

Specify whether the content of an element should be editable or not

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

In HTML, onblur and onfocus are:

A

Event attributes

17
Q

What is the correct HTML element for playing video files?

A

<video>
</video>

18
Q

What is the correct HTML element for playing audio files?

A

<audio>
</audio>

19
Q

Graphics defined by SVG is in which format?

A

XML

20
Q

XML

A

XML stands for eXtensible Markup Language

The Difference Between XML and HTML
XML and HTML were designed with different goals:

XML was designed to carry data - with focus on what data is
HTML was designed to display data - with focus on how data looks
XML tags are not predefined like HTML tags are

21
Q

The HTML <canvas> element is used to:</canvas>

A

draw graphics

22
Q

Self Closing Tags

A

<area></area>

The HTML <area></area> tag specifies an area within an image map with predetermined clickable zones based on coordinates, which subsequently accepts a URL and behaves as a hyperlink. This element can only be used inside an <map> element.

<base></base>

The HTML <base></base> tag specifies a base URI, often known as a base URL, for relative links in a document. A document can only include one <base></base> element. For example, you can specify the base URL once in the header area of your page, and all subsequent relative links will utilize that URL as a starting point.

<br></br>
The HTML <br></br> tag is used to create a line break in the text. It is typically employed in poems or addresses where line division is required. It is an empty tag, which means it contains no content and is referred to as a void element. Including the <br></br> tag in the HTML code functions similarly to pressing the enter key in a word processor.

<col></col>

The HTML <col> tag specifies the attributes for columns contained within the <colgroup> tag. This allows you to format or add a class to a column or group of columns rather than each individual cell. It is most commonly found within an <colgroup> element. This element specifies the style property for each column.

<embed></embed>

The HTML <embed></embed> tag is used to embed external applications, which are typically multimedia elements such as audio or video, at the specified place in an HTML document. It serves as a container for plug-ins such as flash animations. This is a new tag in HTML 5, and it just requires the beginning tag.

<hr></hr>

The HTML <hr> tag is used to insert a horizontal rule or a paragraph-level thematic break in a Html document to split or separate document sections. It is used when the topic of your HTML content abruptly changes. It divides them by drawing a horizontal line. The <hr> tag is an empty tag that does not require a closing tag. For example, a change of scene in a story or a switch of the topic within a segment.

<img></img>
The HTML <img></img> tag is used to display or embed an image on the web page. The HTML image element is an inline and empty element that only includes attributes; closing tags are not used in the image element.

<input></input>
The HTML <input></input> tag is used to create interactive controls for web-based forms to accept data from the user; depending on the device and user agent, a wide variety of input data and control widgets are accessible. The element is among the most powerful and complex in all HTML tags due to the vast amount of input types and attribute combinations. It is used inside the <form> element to declare input controls that allow users to enter data. <label> can be used to define labels for the input element.</label>

<link></link>

The HTML <link></link> tag is used to establish a connection between a current document and an external resource. The link tag is mainly used to connect to external sheets and establish site icons (both “favicon” style icons and icons for the home screen and apps on mobile devices), among other things. This element can appear more than once, but it only appears in the head section. The link element’s values indicate how the item is linked to and is related to the containing page.

<meta></meta>

The HTML <meta></meta> tag allows you to add metadata - extra essential information about a document in a number of ways. The <meta></meta> elements can be used to incorporate name/value pairs specifying HTML document features such as expiry date, author, a list of keywords, document author, etc. You can include more than one meta tag in your document depending on the information you wish to maintain. Still, in general, meta tags do not affect the physical appearance of the document. Thus it makes no difference whether you include them or not.

<param></param>

The HTML <param></param> tag is used to pass a parameter to the object associated with the <object> element for plug-ins. We can use several <param></param> tags within an <object> element in any order, but each tag must have a name and value attribute and should be inserted at the beginning of the content. The parameter tag governs the behavior of the <object> element by specifying a distinct pair of name and value attributes, such as autoplay, controller, etc.</object></object></object>

<source></source>

The HTML <source></source> tag is used as a child element to define multiple media resources for the <audio>, <video>, and <image> elements. It is widely used to provide the same media material in several file formats, such as mp3, mp4, and so on, in order to enable compatibility with a wide range of browsers due to their varying support for image and media file formats. Basically, it is used to attach multimedia assets such as audio, video, and images.</image></video></audio>

<track></track>

The HTML <track></track> tag is used as a child element of <audio> and <video> elements in order to define time-based text tracks for a media file. It is used to include a subtitle, caption, or any other type of text that will be rendered when a media file gets displayed. For example, it allows you to set timed text tracks (or time-based data) to handle subtitles automatically. WebVTT (Web Video Text Tracks) format (.vtt files) is used for the tracks.</video></audio>

<wbr></wbr>

The HTML <wbr></wbr> tag stands for word break opportunity. This tag denotes a spot within the text where the browser may optionally break a line, even though its line-breaking rules would not otherwise cause a break at that location. It is typically used when the employed term is too long, and there is a risk that the browser would break lines at the incorrect location in order to fit the content.

23
Q

How to comment out in HTML

A

<!-- Comment -->