Coding for Beginners: HTML Basics #18— What are Empty Elements?

Veröffentlicht am: 28 Februar 2022
auf dem Kanal: Designers Learn Code
316
8

Coding for Beginners: What are Empty Elements?

Join the waitlist for Web Access Pro and have a chance to win a free LIFETIME license: https://join.designerslearncode.com/w...

In this coding bootcamp, you will not only learn about code but also have hand’s on practical and by the end of the course, you will have coded your first web page in as little as 3 days.

The Daily Code Snippet is part of our "Coding for Beginners" video series for designers to learn the basics of HTML and CSS coding. We teach a single, easy to understand concept in each video so that you can learn to code even if you have a busy schedule. Subscribe here:    / @designerslearncode  

Sign up and be the first to know when the full course is ready: http://get.designerslearncode.com/2022

We have learned that an element consists of two paired tags, an opening tag and a closing tag. However, there is an exception in the case of empty elements. Empty elements only have an opening tag.

The first element that you will write on a web page is the doctype declaration and it is an empty element. !doctype html tells the browser that the document is being coded in HTML5, the latest iteration of HTML. You will still need to use the html element right after which has both the html opening tag and the html closing tag. This tells the browser that we are working in the html language.

Two other common empty elements to be aware of are br and hr. br inserts a line break and can be seen used within paragraph text.

hr defines a thematic break or shift in topic and is displayed as a horizontal rule that separates content.

text of one topic
[a horizontal line]
text of another topic

#HTML #CSS #coding #web #accessibility #emptyelements #doctypehtml #doctypedeclaration #horizontalrule #breakelement #linebreak #htmllinebreak #htmlelements #tags #openingtag #closingtag #sixlevelsofheadings #hierarchy #htmlelementsinenglish #learntocode #coding #codingtutorial #designerslearncode #dailycodesnippet #htmltutorial #csstutorial #codingforbeginners #webdesign #webdevelopment #htmltutorialforbeginners #csstutorialforbeginners #programmingforbeginners #htmlcssfullcourse


Auf dieser Seite können Sie das Online-Video Coding for Beginners: HTML Basics #18— What are Empty Elements? mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Designers Learn Code 28 Februar 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 316 Mal angesehen und es wurde von 8 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!