How do I add a Declare in Section 9?


#1



How do I code a Declare?


Replace this line with your code.


#2

May we take it you mean "document type declaration" (doctype)?

Let's review what you've learned so far:

  1. The <!DOCTYPE html> declaration should always be the first 
     line of code in your HTML files.
  2. The <html> element will contain all of your HTML code.
  3. Information about the web page, like the title, belongs within 
     the <head> of the page.
  4. You can add a title to your web page by using the <title> 
     element, inside of the head.
  5. Code for visible HTML content will be placed inside of the 
     <body> element.

The first point illustrates exactly how to write the doctype.

<!DOCTYPE html>

That's all there is to it. This tells the browser that the current document root is an <html></html> element. Everything else will be enclosed between these tags.


#3

Thanks Roy. I was not reading it correctly. :>


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.