How should I style a Web address like google.com?
As the MLA Handbook (2.5.2) notes, “When giving a URL,” or Web address, “copy it in full from your Web browser.” Thus, a Web address should generally be set roman and styled lowercase:
The search engine can be found at google.com.
Note, however, that a Web site’s address should not be confused with its title. In MLA style, you should use the title of a Web site as it appears on the site and italicize it as you would any independent work. Do not use the Web address as the title unless the address and the title are identical. The following example shows the distinction:
We were looking at the differences between Google, located at google.com, and Yahoo!, located at yahoo.com.
But if you are quoting a source or editing an interview, and the speaker refers to Web sites by their addresses, you should leave the information as is:
The interviewee said that they “were looking at the differences between google.com and yahoo.com.”
MLA Handbook. 8th ed., Modern Language Association of America, 2016.