Resit 2015 (part2) Flashcards
HTML5 syntax allows embedding an anchor tag within a title tag. True/False?
False (Embedding anchor tags within a title tag is not valid HTML5 syntax).
Inline CSS in the body tag should override similar styles in the head tag. True/False?
True (Inline CSS in the body tag should override similar styles defined in the head tag).
The ‘heading’ tag is a standard HTML5 tag for main headings. True/False?
False (There is no ‘heading’ tag in standard HTML5).
It’s acceptable to have inline CSS styles for every paragraph in HTML5. True/False?
False (Using inline CSS for every paragraph is not recommended; external or internal CSS is preferred).
Using a method attribute with value “DELETE” in a form tag is valid in HTML5. True/False?
False (Using a DELETE method in a form tag is not valid in HTML5).
Input tags in HTML5 should always be self-closing. True/False?
True (Input tags in HTML5 are self-closing).
The ‘section’ tag in HTML5 should be closed before the ‘body’ tag. True/False?
True (Section tags should be closed before the body tag in HTML5).
A ‘nav’ tag can be used for the main heading of a webpage in HTML5. True/False?
False (Nav tag is for navigation, not for the main heading).
The use of JavaScript and AJAX is recommended in HTML5 for basic assignments. True/False?
False (The use of JavaScript and AJAX is not prohibited in HTML5; however, it was specifically not allowed in the assignment context).
The footer tag in HTML5 can appear before the closing body tag. True/False?
True (The footer tag can appear before the closing body tag).
A ‘strong’ tag in HTML5 is used for emphasizing text. True/False?
True (Strong tag is used for emphasizing text).
Inline CSS is the preferred way to style elements in HTML5. True/False?
False (Inline CSS is not the preferred way; external or internal CSS is generally recommended for maintainability and scalability).
The ‘category’ and ‘expired’ text in input tags should be outside the tags in HTML5. True/False?
True (Category and Expired should be label elements or outside input tags).
HTML5 allows the ‘form’ tag to have a method attribute with the value “DELETE”. True/False?
False (DELETE is not a valid method for the form tag).
A PUT request in a RESTful API can be used to create a new item. True/False?
True (PUT request in a RESTful API can be used to create a new item).
The HTTP GET method is used to retrieve data without affecting the data on the server. True/False?
True (GET method is for data retrieval without affecting the data).
The HTTP response code 200 indicates a successful request. True/False?
True (HTTP 200 indicates success).
In a RESTful API, the PUT method can be called multiple times without side effects. True/False?
True (In a RESTful API, PUT method is idempotent; multiple identical requests have the same effect).
A 405 HTTP response code generally indicates a server-side error. True/False?
False (405 error is classified as a client-side error; it means the method is not allowed).
The HTTP DELETE method is used to delete resources in a RESTful API. True/False?
True (DELETE method is used to remove resources).