Section 1

Preview this deck

html element syntax

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

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (40)

Section 1

(40 cards)

html element syntax

Front

An HTML element starts with a start tag / opening tag An HTML element ends with an end tag / closing tag The element content is everything between the start and the end tag Some HTML elements have empty content Empty elements are closed in the start tag Most HTML elements can have attributes

Back

<h6><h/6>

Front

opening and closing tags of the smallest heading

Back

<q></q>

Front

Defines a short quotation

Back

<hr />

Front

creates a horizontal line in an html page

Back

<em></em>

Front

defines emphasized text

Back

class attribute

Front

classname Specifies a classname for an element

Back

<h1> <h/1>

Front

opening and closing tags of the largest heading

Back

<tt></tt>

Front

defines teletype text

Back

<html> </html>

Front

Opening and closing tags of a html document

Back

<samp></samp>

Front

defines sample computer code

Back

attribute

Front

an attribute defines a property (or properties) of html elements. It should always be enclosed in quotes. In some rare situations, when the attribute value itself contains quotes, it is necessary to use single quotes: name='John "ShotGun" Nelson'

Back

<code></code>

Front

defines computer code text

Back

<bdo></bdo>

Front

defines text direction example: <bdo dir="rtl">Here is some Arabic text!</bdo>

Back

<pre></pre>

Front

defines pre-formated text

Back

<strong></strong>

Front

usually defines bold text

Back

<a href="http://www.url.com">link text</a>

Front

html link tag with href attribute

Back

<address></adress>

Front

Defines contact information for the author/owner of a document

Back

<sub></sub>

Front

defines subscripted text

Back

<sup></sup>

Front

defines superscripted text

Back

<blockquote></blockquote>

Front

Defines a long quotation

Back

<br>

Front

defines a line break in html and does not require a closing tag. (note: xhtml and xml still require a closing tag, but it will look slightly different than html). It is an empty element.

Back

title

Front

Defines page title

Back

<abbr></abbr>

Front

defines abbreviation text

Back

<kbd></kbd>

Front

defines keyboard text

Back

Nested html elements

Front

most html elements can be nested example: <html> <body> <p>This is my first paragraph.</p> </body> </html>

Back

<cite></cite>

Front

defines citation text

Back

<big></big>

Front

defines big text

Back

<small></small>

Front

defines small text

Back

id element

Front

id Specifies a unique id for an element

Back

<b></b>

Front

defines bold text

Back

<p> </p>

Front

opening and closing tags of a paragraph

Back

element

Front

everything between the start and end tags

Back

<acrynom></acrynom>

Front

defines and acrynom tooltip will appear with the definition of the acynom

Back

<!-- This is a comment -->

Front

not displayed in browser. used to make html more readable

Back

style

Front

style_definition Specifies an inline style for an element

Back

<img src="filename.jpg" width="100" height="100" />

Front

example image tag with attributes note: img tag is an empty element (no closing tag)

Back

<dfn></dfn>

Front

Defines a definition term

Back

<var></var>

Front

defines a variable

Back

<i></i>

Front

defines italic text

Back

<ins></ins>

Front

defines insterted text

Back