Chapter 3 : Introduction to HTML Flashcards
What is HTML used for?
- Structure
- NOT appearance
Will browser tolerate invalid HTML code and parse errors
- Yes
What must HTML documents start with?
- Document Type Definition ( DTD )
List out some code examples that shows XHTML is strict than HTML ( 3 )
- Tags and attribute names must be in lowercase
- All tags must be closed ( <be></be> ) and implies missing closing tags
- XHTML allows only one root <html> element ( HTML allows more than one )
What is the advantages of using XHTML instead of HTML?
- Load faster than HTML
- Valid code
What is forbidden in XHTML?
- Attribute Minimization
<input></input>
What does <head> section shows?
- Contains information that doesn’t show directly on the viewable page
List out the elements used in <head> section ( 4 )
- <meta></meta>
<script> </script>
- <style></style>
- <!--Comments-->
Who / What rely on the <title> element? ( 2 )</title>
- Search Engines
- People
- Used to specify a title in the window title bar
How to use the <meta></meta> tag to show description in order to aid in Search Engine Optimization ( SEO )?
<meta name=”description” content=”HTML tutorial” / >
How to use the <meta></meta> tag to show keyword in order to aid in Search Engine Optimization ( SEO )?
<meta name=”keywords” content=”html, web design, styles />
How to use the <meta></meta> tag to show author name?
<meta name=”author” content=”Chris” / >
How to use the <meta></meta> tag to refresh content automatically?
<meta http-equiv=”refresh” content=”5”; url=”http://www.telerik.com” />
What is the < script > tag used for?
- Embed scripts into an HTML document
Where are < script > tag being executed?
- In the Client’s Web Browser
What is the supported client-side scripting languages? ( 3 )
- JavaScript
- VBScript
- JScript
What does the <style> tag used for?</style>
- Embeds formatting information ( CSS Styles ) into HTML pages
What does the <body> tag describes?
- Viewable portion of the page
What is HTML comprised of?
- Elements and Tags
- Begins with <html> and ends with </html>
When does formatting can be sacrificed?
- Performance Reasons
How to increase readability and facilitate debugging for HTML?
- Every block element should start on a new line
- Every nested block element should be indented
- Browsers ignore multiple whitespaces in the pages source, so formatting is harmless