HTML elements Flashcards
(51 cards)
What is a HTML element
a self-contained piece of content that defines a specific section or component of a webpage
What is a link element and its role
The link element is used to link to external resources like style sheets and site icons
What is a HTML boilerplate and why is it important
An HTML boilerplate is like a ready-made template for your web pages
What is a <!DOCTYPE html>
A <!DOCTYPE >tells the browser which version of HTML you’re using ,example<!DOCTYPE html>
What is a HTML tag
A HTML tag warps around all your content and specify the language of your page, example<html lang="en">
What is a head element
a container for metadata (data about data
What is a Metadata element
A <meta></meta> element has details about things like character encoding and how, example <meta charset=utf-8/>
<meta></meta>
What is a title element
A <title> element ,determines text that appears in the browser tab or window. example <title>freecodecamp</title></title>
What is a body
A <body> is a section is where all your content goes .This what visitors actually see on your web page ,example<body>
</body>
What is a UTF-8
a character encoding standard used for electronic communication, particularly on the web
What is a character encoding
A character encoding is a method computers used to store characters as data
What is a Byte
A byte is a unit of data consisting of 8 bits or binary digits
What are h1 through h6 elements signify
The <h1> through <h6> heading elements are used to signify the importance of content below them
What is Commenting
Commenting allows you to leave messages without affecting the browser display .it also allows you to make code inactive
What dose a Comment in HTML start with
it starts with<!–
What is nesting
Nested is when two elements are placed two spaces further to the right of the element they are nested in ,and that’s is indentation and it used to make HTML easier to read . example <main>
<h1>
<p>
</main>
What are <section> element and what is it used to for
To define a section or thematic grouping of content within a webpage . example
<section>
<h2>section title </h2>
<p> section title …</p>
</section>
What is a unorder list<ul>
a way to organize information using bullet points, where the order of items is not
What is a <li> element
The <li> element is to represent an item in a list. example <ul>
<li>milk</li>
<li>chesse</li>
</ul>
What is the figure element
The figure element represents self-contained content and will allow you to associate and image with a caption. example <figure>a slice of lasagna
<img src=”https://cdn.freecodecamp/currriculum/cat-photo-app/lasagna.jpg”
alt=a slice of lasagna on a plate”></figure>
What is a <figcaption>
a element that provides a caption or legend for the content within its parent <figure> element</figure>
What is a <figcaption> used for
A <figcaption> is used to add caption to describe the image contained within the figure element .<figure>
<img src=”image.jp”
alt=a description of the
image
<figcaption>A cute cat</figcaption></figure>
What is <em> used for</em>
A <em> is a element used to specific a word or phrase . example <em>love<em></em></em></em>
What is a footer element
a semantic tag used to define the footer section of a webpage or content area
this is an & lt; img /& get ;