DEV Community

Cover image for HTML TIPS
millsjessicainokc
millsjessicainokc

Posted on • Updated on

HTML TIPS

HTML TIPS

Here are some HTML (hypertext markup language) tips for newbies. The tips should be very helpful to you especially if you’re just starting out on building web pages.

  1. Always close your HTML tags.
  2. Use HTML comments wisely. To make your HTML code clearer for you (and for others) you can add comments to your code. These are snippets of code that are ignored by the web browser. A comment declaration starts with <! followed by a zero or more comments, followed by >. A comment starts and ends with “--” and doesn’t contain any occurrence of “--”. ( eg. <!--Hello-→)
  3. Never leave your title tag empty.
  4. Use online resources.
  5. Use your browsers development tools.
  6. Use keyboard shortcuts, here are some examples; Save: CTRL+S Refresh: CTRL+R New tab: CTRL+T Close tab: CTRL+W Reopen the last closed tab: CTRL+SHIFT+T Open up browser development tool: F12
  7. There is a HTML Validator that will check your work, you can sync it to your visual studio.

HTML is the foundation to all web pages. In comparison with building a house the HTML would be the walls, sheet rock, foundation. CSS would be the decoration, color of the walls, etc. And Javascript would be the working of the lights and other switches in the house.

Top comments (3)

Collapse
 
katnel20 profile image
Katie Nelson

If I put comments in the HTML, won’t everyone who visits that page see them if they view the source?

Collapse
 
millsjessicainokc profile image
millsjessicainokc

Yes they will be able to view them.
Sorry took so long to reply.

Collapse
 
katnel20 profile image
Katie Nelson

Then I guess we need to be careful what we write as a comment then.