Luckyxd123 Posted January 10, 2019 Share Posted January 10, 2019 Idk why my text keeps underlining with me defining a style or a <u> tag. Help please! Link to comment Share on other sites More sharing options...
Luckyxd123 Posted January 10, 2019 Author Share Posted January 10, 2019 Btw, I just started learning html. Link to comment Share on other sites More sharing options...
Ingolme Posted January 10, 2019 Share Posted January 10, 2019 Probably due to an unclosed <a> tag, but you'll have to show your code for me to be sure. Link to comment Share on other sites More sharing options...
Luckyxd123 Posted January 11, 2019 Author Share Posted January 11, 2019 (edited) CODI-3.html , It is on my main language. Thank you very much. Edited January 11, 2019 by Luckyxd123 Link to comment Share on other sites More sharing options...
Ingolme Posted January 11, 2019 Share Posted January 11, 2019 It's an issue with invalid HTML. Pass your code through the validator and fix all the errors it shows: https://validator.w3.org/ Tags should be closed in the opposite order they were opened. If you opened with <b><u> then you have to close with </u></b>, not with </b></u>. Here's a list of some of the errors on your page: <!DOCTYPE! html> should be <!DOCTYPE html> The <title> tag does not have a style attribute. The <u> tag is deprecated and should not be used. You can use CSS to replace it. Tags are not closed in the right order. <marquee> is deprecated and should not be used anymore. You can use CSS animations to replace it. Here's a list of things that aren't technically errors, but you should do to follow best practices: Avoid the use of style attributes, put all of your CSS in the stylesheet. Avoid the use of <b> and <i> tags to style blocks of text. Use CSS to change the style. <br> does not need a closing tag, you can remove the </br>. Link to comment Share on other sites More sharing options...
Luckyxd123 Posted January 11, 2019 Author Share Posted January 11, 2019 6 hours ago, Ingolme said: It's an issue with invalid HTML. Pass your code through the validator and fix all the errors it shows: https://validator.w3.org/ Tags should be closed in the opposite order they were opened. If you opened with <b><u> then you have to close with </u></b>, not with </b></u>. Here's a list of some of the errors on your page: <!DOCTYPE! html> should be <!DOCTYPE html> The <title> tag does not have a style attribute. The <u> tag is deprecated and should not be used. You can use CSS to replace it. Tags are not closed in the right order. <marquee> is deprecated and should not be used anymore. You can use CSS animations to replace it. Here's a list of things that aren't technically errors, but you should do to follow best practices: Avoid the use of style attributes, put all of your CSS in the stylesheet. Avoid the use of <b> and <i> tags to style blocks of text. Use CSS to change the style. <br> does not need a closing tag, you can remove the </br>. Thank you very much! Appreciated! 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