Description
In this assignment you’ll build a simple homepage for yourself, containing an image and some text. The image can be anything(workplace appropriate); a portrait or selfie would help us get toknow you. Start with a Hello World! page. To download it instead of opening it in the browser, try right-clicking the link.
Add an image. To start with, lets use the image in this filenoFace.jpg. Again, try right-clicking to download the fileinstead of opening it, and put the file into the same directoryas hello.html. Add the image to the Web page using the HTML tag.
Please DO NOT use the height, width, style, or other attributes to set the size of the image. The modern way tohandle these attributes is to use CSS. Do use the “src” attribute to tell the html file what image to use (this iscontent, not appearence). Also use the “alt” attribute toprovide text to display in case the image is unavailable, or for Web browsers for people who can’t see well (alsocontent).
Add a short comment or joke to the image using a “title” attribute for the image element (note: the Web page showsadding a title to the tag and the tag; here wewant to add it to the tag). Check it by openinghello.html in the browser, and moving the cursor over theimage. Do you see your comment or joke pop up near thecursor? This is called a “tool tip”. Add a paragraph containing just your name using the
(paragraph) tag. Put the paragraph after the image, and it will show up underneath on the Web page. Now create a file “hello.css”, which will contain the CSS for Assignment 1
To start, we’ll just color the body of the Webpage. Do this by adding a selector for the body, with a colorattribute: body { background-color: lightgray; } Now connecthello.css to the html file by adding this line to the head of the html document: Re-opening the html, you should see that the background of the page is gray. We’re going to box up the image and the paragraph beneathit in a