HTML Flashcards
(23 cards)
<meta></meta>
Represents metadata that cannot be represented by other HTML meta-related elements, like <base></base>, <link></link>,
, <style> and <title>. Usually in the header</title></style>
How to apply an external stylesheet to a document
The <link></link> HTML element specifies relationships between the current document and an external resource.
<link></link>
How to apply internal styling to a document
<style>
p { color: #26b72b; }</style>
<aside>
</aside>
Represents a portion of a document whose content is only indirectly related to the document’s main content. Asides are frequently presented as sidebars or call-out boxes.
<dl>
</dl>
Represents a description list. The element encloses a list of groups of terms (specified using the <dt> element) and descriptions (provided by <dd> elements). Common uses for this element are to implement a glossary or to display metadata (a list of key-value pairs).
<hr></hr>
A line that separates two different pieces of content
Three types of <li>
ordered list (<ol>), an unordered list (<ul>), or a menu (<menu>). In menus and unordered lists, list items are usually displayed using bullet points. In ordered lists, they are usually displayed with an ascending counter on the left, such as a number or letter.
<a></a>
Together with its href attribute, creates a hyperlink to web pages, files, email addresses, locations within the current page, or anything else a URL can address.
<br></br>`
Produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the division of lines is significant.
Web server
computer that is connected to the internet and hosts a website. return websites to the user\
What provides additional information about the content of an element
attribute
attribute
extra information in an element
<title>
</title>
placed in the head tag, determines what the title is in the browser
What does HTML stand for
HTML pages are text
HyperText - you can create links to other pages
Markup Language - You can annotate text
used for superscript like 2 to the power of 2
how to make a p tag break to a new line
<br></br>
ordered vs unordered list
ordered has numbers and unordered has bullets
How to create a link titled “google” that links to google.com
<a href=“google.com’>google</a>
Create a link that emails an email
<a href=“mailto:john@gmail.com>
What are the four different target attributes that can be used for a link tag?
The target="_blank"
attribute in an anchor tag (<a>
) opens the linked document in a new browser tab or window. Other values for the target
attribute include:
-
_self
: Opens the linked document in the same frame or window. -
_parent
: Opens the linked document in the parent frame. -
_top
: Opens the linked document in the full body of the window. - Custom names: Opens the linked document in a named frame or window, allowing multiple links to target the same frame or window.
What are form controls
- hese are the elements within the
<form>
that allow users to input data. Common form controls include:-
<input>
: For various types of user input like text, password, email, etc. -
<textarea>
: For multi-line text input. -
<select>
: For dropdown menus, often used with<option>
elements. -
<button>
: For submitting the form or triggering other actions.
-