Jump to content

computer code element


kadiholmes

Recommended Posts

Normally, HTML uses variable letter size, and variable letter spacing.

This is not wanted when displaying examples of computer code.

The <kbd>, <samp>, and <code> elements all support fixed letter size and spacing.

this is inside the course what is weird here is that all the elements support the fixed letter and spacing what is new to tell this :o ( by support do we mean "can handle" ? )
thanx for help
Link to comment
Share on other sites

Perhaps their description is not perfect.

 

By default, most elements show variable-width fonts. But elements such as <kbd>, <samp> and <code> use monospace fonts by default. This can be changed with CSS.

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...