Part 3 - HTML Flashcards
What is markup?
Markup is a way to indicate information about the content that is syntactically different from the content, and will not be displayed when the content it rendered
What does an HTML element contain?
- Element name in angled brackets (tag)
- Content within the tag
- Elements may contain attributes
Identify the element name, attribute and content in the following HTML element:
<a>Central Park</a>
- Element name: a
- Attribute: href=”http://www.centralpark.com”
- Content: Central Park
What is an empty element?
An empty element does not contain any text content; instead, it is an instruction to the browser to do something.
Is the following HTML line nested correctly? Explain.
<h1>Share Your <strong>Travels</strong></h1>
No. The closing <strong> tag should be nested within the header tag</strong>
What is semantic markup?
Semantic markup focusses on the structure of the document, not the visual
What are the advantages of using semantic markup?
- Maintainability
- Performance
- Accessibility
- Search Engine Optimisation
What is the function of the following line?
Tells the browser what type of document it is about to process
How many levels of heading does HTML allow?
6
Shortly explain the use of the <p> and </p><div> tags</div>
- <p> tag is a container for text and other HTML elements
</p>
- </p><div> also a container element and is used to create a logical grouping of content</div>
How would you reference the parent directory in an HTML link?
<a></a>
What HTML tag would you use to create a list that looks like the one below?
- Webdev is not supposed to be on Friday
- I have to write telecomms on Friday
- Why is life like this?
<ol></ol>
How would the tag <div class="story"> look in HTML5?</div>
What is the purpose of in HTML5?
is meant to contain the main unique content of the document. Replaces the old <div></div>
Explain the difference between GET and POST HTML requests
GET - All required data encoded in URL
POST - Info transferred from the browser client to the server in <strong>message body</strong> HTTP request