
The first block of code that shows an H T M L code consists of 5 lines of code that reads as follows: Line 1: open angle bracket figure close angle bracket at indentation level 0. Line 2: open angle bracket i m g s r c equals open double quotes 828 dot j p g close double quotes alt equals open double quotes ellipsis close double quotes at indentation level 1. Line 3: open angle bracket figcaption close angle bracket British Museum open angle bracket forward slash figcaption close angle bracket close angle bracket at indentation level 1. Line 4: open angle bracket i m g s r c equals open double quotes new-banner dot p n g close double quotes class equals open double quotes overlayed close double quotes forward slash close angle bracket at indentation level 1. Line 5: open angle bracket forward slash figure close angle bracket at indentation level 0.
The first browser window is placed below the first block of code. The browser consists of an image and a line of text. An image of the British Museum is placed at the top of the browser window. A banner that reads, NEW is placed diagonally at the top right of the image. The line of text that reads, "When, while the lovely valley teems with vapour around me" is written below the image. A square that shows the banner that reads, NEW placed diagonally at the top right against a transparent background is placed at the right of the first browser window. An arrow labeled Transparent area points at the transparent background in the square. The first block of C S S code is at right side of the first browser, below the square. The code reads as follows: Line 1: dot overlayed open curly brace at indentation level 0. Line 2: position colon absolute semicolon at indentation level 1. Line 3: top colon 10 p x semicolon at indentation level 1. Line 4: left colon 10 p x semicolon at indentation level 1. Line 5: close curly brace at indentation level 0.
The second browser window is placed below the first browser window. The browser window consists of an image and a line of text. An image of the British Museum is placed at the top of the browser window. The line of text that reads, "When, while the lovely valley teems with vapour around me" is written below the image.
The second block of C S S code is placed at the right of the second browser window, below the first block of C S S code. The code reads as follows: Line 1: hide open curly brace at indentation level 0. Line 2: display colon none semicolon at indentation level 1. Line 3: close curly brace at indentation level 0.
The second block of H T M L code is placed below the second browser window and reads as follows: open angle bracket i m g s r c equals open double quotes new hyphen banner dot p n g close double quotes class equals open double quotes overlayed hide close double quotes forward slash close angle bracket.
A double-headed arrow labeled This is the preferred way to hide: by adding this additional class to the element points to display colon none semicolon in the second block of C S S code and hide in the second block of H T M L code.
Back