Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask Programming Language Expert

Content: XHTML and CSS

Coverage: basic tags for text, imagine, page layout, CSS

These exercises will aid you become more fluent in XHTML. Note that your files should be validated correctly in order to obtain full credit. XHTML 1.0 Strict is expected (unless otherwise specified by the exercises).

Exercise 1

Below is an ex of an invalid XHTML page. Your aim is to reprepare the code so that:

• No deprecated/obsolete tags are being used
• All elements are nested correctly (i.e. Hello)
• It validates as XHTML 1.0 Strict (See http://validator.w3.org/)
• Presentation is separated from content (All style must be specified in the head)


Correct the Errors!</head><br /><body bgcolor=red><br />   <center><u>XHTML is the way to go!</u></center><br />   <font size=14 face=Arial><br />      <a href=www.w3schools.com><b>Click here</a> for more information.</b><br />   </font><br />   <br><br><br />   <ul><br />     <li><P><STRIKE>Say no to HTML and its flaws!</STRIKE></P><br />     <li><P>Use XHTML instead!</P><br />   <ul><br /></body><br /></html></p> <p style="text-align: justify;">Exercise 2</p> <p style="text-align: justify;">Using XHTML, produce the subsequent two lists sets on a single page:<br /><br />Employ an embedded stylesheet to style each list. Your CSS should style the bullet points as above. Ensure that nesting is appropriate and that the page validates as XHTML 1.0 Strict.</p> <p style="text-align: justify;">Exercise 3<br />Theory - Elucidate, in your own words, how web designers can deal with CSS conflict resolution. What is the order of precedence between the dissimilar types of CSS (inline, embedded and external)? describe in a short paragraph.<br />Exercise 4<br />On a single XHTML page, consist of the following two div container elements in the body. Using an external stylesheet, add style to the div elements such that one div has some overlap with the second div (Hint: Make use of relative or absolute positioning). Both divs must have a padding of 5px all around, a green 2px dotted border, a width and height of 200px and their text must be centered.</p> <p style="text-align: justify;">Also, add style to the span class “red” so that the text displays in red and is bold.</p> <p style="text-align: justify;"><div id=”first”><br />     <span class=”red”>This is a DIV Container</span><br /></div><br /><div id=”second”><br />     DIVs are a powerful way to modularize presentation<br /></div></p> <p style="text-align: justify;">Exercise 5</p> <p style="text-align: justify;">Make a single page that demonstrates an XHTML form.</p> <p style="text-align: justify;">The form must consist of all the fields you feel are necessary for submitting an order of books and should consist of at least one of the following input types:</p> <p style="text-align: justify;">• text input field<br />• select field <br />• radio or checkbox input fields <br />• textarea field</p> <p style="text-align: justify;">The form doesn’t require to do anything when submitted, although, CSS must be used to make it visually appealing. All style should be embedded (added into the head section of the document).</p> <p style="text-align: justify;">Exercise 6 – Project</p> <p style="text-align: justify;">The last exercise of each assignment will be continuous from assignment to assignment and will have the objective of building an e-store website by the end of the course.<br />For the first part you will start creating the layout of the e-store. Using XHTML and CSS you will design the skeleton of the site. It will be broken down into 4 components.</p> <p style="text-align: justify;">1) The top banner. You will have a banner that stretches across the top of the site. It should have a background color as well as some heading text. This banner will be present all through the pages of your site.</p> <p style="text-align: justify;">2) The side menu. You will have a side menu on the left hand side (which will later be employed to navigate the site). Create a list of navigational options in the side menu (i.e. home, checkout, my cart…). These should be “dummy” links and don’t have to be active at this time.</p> <p style="text-align: justify;">3) Inside content. Have some inside content to introduce the products you will be selling. For now, this can be decorated in any way. You can use this section to show your knowledge of various XHTML tags and CSS properties.</p> <p style="text-align: justify;">4) The bottom banner. You will have a bottom banner that stretches across bottom of the site. Give it a background color, and add in some fake legal/contact us/about us text. This banner will be present throughout all the pages of your site.</p> <p style="text-align: justify;">*Note:</p> <p style="text-align: justify;">The website must react gracefully to a user’s actions. For ex, a user must be able to resize his/her browser window and the site must still look “normal”. Take this into account when designing your website. <br />Though this isn’t a functional requirement, your sites must always be well organized with appropriately named files and well defined directories.</p> <p style="text-align: justify;">It can be very difficult to achieve the same look and feel across all browsers. Obviously it is preferable to have the site look good across all major browsers (ie: Internet Explorer, Firefox, Chrome, Safari…) however for the sake of this course just focus on building the website so that it is compatible best with Firefox.</p></span> </div></div></div> <div id="viewreadmore" class="que_link"> <a id="readmore" href="javascript:void(0);" style="font-size: 14px; color: #ff700c;" class="read-more-trigger mar_top10" onclick="changeheight(this)">View complete question</a> </div> <div class="innercanteenouter_inner_center3"> <p>Programming Language, <span>Programming</span> </p> </div> <div class="clear"></div> </div> </div> <div class="innercanteenouter_inner_center6"> <div class="innercanteenouter_inner_center6_center7"> <div class="innercanteenouter_inner_center6_center"> <ul> <li class="innercanteenouter1"> Category:- <span>Programming Language</span> </li> <li class="innercanteenouter2"> Reference No.:- <span>M91155 </span> </li> </ul> <div class="clear"></div> <div class="innercanteenouter_inner_center6_center2"> <a href="http://www.mywordsolution.com/ShopingCart.aspx?solutionyuhbfrtuiioljhy&solutionid=1155&schedule=jutiursgyhoplmntugrd">Order Now to Get Expert's Answer</a> </div> </div> <div class="innerjohnanswered1"> <div class="innerjohnanswered1ftti"><h2></h2> <p></p> </div> <div class="clear"></div> </div> </div> </div> <div class="inneranswer"> <b>Have any Question?</b>  <br /><br /> <div class="inneranswerhgrows"> <textarea name="txtReview" id="txtReview" class="inneranswerhgrowss" ValidationGroup="Review" placeholder=" Write your message!!"></textarea> </div> <div class="inneranswerhgrowsddf"> <input type="submit" name="btnReview" value="Have Question" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("btnReview", "", true, "Review", "", false, false))" id="btnReview" class="planpageinnerrightcontleftcommetgetquotebt" /> </div> </div> <br /> <div class="innerquestions"> <h2>Related Questions in Programming Language</h2> <table id="dlReviewList" cellspacing="0" width="100%"> <tr> <td> <div class="innerquestionsgtr"> <h3> <span id="dlReviewList_lblTitle_0"><b><a href='http://www.mywordsolution.com/question/rainfall-programwrite-a-rainfall-program-that-stores-the/92079538' target='_balnk' class='que_link' >Rainfall programwrite a rainfall program that stores the</a></b></span></h3> <p> <span id="dlReviewList_lblContent_0">Rainfall Program Write a RainFall program that stores the total rainfall for each of 12 months into an array of doubles. The program should have methods that return the following: * The total rainfall for the year * The ...</span> </p> </div> </td> </tr><tr> <td> <div class="innerquestionsgtr"> <h3> <span id="dlReviewList_lblTitle_1"><b><a href='http://www.mywordsolution.com/question/create-a-new-class-called-soda-that-is-also-a-caffeinated/92069171' target='_balnk' class='que_link' >Create a new class called soda that is also a caffeinated</a></b></span></h3> <p> <span id="dlReviewList_lblContent_1">Create a new class called Soda that is also a caffeinated beverage by default it will have no option for condiments. Have it called in main. Main also calls the old addLemon function on Tea so that the customer gets two ...</span> </p> </div> </td> </tr><tr> <td> <div class="innerquestionsgtr"> <h3> <span id="dlReviewList_lblTitle_2"><b><a href='http://www.mywordsolution.com/question/assignmentwrite-a-console-application-to-meet-the-following/92076496' target='_balnk' class='que_link' >Assignmentwrite a console application to meet the following</a></b></span></h3> <p> <span id="dlReviewList_lblContent_2">Assignment Write a console application to meet the following requirements. Create a system for a simple library. The library has a name and a list of books. Each book has a title, author and an int as the id number. Defi ...</span> </p> </div> </td> </tr><tr> <td> <div class="innerquestionsgtr"> <h3> <span id="dlReviewList_lblTitle_3"><b><a href='http://www.mywordsolution.com/question/create-a-base-class-that-will-include-the-properties-of/92064617' target='_balnk' class='que_link' >Create a base class that will include the properties of</a></b></span></h3> <p> <span id="dlReviewList_lblContent_3">Create a base class that will include the properties of some type of data related to the company you work for or a favorite hobby. For example, I work for a healthcare provider, so my base class might be "Medical Facilit ...</span> </p> </div> </td> </tr><tr> <td> <div class="innerquestionsgtr"> <h3> <span id="dlReviewList_lblTitle_4"><b><a href='http://www.mywordsolution.com/question/construct-a-loop-which-will-allow-for-the-daily-fan-count/92069170' target='_balnk' class='que_link' >Construct a loop which will allow for the daily fan count</a></b></span></h3> <p> <span id="dlReviewList_lblContent_4">Construct a loop which will allow for the daily fan count to be entered for each game. The games number (1-4) should be part of the prompt displayed to the user. Within this loop, you will need other loop(s) to validate ...</span> </p> </div> </td> </tr><tr> <td> <div class="innerquestionsgtr"> <h3> <span id="dlReviewList_lblTitle_5"><b><a href='http://www.mywordsolution.com/question/create-a-very-basic-calculator-map-out-the-numeric-keypad/92064612' target='_balnk' class='que_link' >Create a very basic calculator map out the numeric keypad</a></b></span></h3> <p> <span id="dlReviewList_lblContent_5">Create a very basic calculator, map out the numeric keypad (17 buttons) and an EditText view. If text is given, prompt the user with a message that complains about the error. Toast.makeToast(getApplicationContext() , "er ...</span> </p> </div> </td> </tr><tr> <td> <div class="innerquestionsgtr"> <h3> <span id="dlReviewList_lblTitle_6"><b><a href='http://www.mywordsolution.com/question/first-write-a-program-that-reads-students-names-followed-by/92076521' target='_balnk' class='que_link' >First write a program that reads students names followed by</a></b></span></h3> <p> <span id="dlReviewList_lblContent_6">First... Write a program that reads students' names followed by their test scores. The program should output each student's name followed by the test scores and the relevant grade. It should also find and print the highe ...</span> </p> </div> </td> </tr><tr> <td> <div class="innerquestionsgtr"> <h3> <span id="dlReviewList_lblTitle_7"><b><a href='http://www.mywordsolution.com/question/assignmentscenariosummaryin-this-lab-you-will-create-one/92075880' target='_balnk' class='que_link' >Assignmentscenariosummaryin this lab you will create one</a></b></span></h3> <p> <span id="dlReviewList_lblContent_7">Assignment Scenario/Summary In this lab, you will create one project that reads from a file, one project that writes to a file, and one project drawing a snowman. Program files for each of the following programs. Write o ...</span> </p> </div> </td> </tr><tr> <td> <div class="innerquestionsgtr"> <h3> <span id="dlReviewList_lblTitle_8"><b><a href='http://www.mywordsolution.com/question/pseudocodes-and-flowchartxyz-company-employees-work-for-8/92076430' target='_balnk' class='que_link' >Pseudocodes and flowchartxyz company employees work for 8</a></b></span></h3> <p> <span id="dlReviewList_lblContent_8">Pseudocodes and flowchart XYZ company employees work for 8 hours a day and 40 hours in a week. The employees are paid overtime at the rate of half of the salary. Employees who get more than 15000 must pay a supplementary ...</span> </p> </div> </td> </tr><tr> <td> <div class="innerquestionsgtr"> <h3> <span id="dlReviewList_lblTitle_9"><b><a href='http://www.mywordsolution.com/question/assignment-instructionsexception-handlingfirst-create-three/92063140' target='_balnk' class='que_link' >Assignment instructionsexception handlingfirst create three</a></b></span></h3> <p> <span id="dlReviewList_lblContent_9">Assignment Instructions Exception Handling First, create three exception classes named NumberHighException, NumberLowException, and NumberNegativeException. Both NumberHighException and NumberLowException should be direc ...</span> </p> </div> </td> </tr><tr> <td></td> </tr> </table> </div> <div class="innerlogo"> <ul> <li><div class="innerlogoback1"></div></li> <li><div class="innerlogoback2"></div></li> <li><div class="innerlogoback3"></div></li> </ul> </div> </div> <div class="innercanteenouter_inner_right"> <div class="innercanteenouter_inner_right1"> <div class="innercanteenouter_inner_right1pou"> <ul> <li class="red1"> <div class="counterDivTag">4,153,160 Questions Asked</div> </li> <li class="oring1"><div class="counterDivTag">13,132 Experts</div></li> <li class="grine1"><div class="counterDivTag">2,558,936 Questions Answered</div></li> </ul> <div class="clear"></div> <h2>Ask Experts for help!!</h2> </div> </div> <div class="innerchoose"> <h2>Looking for Assignment Help?</h2> <p> <b>Start excelling in your Courses, Get help with Assignment</b><br /><br /> Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time. </p> <a href="http://www.mywordsolution.com/free-quote-job-posting.aspx">Ask Now</a> <span>Help with Problems, Get a Best Answer</span> </div> <div class="innertranspoitation"> <div class="innertranspoitation1"> <ul> <li><a href="#">Recent Questions </a></li> </ul> <div class="clear"></div> </div> <table id="LeftSideControl1_RecentQuestion1_dlReviewList" cellspacing="0" width="100%"> <tr> <td> <div class="innertranspoitation2"> <h3><span id="LeftSideControl1_RecentQuestion1_dlReviewList_lblTitle_0"><b><a href='http://www.mywordsolution.com/question/section-onea-in--an-atwood-machine-suppose-two-objects-of/92089682' target='_balnk' class='que_link' >Section onea in an atwood machine suppose two objects of</a></b></span></h3> <p> <span id="LeftSideControl1_RecentQuestion1_dlReviewList_lblContent_0">SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless </span> </p> </div> </td> </tr><tr> <td> <div class="innertranspoitation2"> <h3><span id="LeftSideControl1_RecentQuestion1_dlReviewList_lblTitle_1"><b><a href='http://www.mywordsolution.com/question/part-1you-work-in-hr-for-a-company-that-operates-a-factory/92089681' target='_balnk' class='que_link' >Part 1you work in hr for a company that operates a factory</a></b></span></h3> <p> <span id="LeftSideControl1_RecentQuestion1_dlReviewList_lblContent_1">Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl</span> </p> </div> </td> </tr><tr> <td> <div class="innertranspoitation2"> <h3><span id="LeftSideControl1_RecentQuestion1_dlReviewList_lblTitle_2"><b><a href='http://www.mywordsolution.com/question/details-on-advanced-accounting-paperthis-paper-is-intended/92089680' target='_balnk' class='que_link' >Details on advanced accounting paperthis paper is intended</a></b></span></h3> <p> <span id="LeftSideControl1_RecentQuestion1_dlReviewList_lblContent_2">DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac</span> </p> </div> </td> </tr><tr> <td> <div class="innertranspoitation2"> <h3><span id="LeftSideControl1_RecentQuestion1_dlReviewList_lblTitle_3"><b><a href='http://www.mywordsolution.com/question/create-a-provider-database-and-related-reports-and-queries/92089679' target='_balnk' class='que_link' >Create a provider database and related reports and queries</a></b></span></h3> <p> <span id="LeftSideControl1_RecentQuestion1_dlReviewList_lblContent_3">Create a provider database and related reports and queries to capture contact information for potential PC component pro</span> </p> </div> </td> </tr><tr> <td> <div class="innertranspoitation2"> <h3><span id="LeftSideControl1_RecentQuestion1_dlReviewList_lblTitle_4"><b><a href='http://www.mywordsolution.com/question/describe-what-you-learned-about-the-impact-of-economic/92089678' target='_balnk' class='que_link' >Describe what you learned about the impact of economic</a></b></span></h3> <p> <span id="LeftSideControl1_RecentQuestion1_dlReviewList_lblContent_4">Describe what you learned about the impact of economic, social, and demographic trends affecting the US labor environmen</span> </p> </div> </td> </tr><tr> <td></td> </tr> </table> </div> </div> <div class="clear"></div> </div> <div class="clear"></div> </div> </div> <div class="footer"> <div class="footerouter"> <div class="footerouter_inner"> <div class="footerouter_left"> <ul> <li> <div class="footerouter_left1"> <ul> <li><a href="http://www.mywordsolution.com/hire-expert/dbms/35/">DBMS</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/c-cpp-programming/5/">C/C++</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/java/8/">Java</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/dotnet/9/">Dot Net</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/python/10/">Python</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/css-html/30/">CSS/HTML</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/php/25/">PHP/Joomla </a></li> <li><a href="http://www.mywordsolution.com/hire-expert/assembly/11/">Assembly</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/visual-basic/15/">Visual Basic</a></li> <li><a href="http://www.mywordsolution.com/category/programming/1/">Programming</a></li> </ul> </div> </li> <li> <div class="footerouter_left1"> <ul> <li><a href="http://www.mywordsolution.com/hire-expert/algorithms-design/46/">Algorithms Design</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/automata-computation/48/">Automata & Computation</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/computer-network-security/47/">Computer Network & Security</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/operating-system/49/">Operating System</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/software-engineering/53/">Software Engineering</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/cryptography/70/">Cryptography</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/data-structure/58/">Data Structure</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/computer-graphics/55/">Computer Graphics</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/data-communication/54/">Data Communication</a></li> <li><a href="http://www.mywordsolution.com/category/computer-science/2/">Computer Science</a></li> </ul> </div> </li> <li> <div class="footerouter_left1"> <ul> <li><a href="http://www.mywordsolution.com/category/accounting/3/">Accounting</a></li> <li><a href="http://www.mywordsolution.com/category/finance/4/">Finance</a></li> <li><a href="http://www.mywordsolution.com/category/economics/5/">Economics</a></li> <li><a href="http://www.mywordsolution.com/category/statistics/7/">Statistics</a></li> <li><a href="http://www.mywordsolution.com/category/management-studies/6/">Management</a></li> <li><a href="http://www.mywordsolution.com/category/academics/9/">Academics</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/medical-education/143/">Medical Courses</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/science/131/">Science</a></li> <li><a href="http://www.mywordsolution.com/category/engineering/8/">Engineering</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/matlab/114/">MATLAB</a></li> </ul> </div> </li> <li> <div class="footerouter_left1"> <ul> <li><a href="http://www.mywordsolution.com/hire-expert/essay/132/">Essay Writing</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/term-paper/133/">Term Papers</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/thesis-research-proposal/134/">Thesis/Research</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/case-study/140/">Case Studies</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/dissertation/136/">Dissertation</a></li> <li><a href="http://www.mywordsolution.com/category/writing/10/">Other Writing</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/homework-help/150/">Homework Help</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/humanities/127/">Humanities</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/social-studies/149/">Social Studies</a></li> <li><a href="http://www.mywordsolution.com/hire-expert/exam-preparation/145/">Exam Preparation</a></li> </ul> </div> </li> <div class="clear"></div> </li> </ul> </div> <div class="footerouter_right"> <div class="footerouter_right0"> <div class="footerpayment"> <div class="footerpaymentscur"></div> <div class="footerpaymentscard"> <ul> <li class="footerpaymentscard1"></li> <li class="footerpaymentscard2"></li> <li class="footerpaymentscard3"></li> <li class="footerpaymentscard4"></li> </ul> </div> </div> <div class="footerouter_right1"> <h2>Follow Us</h2> <ul> <li class="fb"><a href="http://www.facebook.com/Mywordsolution" rel="nofollow" target="_blank"></a></li> <li class="twt"><a href="http://www.twitter.com/Mywordsolution" rel="nofollow" target="_blank"></a></li> </ul> <div class="clear"></div> </div> </div> </div> <div class="clear"></div> </div> </div> <div class="footerbottom"> <div class="footerbottom_inner"> <ul> <li><a href="http://www.mywordsolution.com/">Home</a></li> <li><a href="http://www.mywordsolution.com/about-us.aspx">About Us</a></li> <li><a href="http://www.mywordsolution.com/blog/">Blog</a></li> <li><a href="http://www.mywordsolution.com/faqs.aspx">FAQs</a></li> <li><a href="http://www.mywordsolution.com/ask-question.aspx">Assignment Help</a></li> <li><a href="http://www.mywordsolution.com/homework-help.aspx">Homework Help</a></li> <li><a href="http://www.mywordsolution.com/contactus.aspx">Contact Us</a></li> <li><a href="http://www.mywordsolution.com/questions/archive/">Q&A</a></li> <li><a href="http://www.mywordsolution.com/refund-policy.aspx">Refund Policy</a></li> <li><a href="http://www.mywordsolution.com/privacy-policy.aspx">Privacy Policy</a></li> <li><a href="http://www.mywordsolution.com/terms-and-conditions.aspx">T & C </a></li> <li><a href="http://www.mywordsolution.com/disclaimer-policy.aspx">Disclaimer Policy</a></li> <li> <a href="http://www.mywordsolution.com/copyright-notice.aspx">Copyright Notice</a></li> </ul> <div class="clear"></div> <p>© Copyright 2013-14 <span>mywordsolution.com</span> All rights reserved </p> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-38762144-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script> <!--Start of Tawk.to Script--> <script type="text/javascript"> var $_Tawk_API={},$_Tawk_LoadStart=new Date(); (function(){ var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0]; s1.async=true; s1.src='https://embed.tawk.to/5584638c0ed4869955a0dce2/default'; s1.charset='UTF-8'; s1.setAttribute('crossorigin','*'); s0.parentNode.insertBefore(s1,s0); })(); </script> <!--End of Tawk.to Script--> </div> </div> </div></form> </body> </html>