Assessment 1 - Using the Style
attribute and <STYLE> tag in HTML
- Create a new Web page called "Styles.htm" with all the basic HTML tags and save it in your HTML folder.
- Add the following content to the <TITLE> tag – “Using Styles in HTML”
- Using the style attribute format everything in the <BODY> tag to have a text color of red and the font family Verdana.
- Insert a <STYLE> tag into the page and create two classes;
- Class p.first should have a background color of light blue and text color should be white
- Class p.second should have all text underlined and bolded
- Add a style for the "div" tag that creates a dashed border on all four sides with a background color of light yellow
- Create a Heading for your page called "About Me" using the <H1> tag.
- Center the Heading and use the style attribute in the <H1> tag to make the text size 20 pixels and underlined.
- Write two short, one to two sentence, paragraphs about yourself
- Add the class "second" to the first paragraph
- Add the class "first" to the second paragraph
- Enclose both paragraphs in a<DIV> tag.
- Save the document on a diskette and turn it in to the instructor.
0 comments:
Post a Comment