What is doctype and how is it written?
< !DOCTYPE html >
How do you add references to scripts in your page?
The < script> HTML element is used to embed executable code or data; this is typically used to embed or refer to JavaScript code.
< script src="javascript.js"></script >
< script>
alert("Hello World!");
< /script>What is an area lable?
Its for text readers.
What does HTML stand for and what does it mean?
HyperText Markup Language
How many heading levels are there?
6 - h1 to h6
How many heading levels are there?
6 - h1 to h6
What is best practice when using multiple types of headings?
What is the linebreak html element and what is good practice about using it?
< br >
Why does it matter if you use good practice with HTML
What is Quirks mode?
Why are some html elements self closing? Do they need the slash?
Self closing tags mean they do net have content like <br></br> or <br></br>
In HTML 5 a void element (one that does not have content) does not need a closing slash.
The slash at the end of the closing tag is an XHTML thing, but HTML 5 does not require it.
What is the horizontal rule tag, best practice and attributes applicable?
< hr> Represents a thematic break between paragraph-level elements: for example, a change of scene in a story, or a shift of topic within a section.
HR is not actually meant for styling, its more semantic. For actually lines use CSS.
Besides the global attributes you can also use the following:
align Deprecated Non-standard
Sets the alignment of the rule on the page. If no value is specified, the default value is left.
color Deprecated Non-standard
Sets the color of the rule through color name or hexadecimal value.
noshade Deprecated Non-standard
Sets the rule to have no shading.
size Deprecated Non-standard
Sets the height, in pixels, of the rule.
width Deprecated Non-standard
Sets the length of the rule on the page through a pixel or percentage value.
What is an HTML attribute?
Its information in the html element that tells the browser how to interpret it. e.g. < hr size=”3” >
What are global attributes?
Global attributes are attributes common to all HTML elements; they can be used on all elements, though they may have no effect on some elements.
The list can be found here - https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes
How do you write a comment in HTML?
< !– comment here – >
Write the HTML Boilerplate.
what is the < html lang="eng" >< /html> tag
<head> element followed by a <body> element.What is the <head> element?
<html> element.What is the <title> element?
<title></title>.What is the <link>element?
<link>.<link href="main.css" rel=stylesheet"><link rel ="icon" href="favicon.ico">What is the <style> element and its best practice?
<style> element must be included inside the <head> of the document. In general, it is better to put your styles in external stylesheets and apply them using <link> elements. <style> and <link> elements in your document, they will be applied to the DOM in the order they are included in the document — make sure you include them in the correct order, to avoid unexpected cascade issues. <link> elements, <style> elements can include media attributes that contain media queries, allowing you to selectively apply internal stylesheets to your document depending on media features such as viewport width.What are media queries?
Media queries are used for the following:
- To conditionally apply styles with the CSS @media and @import at-rules.
- To target specific media for the <style>, <link></link>, <source></source>, and other HTML elements with the media= attribute.
- To test and monitor media states using the Window.matchMedia() and EventTarget.addEventListener() methods.</style>
What is the <meta> element and what special attributes can it have?
<meta> HTML element represents metadata that cannot be represented by other HTML meta-related elements, like <base>, <link>, <script>, <style> or <title>.<meta> element provides document-level metadata, applying to the whole page.http-equiv attribute is set, the <meta> element is a pragma directive, providing information equivalent to what can be given by a similarly-named HTTP header.charset attribute is set, the <meta> element is a charset declaration, giving the character encoding in which the document is encoded.itemprop attribute is set, the <meta> element provides user-defined metadata.*What is meant by opening and closing tag?
<html> is the opening tag and </html> is the closing tag.