Which of the following HTML5 codes will affect the horizontal as well as vertical alignment of the table content?
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: D. <td style="text-align : center; vertical-align : middle;"> BASH </td>
Explanation
HTML5 drops the align/valign attributes; CSS text-align: center and vertical-align: middle control horizontal and vertical alignment.
More Programming Languages and Computer Graphics questions
- Consider the C/C++ function f() given below: void f(char w[]) { int x = strlen(w); // length of the string char c; for (int i = 0; i < x; i…
- The definitions in an XML document are said to be __________ when the tagging system and definitions in the DTD are all in compliance.
- Consider the JavaScript code: var y = "12"; function f() { var y = "6"; alert(this.y); function g() { alert(y); } g(); } f(); If M is the n…
- What is the output of the following Java program? class simple { public static void main(String[] args) { simple obj = new simple(); obj.st…
- What is the output of the following C program? (Assume little-endian representation, with the least significant byte at the lowest address,…
- Given below are three implementations of swap() in C++: (a) void swap(int a, int b) { int temp; temp = a; a = b; b = temp; } called as swap…