HTML elements Flashcards
(51 cards)
What is a HTML element
This represents the top level element or the root of an HTML document. To specify the language for the document, you should use the lang attribute
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
The <head> element contains important metadata or machine-readable information about the HTML document
</head>
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 utf-8 is a transformation format 8 ,is a standardized character encoding widely used 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
A section element is used to define sections in a document ,such as chapters , heads ,foots ,or any other sections of the document . 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>
element 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 footer element contains information about the author of the document ,copyright data , links to terms of use ,contact information and more
this is an & lt; img /& get ;