HTML Essential Training 1 of 3 Flashcards
According to the author, what are the core languages a web designer needs to learn?
HTML (noun),CSS (adjective) and Javascript (verb)
[True or False] If we open a child element, we must close it before we close the parent element.
True
[Critical Thinking] Since there are now 2 different HTML specifications now being implemented at the same time, what is the author’s advice regarding these standards?
The author suggests that a web designer should keep track of both specifications as different browsers will implement both specifications differently. He recommends starting off learning HTML 5 syntax and focus on writing clean code.
The two different HTML specifications are HTML 5 and HTML (living standard)
What two websites does the author believe are the most useful to us as web designers and developers?
www. webplatform.org - Open source site for better online documentation for web authoring. It covers web development, not just HTML.
www. developer.mozilla.org - site has organized documentation in a visually digestible format. References for both the HTML elements and attributes.
The author identifies four things that a code editor should do, at minimum. Name two of them.
-code formatting options
-syntax highlighting
(Bonus 2: line numbers and code support)
[Critical Thinking] What advantages does a tool like Chrome’s WebKit inspector have for us as developers?
- WebKit inspector x-ray vision
- see under hood of webpage
- inspect a specific element of a webpage and the inspector will show you the code
In the author’s view, how is an HTML tag like a sandwich?
To make a sandwich, you need two pieces of bread, with HTML tags you need an opening and closing HTML tag. Without the two pieces there is no sandwich.
[Critical Thinking] What is the purpose of using a doctype declaration?
Using a doctype declaration tells the software (web browser) what version of HTML is going to be used. It also tells the software which syntax to use. Doctype declaration is very helpful when reading old sites, as you can use the declaration as a reference to look up which old version of html the document was written in.
Why does the author advocate using the lang attribute inside the tag?
The author’s reasoning is by using the lang attribute inside the tag, the tag tells the browser what language the HTML document is based in. Useful for online translators so translators know what language the text is written in or aid screen readers so the reader knows how to enunciate the text.
What is the purpose of setting the charset attribute in the meta tag to utf-8? (2:20)
The purpose of setting charset attribute to utf-8 so the proper character encoding renders on the page.
Why does the author advocate using the name=”description” meta tag?
Search engines will look into the name=”description” meta tag to add to the search engine’s results, help in indexing and searching for content within your site management system.
[Critical Thinking] What is the purpose of the tag?
tag tells the browser where the visible content of the page should go. Text within the body tag will render on the webpage.
[Critical Thinking] What is the purpose of the < p > (paragraph) tag?
< /p >
Since the paragraph tags are within the body tags, any text within the paragraph tags will be rendered text on the website. Additional tags are required if a person wants to modify formatting of certain words within the paragraph tags.
[Critical Thinking] What is the difference between the block level and inline level content models?
< p >Block level elements, like heading and paragraph tags, take a new line or block when opening a new block level tag.< /p >
< p > Inline level elements are more character specific and do not require the start of a new line. Inline tags like < b > bold < /b > or < i > italic < /i > are wrapped around content you want to look visually different.< /p >
Of the 7 new content models, identify which one is most like inline, and give 2 examples of elements it includes.
Phrasing content is the most like inline.
Ex 1) < br > element is placed after a word where you want to create a new text line. Helpful when the content is a poem that require a new text block
< p > Roses are red,< br > Violets are blue,< br > I can’t sleep at night because I have the flu! < /p >
Roses are red,
Violets are blue,
I can’t sleep at night because I have the flu!
Ex 2) < sup > element uses opening and closing tag around specific characters so the characters will be formatted like a superscript. Helpful with equations.
< p >E=MC< sup >2< /sup >< /p >
E=MC2
< /sup >