HTML Flashcards
HTML stands for
Hyper Text Markup Language
Declaration that defines that this is an HTML5 document.
“!DOCTYPE html”
The entire document is surrounded by what?
html tags
What is the HTML links tag? And what do you use to give the link’s destination?
<a>Words here</a>
What tags is the visual part of the HTML document between?
Body tags
What do you use to make HTML headers and what range do they go through?
<h1>...<h6>
| Head tags</h6></h1>
What is the HTML paragraphs tag
<p></p>
What is the HTML links tag? And what do you use to give the link’s destination?
<a>Words here</a>
What is the HTML images tag? And what are common attributes to go with it?
“img” tags. The source file is defined by src. The alternative text is defined by alt. And you can choose the width and height with simply width and height.
What is an HTML element defined as?
An HTML element is defined by a start tag, some content, and an end tag
True or False: HTML elements can be nested
True
What is an Empty HTML element and give me an example
HTML elements with no content are called empty elements, they don’t use closing tags. <br></br> is an example of an empty HTML.
What do HTML attributes do?
HTML attributes provide additional information about HTML elements
What HTML elements can have attributes?
All HTML elements
Where are attributes specified?
Attributes are always specified in the start tag
What attribute does an “a” tag use to get the url of the page link?
href
The src attibute is commonly used for what tag?
The img tag
What is an Absolute URL/Path?
An absolute URL/Path links to an external image/page that is hosted on another website
What is a Relative URL/Path?
A relative URL/Path links to an image/page that is hosted within the website. You can use no slash to reach content relative to the current page, or you can use a slash for content relative to the whole domain.
How do you specify the height and width of an image?
Inside the img tag you use the width and height attributes (in pixels).
What is the alt attribute used for?
The alt attribute is a required attribute for the img tag that specifies an alternate text for an image, if the image cannot be displayed or the if they user uses a screen reader.
What attribute would you use to add things suck as color, font, size and more to your element?
The style attribute
What is the lang attribute and where does it go?
The lang attribute should always be inside the html tag, to declare the language of the Web page.
Can you add more than just the basics to the lang attribute?
Yes. You can not only include the language code, but also the country codes (i.e. “en-US”).