Jump to content

Help. Please. With HTML. Text underlined without purpouse.


Luckyxd123

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...