Question
you will use embedded CSS to style elements of a webpage, hexadecimal color codes to specify colors, and inline CSS to override a style specified
you will use embedded CSS to style elements of a webpage, hexadecimal color codes to specify colors, and inline CSS to override a style specified by the embedded CSS. Write an HTML document that has all the following components. Your source code should include:
a DTD
opening and closing html tags
the lang attribute to set the language of the entire document to English
a head section
a title
a meta tag to define the character set as UTF-8
a body section
a level 1 heading
two paragraphs
some text that is NOT in a paragraph or in a heading
Use embedded CSS to:
Specify a background color and a text color for the entire document
Specify a different text color for the level one heading
Center the text in the heading
Specify a text color for the paragraphs, different from any of the previous ones
Use inline CSS to:
change the text color of just one or two words within the first paragraph (Hint: use the span tag)
Use hexadecimal color codes for all the colors in this assignment. You may use any colors you like, but test your code in a browser to make sure that the text is clearly visible on the page. If it isn't, change the colors. Make sure that your document has all the proper closing tags that go with the opening tags. Write your source code in a text editor (such as Notepad or TextEdit), and remember to save it with the extension .html or .htm
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started