Prashanth.P Posted August 6, 2021 Share Posted August 6, 2021 In this page in this title code what is the impoartance of website name instead of this code we can write <p title=about> like this also. W3schools is not displaying in web page. So that's the matter. Give me your valuable suggestion. Link to comment Share on other sites More sharing options...
Ingolme Posted August 6, 2021 Share Posted August 6, 2021 The example is illustrating why you need quotation marks around attribute values which have spaces in them. Link to comment Share on other sites More sharing options...
Prashanth.P Posted August 7, 2021 Author Share Posted August 7, 2021 (edited) No no you are mistaken in the code of <p title="About W3schools"> this code why after about 'W3schools' why it is important? without W3schools <p title="About">like this we write the code. html dreamweaver software is showing no error Edited August 7, 2021 by Prashanth.P Link to comment Share on other sites More sharing options...
Ingolme Posted August 7, 2021 Share Posted August 7, 2021 Dreamweaver is wrong. There are two reasons why it is incorrect. The first reason is that the word "w3schools" is not a valid attribute of the <p> tag. If you test the code in the W3C HTML validator, it will give you the following error message: Quote Attribute w3schools not allowed on element p at this point. The second reason is the most important reason: Even if the HTML was valid (It is not valid), the code is not doing what the developer wants. If the developer wants to see the text "About W3Schools" when the mouse cursor is on the paragraph, then they need to use quotation marks around the contents of the attribute. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now