why html doesn't open ?

hi, i am currently using sublime text, and when I open my html page it  is blank even if I wrote something in the code. I am using a MacBook and to open my page I usually do right click and then 'open in browser'. I am struggling a lot but I can't figure out the problem, my main browser is chrome. 

1 Answer

Relevance
  • Bill-M
    Lv 7
    1 month ago

    Try writing your HTML using a simple Text Editor or just copy this code for testing.

    This is the proper format for HTML 5 Code.  Copy and paste this code into any text editor and SAVE AS  .HTML

    <!DOCTYPE html><html><head><title>Page Title</title></head><body><h1>This is a Heading</h1><p>This is a paragraph.</p></body></html>

Still have questions? Get your answers by asking now.