+ 1
How do you code html in the “code” area
I am new I just don’t really get it
4 Respuestas
+ 1
i would recommend starting the "intro to HTML" course
+ 1
hasan jasim ,
You have to choose "Web" as the language when you create new code in the playground. Then the playground shows three tabs for HTML, CSS, and JS. Write your HTML code in the HTML tab.
0
<!DOCTYPE html> <!-- the <!DOCTYPE html> element header
This lets the browser know what type of document to expect and what version of HTML is being used. <html> will contain all of your HTML code. The content of an HTML element is the information between the opening <***> and closing </***> tags of an element and holds a piece of content in an HTML document.
Uses the following syntax: <open> content/attributes </close> opening tag + content + closing tag. In the code provided: <p> is the opening tag. "Hello World!" is the content. </p> is the closing tag: "<p>Hello World!</p>" The content of an HTML element is the information enclosed between the opening and closing tags of an element.
0
HTML or "HyperText Markup Language", gives content to and instructs webpage browsers on content structure. <html> (the document root) should be under <!DOCTYPE> declaration. All HTML content structure should be contained between the <opening-tag> and </closing-tag> of (html). Your document structure should resemble a family relationship tree A simplified HTML document example can be examined here:
<!DOCTYPE html>
<html>
<head>
<title> <h1>Webpage Title text (is your main 'h1' header)</h1><br>
<p> <h2>Any Text under 'h1' importance gets subheader elements 'h2-h6'</h2> </p>
</title>
</head>
<body>
<h3>"Body" represents the content of an HTML document.</h3> <br>
<p>Add your text to "paragraph" to add content and insert a line break with "<br>"</p> <br>
<p><h3><em>"emphasized"</em>represents the bolding or emphasis of texts contained in the element</h3> <br> <br>
<p>Add your text to "paragraphs" to add content</p></br>
</body>
</html>