HTML Flashcards
Study HTML code
What does HTML stand for?
Hypertext Markup Language
What is the purpose of HTML?
HTML is used to design and organize information and web pages on the internet.
What is the opening tag in HTML?
The opening tag is the tag that begins an element. It begins with a less-than sign ( < ) and ends with a more-than sign ( > )
What is the closing tag in HTML?
The closing tag is what closes an element. It begins with a less-than ( < ) and ends with a more-than sign ( > ). Before the content is a slash ( / ).
What is the content in an HTML element?
The content is the text between the opening and closing tabs.
What is an HTML element?
An element is everything from the opening tab to the closing tab.
This root HTML element defines the whole HTML document.
<html></html>
This root HTML element makes elements within this one invisible on the front end of the webpage. It is sort of like “behind-the-scenes”
<head></head>
This element is for internal CSS and is in the <head></head>
section.
<style></style>
This element is used to give a title to a webpage and is in the <head></head>
section.
<title></title>
This tag defines the relationship between a document and an external source, often for stylesheets or favicons. It contains the href and rel attributes.
<link>
Which elements are used for headings?
<h1></h1> <h2></h2> <h3></h3> <h4></h4> <h5></h5> <h6></h6>
Which element is used for paragraphs?
<p></p>
Why should you use <!DOCTYPE html>
?
It helps the browser to interpret the HTML code and display it correctly.
Which element is used for links?
<a href = ""><a>
The <a>
tag is for hyperlinks. The href attribute specifies the link’s URL.
Which tag is used for displaying images?
<img src = "">
The <img>
tag is for images. The src attribute specifies the path to the image or its address.
Which attribute is for specifying an alternative text for an image that cannot be displayed?
alt
Which attribute is for decorating an element?
style
Which attribute declares the language of a web page or an element?
lang
Which attribute defines extra information about an element?
title
Fun fact: if you hover over an element with a title, the title will display around the cursor.
Which element makes text bold without adding importance?
<b></b>
Which element defines a text with strong importance while also bolding it?
<strong></strong>
Which element italicizes text for visual effect (character thoughts, scientific names, etc.)?
<i></i>